Compare commits

..

2 Commits

Author SHA1 Message Date
c6089ae67c 支持编译发行版本。 2024-01-07 18:17:27 +08:00
9e2abb7c8a 加入Https的日志。 2023-10-21 21:23:49 +08:00
5 changed files with 21 additions and 8 deletions

View File

@ -68,8 +68,20 @@ android {
baseline file('lint-baseline.xml') baseline file('lint-baseline.xml')
} }
namespace 'com.coldmint.rust.pro' namespace 'com.coldmint.rust.pro'
gradle.taskGraph.whenReady {
tasks.each { task ->
if (task.name.contains("uploadCrashlyticsMappingFileRelease")) {
task.enabled = false
}
}
}
} }
configurations.all {
resolutionStrategy {
force 'org.jetbrains.kotlin:kotlin-stdlib:1.6.0'
}
}
dependencies { dependencies {
configurations.all { configurations.all {

View File

@ -11,8 +11,8 @@
"type": "SINGLE", "type": "SINGLE",
"filters": [], "filters": [],
"attributes": [], "attributes": [],
"versionCode": 23, "versionCode": 28,
"versionName": "2.1 Bata1_patch6(2022-10-1)", "versionName": "2.1 Bata6(2023-7-20)",
"outputFile": "app-release.apk" "outputFile": "app-release.apk"
} }
], ],

View File

@ -38,7 +38,8 @@ android {
dependencies { dependencies {
implementation 'com.google.code.gson:gson:2.8.8' implementation 'com.google.code.gson:gson:2.8.8'
implementation "com.squareup.okhttp3:mockwebserver:4.9.1" implementation "com.squareup.okhttp3:okhttp:4.9.1"
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.2'
implementation "androidx.room:room-runtime:2.4.0" implementation "androidx.room:room-runtime:2.4.0"
//Room //Room
annotationProcessor "androidx.room:room-compiler:2.4.0" annotationProcessor "androidx.room:room-compiler:2.4.0"

View File

@ -1,11 +1,10 @@
package com.coldmint.rust.core.web package com.coldmint.rust.core.web
import android.os.Environment import android.os.Environment
import android.util.Log
import com.coldmint.rust.core.debug.LogCat import com.coldmint.rust.core.debug.LogCat
import com.coldmint.rust.core.tool.FileOperator import com.coldmint.rust.core.tool.FileOperator
import okhttp3.* import okhttp3.*
import java.io.File import okhttp3.logging.HttpLoggingInterceptor
import java.io.IOException import java.io.IOException
import java.net.Proxy import java.net.Proxy
import java.net.ProxySelector import java.net.ProxySelector
@ -14,7 +13,6 @@ import java.net.URI
import java.text.ParseException import java.text.ParseException
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
import java.util.* import java.util.*
import java.util.concurrent.TimeUnit
/** /**
* 服务器配置 * 服务器配置
@ -142,7 +140,9 @@ object ServerConfiguration {
} }
}) })
val loggingInterceptor = HttpLoggingInterceptor()
loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY)
builder.addInterceptor(loggingInterceptor)
return builder.build() return builder.build()
} }

View File

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-7.3.3-bin.zip