Commit 3c605eee authored by yinjiacheng's avatar yinjiacheng

update App升级功能环境配置

parent c34cbe0c
......@@ -14,6 +14,7 @@ android {
versionCode rootProject.ext.android.versionCode
versionName rootProject.ext.android.versionName
buildConfigField("boolean", "IS_ENCRYPT_DEBUG_KEY", rootProject.ext.android.isEncryptDebugKey)
buildConfigField("boolean", "IS_APP_UPGRADE_ONLINE", rootProject.ext.android.isAppUpgradeOnline)
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
manifestPlaceholders = [qqappid : "101923771",
JPUSH_PKGNAME: applicationId,
......
......@@ -186,7 +186,7 @@ class YdSubwayApplication : YdBaseApplication() {
val logger = XLogger("appUpgrade")
logger.debugOn(BuildConfig.DEBUG)
YDAppUpdateManager.init(PmUpdateApp(this) {
online = false // 线上true、线下false
online = BuildConfig.IS_APP_UPGRADE_ONLINE // 线上true、线下false
platformId = AppConfig.TowerProPlatformId // 平台Id
platform = AppConfig.TowerProPlatform // ios/Android
appId = packageName // 应用包名
......
ext {
android = [
applicationId : "com.shenghuoquan.business",
versionCode : 100,
versionName : "1.0.0",
serviceVersion : '"000100"', // 上线前需要和服务端确认并更新
isEncrypt : 'true', // 上线前需要开启加密
isEncryptDebugKey: 'true', // 上线前需要使用正式加密key 置为false
isApplication : false
applicationId : "com.shenghuoquan.business",
versionCode : 100,
versionName : "1.0.0",
serviceVersion : '"000100"', // 上线前需要和服务端确认并更新
isEncrypt : 'true', // 上线前需要开启加密
isEncryptDebugKey : 'true', // 上线前需要使用正式加密key 置为false
isApplication : false,
isAppUpgradeOnline: 'true' // 上线前需要开启版本升级线上环境 true
]
buildParams = [
debug : [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment