version:2.8
fix:修复无网络连接时请求接口报错 update:优化网络请求
This commit is contained in:
101
app/build.gradle
101
app/build.gradle
@@ -73,15 +73,15 @@ android {
|
||||
|
||||
official {
|
||||
flavorDimensions "default"
|
||||
versionCode 14
|
||||
versionName "2.3"
|
||||
versionCode 28
|
||||
versionName "2.8"
|
||||
}
|
||||
}
|
||||
|
||||
//签名
|
||||
signingConfigs {
|
||||
zhanRui {
|
||||
storeFile file("src/keys/zhanxun.keystore")
|
||||
storeFile file("keystore/zhanxun.keystore")
|
||||
storePassword "123456"
|
||||
keyAlias "zhanxun"
|
||||
keyPassword "123456"
|
||||
@@ -89,8 +89,17 @@ android {
|
||||
v2SigningEnabled true
|
||||
}
|
||||
|
||||
teclastuserdebug {
|
||||
storeFile file("src/keys/TeclastUserDebug.jks")
|
||||
teclastUnisoc {
|
||||
storeFile file("keystore/TeclastUnisoc.keystore")
|
||||
storePassword "123456"
|
||||
keyAlias "TeclastUnisoc"
|
||||
keyPassword "123456"
|
||||
v1SigningEnabled true
|
||||
v2SigningEnabled true
|
||||
}
|
||||
|
||||
teclastUnisocUserdebug {
|
||||
storeFile file("keystore/TeclastUnisocUserDebug.jks")
|
||||
storePassword "123456"
|
||||
keyAlias "teclast"
|
||||
keyPassword "123456"
|
||||
@@ -98,8 +107,17 @@ android {
|
||||
v2SigningEnabled true
|
||||
}
|
||||
|
||||
teclastMTK {
|
||||
storeFile file("keystore/TeclastMTK.jks")
|
||||
storePassword "123456"
|
||||
keyAlias "TeclastMTK"
|
||||
keyPassword "123456"
|
||||
v1SigningEnabled true
|
||||
v2SigningEnabled true
|
||||
}
|
||||
|
||||
mtk {
|
||||
storeFile file("src/keys/xueshibaoos.jks")
|
||||
storeFile file("keystore/xueshibaoos.jks")
|
||||
storePassword "123456"
|
||||
keyAlias "xueshibaoos"
|
||||
keyPassword "123456"
|
||||
@@ -108,7 +126,7 @@ android {
|
||||
}
|
||||
|
||||
mtkAndroid11 {
|
||||
storeFile file("src/keys/mtkAndroid11.jks")
|
||||
storeFile file("keystore/mtkAndroid11.jks")
|
||||
storePassword "123456"
|
||||
keyAlias "mtk11"
|
||||
keyPassword "123456"
|
||||
@@ -117,7 +135,7 @@ android {
|
||||
}
|
||||
|
||||
unisoc {
|
||||
storeFile file("src/keys/Unisoc.jks")
|
||||
storeFile file("keystore/Unisoc.jks")
|
||||
storePassword "123456"
|
||||
keyAlias "unisoc"
|
||||
keyPassword "123456"
|
||||
@@ -156,8 +174,61 @@ android {
|
||||
signingConfig signingConfigs.mtkAndroid11
|
||||
}
|
||||
|
||||
|
||||
|
||||
teclastMTKDebug.initWith(debug)
|
||||
teclastMTKDebug {
|
||||
manifestPlaceholders = [
|
||||
AK: "7IubK1Ugeuxga4KKC5VQyjTeQlExsYZq"
|
||||
]
|
||||
buildConfigField "String", "platform", '"T30PRO"'
|
||||
versionNameSuffix "-debug"
|
||||
debuggable true
|
||||
signingConfig signingConfigs.teclastMTK
|
||||
}
|
||||
|
||||
teclastMTKRelease.initWith(release)
|
||||
teclastMTKRelease {
|
||||
manifestPlaceholders = [
|
||||
AK: "7IubK1Ugeuxga4KKC5VQyjTeQlExsYZq"
|
||||
]
|
||||
buildConfigField "String", "platform", '"T30PRO"'
|
||||
signingConfig signingConfigs.teclastMTK
|
||||
}
|
||||
|
||||
teclastUnisocdebug.initWith(zhanRuiDebug)
|
||||
teclastUnisocdebug {
|
||||
manifestPlaceholders = [
|
||||
AK: "u5qGsILQ7qlXI8GDv6T6cGl8IWMtsPSu"
|
||||
]
|
||||
buildConfigField "String", "platform", '"M40SE"'
|
||||
versionNameSuffix "-debug"
|
||||
debuggable true
|
||||
signingConfig signingConfigs.teclastUnisoc
|
||||
}
|
||||
|
||||
teclastUnisocrelease.initWith(zhanRuiDebug)
|
||||
teclastUnisocrelease {
|
||||
manifestPlaceholders = [
|
||||
AK: "u5qGsILQ7qlXI8GDv6T6cGl8IWMtsPSu"
|
||||
]
|
||||
buildConfigField "String", "platform", '"M40SE"'
|
||||
signingConfig signingConfigs.teclastUnisoc
|
||||
}
|
||||
|
||||
teclastUnisocUserdebug.initWith(zhanRuiDebug)
|
||||
teclastUnisocUserdebug {
|
||||
buildConfigField "String", "platform", '"M40SE"'
|
||||
versionNameSuffix "-debug"
|
||||
debuggable true
|
||||
signingConfig signingConfigs.teclastUnisocUserdebug
|
||||
}
|
||||
|
||||
zhanRuiDebug.initWith(debug)
|
||||
zhanRuiDebug {
|
||||
manifestPlaceholders = [
|
||||
AK: "EiqcGW9LWDvfMKl7mZxUtt1UkNKpdQI5"
|
||||
]
|
||||
buildConfigField "String", "platform", '"ZhanRui"'
|
||||
versionNameSuffix "-debug"
|
||||
debuggable true
|
||||
@@ -166,19 +237,13 @@ android {
|
||||
|
||||
zhanRuiRelease.initWith(release)
|
||||
zhanRuiRelease {
|
||||
manifestPlaceholders = [
|
||||
AK: "EiqcGW9LWDvfMKl7mZxUtt1UkNKpdQI5"
|
||||
]
|
||||
buildConfigField "String", "platform", '"ZhanRui"'
|
||||
signingConfig signingConfigs.zhanRui
|
||||
}
|
||||
|
||||
//userdebug rom使用这个版本
|
||||
zhanRuiUserdebug.initWith(zhanRuiDebug)
|
||||
zhanRuiUserdebug {
|
||||
buildConfigField "String", "platform", '"ZhanRui"'
|
||||
versionNameSuffix "-debug"
|
||||
debuggable true
|
||||
signingConfig signingConfigs.teclastuserdebug
|
||||
}
|
||||
|
||||
debug {
|
||||
buildConfigField "String", "platform", '"MTK"'
|
||||
versionNameSuffix "-debug"
|
||||
@@ -248,7 +313,7 @@ dependencies {
|
||||
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
|
||||
|
||||
//okhttp
|
||||
implementation 'com.squareup.okhttp3:okhttp:4.9.3'
|
||||
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
|
||||
//Retrofit
|
||||
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
||||
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
||||
|
||||
Reference in New Issue
Block a user