|
@@ -6,7 +6,17 @@ android {
|
|
compileSdkVersion 31
|
|
compileSdkVersion 31
|
|
flavorDimensions "baseUrl"
|
|
flavorDimensions "baseUrl"
|
|
productFlavors {
|
|
productFlavors {
|
|
- user1 {//ghpcarphone
|
|
|
|
|
|
+ userdev {
|
|
|
|
+ dimension "baseUrl"
|
|
|
|
+ buildConfigField "String", "BASE_URL", "\"https://www.kpkingpark.com\""
|
|
|
|
+ buildConfigField "String", "UPDATE_KEY", "\"59e95b20-759a-472a-bf07-a4e4b2e7a1f0\""
|
|
|
|
+ buildConfigField "String", "UPDATE_BASE_URL", "\"http://up.lkluckpanda.online/user8/\""
|
|
|
|
+ buildConfigField "String", "UPDATE_APP_NAME", "\"guy.apk\""
|
|
|
|
+ buildConfigField "String", "UPDATE_JSON", "\"config.json\""
|
|
|
|
+ buildConfigField "String", "WEB_URL", "\"wss://saffron.ghpcarphone.com/69f3476bb6e001a9c320719073f055cc/app/\""
|
|
|
|
+ }
|
|
|
|
+ user1 {
|
|
|
|
+ //ghpcarphone
|
|
dimension "baseUrl"
|
|
dimension "baseUrl"
|
|
buildConfigField "String", "BASE_URL", "\"https://www.ghpcarphone.com\""
|
|
buildConfigField "String", "BASE_URL", "\"https://www.ghpcarphone.com\""
|
|
buildConfigField "String", "UPDATE_KEY", "\"bfbc2f7f-779a-4719-9295-60eefbb9269f\""
|
|
buildConfigField "String", "UPDATE_KEY", "\"bfbc2f7f-779a-4719-9295-60eefbb9269f\""
|
|
@@ -15,7 +25,8 @@ android {
|
|
buildConfigField "String", "UPDATE_JSON", "\"config.json\""
|
|
buildConfigField "String", "UPDATE_JSON", "\"config.json\""
|
|
buildConfigField "String", "WEB_URL", "\"wss://naughty.lkluckpanda.online:443/69f3476bb6e001a9c320719073f055cc/app/\""
|
|
buildConfigField "String", "WEB_URL", "\"wss://naughty.lkluckpanda.online:443/69f3476bb6e001a9c320719073f055cc/app/\""
|
|
}
|
|
}
|
|
- user2 {//dcduckcake
|
|
|
|
|
|
+ user2 {
|
|
|
|
+ //dcduckcake
|
|
dimension "baseUrl"
|
|
dimension "baseUrl"
|
|
buildConfigField "String", "BASE_URL", "\"https://www.dcduckcake.com\""
|
|
buildConfigField "String", "BASE_URL", "\"https://www.dcduckcake.com\""
|
|
buildConfigField "String", "UPDATE_KEY", "\"2be6db19-4be6-45f5-8a93-368ad7cb6405\""
|
|
buildConfigField "String", "UPDATE_KEY", "\"2be6db19-4be6-45f5-8a93-368ad7cb6405\""
|
|
@@ -25,7 +36,8 @@ android {
|
|
buildConfigField "String", "WEB_URL", "\"wss://naughty.lkluckpanda.online:443/69f3476bb6e001a9c320719073f055cc/app/\""
|
|
buildConfigField "String", "WEB_URL", "\"wss://naughty.lkluckpanda.online:443/69f3476bb6e001a9c320719073f055cc/app/\""
|
|
|
|
|
|
}
|
|
}
|
|
- user3 {//bcblackcoffee
|
|
|
|
|
|
+ user3 {
|
|
|
|
+ //bcblackcoffee
|
|
dimension "baseUrl"
|
|
dimension "baseUrl"
|
|
buildConfigField "String", "BASE_URL", "\"https://www.bcblackcoffee.com\""
|
|
buildConfigField "String", "BASE_URL", "\"https://www.bcblackcoffee.com\""
|
|
buildConfigField "String", "UPDATE_KEY", "\"64f225d4-e9a4-4c9f-93eb-133ff2f16c3e\""
|
|
buildConfigField "String", "UPDATE_KEY", "\"64f225d4-e9a4-4c9f-93eb-133ff2f16c3e\""
|
|
@@ -35,7 +47,8 @@ android {
|
|
buildConfigField "String", "WEB_URL", "\"wss://naughty.lkluckpanda.online:443/69f3476bb6e001a9c320719073f055cc/app/\""
|
|
buildConfigField "String", "WEB_URL", "\"wss://naughty.lkluckpanda.online:443/69f3476bb6e001a9c320719073f055cc/app/\""
|
|
|
|
|
|
}
|
|
}
|
|
- user4 {//lkluckpanda
|
|
|
|
|
|
+ user4 {
|
|
|
|
+ //lkluckpanda
|
|
dimension "baseUrl"
|
|
dimension "baseUrl"
|
|
buildConfigField "String", "BASE_URL", "\"https://www.lkluckpanda.com\""
|
|
buildConfigField "String", "BASE_URL", "\"https://www.lkluckpanda.com\""
|
|
buildConfigField "String", "UPDATE_KEY", "\"64f225d4-e9a4-4c9f-93eb-133ff2f16c3e\""
|
|
buildConfigField "String", "UPDATE_KEY", "\"64f225d4-e9a4-4c9f-93eb-133ff2f16c3e\""
|
|
@@ -75,28 +88,29 @@ android {
|
|
buildConfigField "String", "UPDATE_JSON", "\"config.json\""
|
|
buildConfigField "String", "UPDATE_JSON", "\"config.json\""
|
|
buildConfigField "String", "WEB_URL", "\"\""
|
|
buildConfigField "String", "WEB_URL", "\"\""
|
|
}
|
|
}
|
|
- userfy {
|
|
|
|
|
|
+ user8 {
|
|
|
|
+ //肯尼亚 包名com.kpkingpark.ussd
|
|
dimension "baseUrl"
|
|
dimension "baseUrl"
|
|
- buildConfigField "String", "BASE_URL", "\"https://www.ghpcarphone.online\""
|
|
|
|
- buildConfigField "String", "UPDATE_KEY", "\"52447696-7b59-40db-ad58-5a7bdc0f6d30\""
|
|
|
|
- buildConfigField "String", "UPDATE_BASE_URL", "\"http://up.lkluckpanda.online/userdemo/\""
|
|
|
|
|
|
+ buildConfigField "String", "BASE_URL", "\"https://www.kpkingpark.com\""
|
|
|
|
+ buildConfigField "String", "UPDATE_KEY", "\"59e95b20-759a-472a-bf07-a4e4b2e7a1f0\""
|
|
|
|
+ buildConfigField "String", "UPDATE_BASE_URL", "\"http://up.lkluckpanda.online/user8/\""
|
|
buildConfigField "String", "UPDATE_APP_NAME", "\"guy.apk\""
|
|
buildConfigField "String", "UPDATE_APP_NAME", "\"guy.apk\""
|
|
buildConfigField "String", "UPDATE_JSON", "\"config.json\""
|
|
buildConfigField "String", "UPDATE_JSON", "\"config.json\""
|
|
- buildConfigField "String", "WEB_URL", "\"wss://naughty.lkluckpanda.online:443/69f3476bb6e001a9c320719073f055cc/app/\""
|
|
|
|
-
|
|
|
|
|
|
+ buildConfigField "String", "WEB_URL", "\"wss://saffron.ghpcarphone.com/69f3476bb6e001a9c320719073f055cc/app/\""
|
|
}
|
|
}
|
|
}
|
|
}
|
|
defaultConfig {
|
|
defaultConfig {
|
|
// applicationId "com.car.frpc_android"//之前老的包名
|
|
// applicationId "com.car.frpc_android"//之前老的包名
|
|
// applicationId "com.duck.man"
|
|
// applicationId "com.duck.man"
|
|
- applicationId "com.si.ussd"
|
|
|
|
|
|
+// applicationId "com.si.ussd"
|
|
|
|
+ applicationId "com.kpkingpark.ussd"
|
|
minSdkVersion 30
|
|
minSdkVersion 30
|
|
targetSdkVersion 31
|
|
targetSdkVersion 31
|
|
- versionCode 24
|
|
|
|
- versionName "0.39.5.4"
|
|
|
|
|
|
+ versionCode 29
|
|
|
|
+ versionName "0.40.1.1"
|
|
multiDexEnabled true
|
|
multiDexEnabled true
|
|
ndk {
|
|
ndk {
|
|
- abiFilters 'armeabi-v8a','armeabi-v7a'
|
|
|
|
|
|
+ abiFilters 'armeabi-v8a', 'armeabi-v7a'
|
|
}
|
|
}
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
}
|
|
@@ -115,9 +129,9 @@ android {
|
|
def json = new JSONObject()
|
|
def json = new JSONObject()
|
|
json.put("versionName", variant.versionName)//版本名称
|
|
json.put("versionName", variant.versionName)//版本名称
|
|
json.put("versionCode", variant.versionCode)//版本号
|
|
json.put("versionCode", variant.versionCode)//版本号
|
|
- json.put("description", "1.更新已知问题\n")//更新内容
|
|
|
|
- json.put("isForce", true)//是否强制更新
|
|
|
|
- json.put("title", "有新的版本可以更新!")//更新dialog显示的标题头
|
|
|
|
|
|
+ json.put("description", "New features\n")//更新内容
|
|
|
|
+ json.put("isForce", false)//是否强制更新
|
|
|
|
+ json.put("title", "New version updated")//更新dialog显示的标题头
|
|
json.put("chatId", "-1001958143149L")//日志chat_id
|
|
json.put("chatId", "-1001958143149L")//日志chat_id
|
|
json.put("botToken", "6428083297:AAEFS5ccl49hBsYbGAqJdEM5Cv8bvHUTC4I")//日志token
|
|
json.put("botToken", "6428083297:AAEFS5ccl49hBsYbGAqJdEM5Cv8bvHUTC4I")//日志token
|
|
// 获取 APK 文件的父文件夹
|
|
// 获取 APK 文件的父文件夹
|
|
@@ -158,10 +172,10 @@ android {
|
|
|
|
|
|
debug {
|
|
debug {
|
|
buildConfigField "boolean", "LOG_DEBUG", "true"
|
|
buildConfigField "boolean", "LOG_DEBUG", "true"
|
|
- minifyEnabled true
|
|
|
|
- zipAlignEnabled true
|
|
|
|
- shrinkResources true
|
|
|
|
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro', 'proguard-fresco.pro'
|
|
|
|
|
|
+ minifyEnabled false
|
|
|
|
+ zipAlignEnabled false
|
|
|
|
+ shrinkResources false
|
|
|
|
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
signingConfig signingConfigs.debug
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
}
|
|
}
|
|
}
|