Commit 770bc931 authored by shiyl's avatar shiyl

添加友盟预初始化功能

parent 9740f2fa
...@@ -5,7 +5,6 @@ import android.content.Context ...@@ -5,7 +5,6 @@ import android.content.Context
import android.content.res.Configuration import android.content.res.Configuration
import android.os.Bundle import android.os.Bundle
import com.orhanobut.hawk.Hawk import com.orhanobut.hawk.Hawk
import com.umeng.commonsdk.UMConfigure
import com.yidian.common.YdBaseApplication import com.yidian.common.YdBaseApplication
import com.yidian.common.http.ApiSaveCookiesInterceptor import com.yidian.common.http.ApiSaveCookiesInterceptor
import com.yidian.common.http.ApiSetCookiesInterceptor import com.yidian.common.http.ApiSetCookiesInterceptor
...@@ -40,7 +39,7 @@ class YdSubwayApplication : YdBaseApplication() { ...@@ -40,7 +39,7 @@ class YdSubwayApplication : YdBaseApplication() {
XPageManager.init(this) XPageManager.init(this)
loadService() loadService()
registerActivityLifecycleCallbacks(activityLifecycle) registerActivityLifecycleCallbacks(activityLifecycle)
UMConfigUtils.preInit(this) UMConfigUtils.preInit(context)
} }
} }
......
...@@ -13,34 +13,34 @@ ext { ...@@ -13,34 +13,34 @@ ext {
// TowerApiEnv : '0', // Tower Api环境 0:测试环境 1:内网-正式环境 2:外网-正式环境 3:内网外网-正式环境 // TowerApiEnv : '0', // Tower Api环境 0:测试环境 1:内网-正式环境 2:外网-正式环境 3:内网外网-正式环境
// XInsightEnv : '0' // 慧眼SDK环境 0:开发环境 1:测试环境 2:预生产环境 3:生产环境 // XInsightEnv : '0' // 慧眼SDK环境 0:开发环境 1:测试环境 2:预生产环境 3:生产环境
// ] // ]
// // 测试环境配置 // 测试环境配置
// android = [
// applicationId : "com.shenghuoquan.business",
// versionCode : 101,
// versionName : "1.0.1",
// serviceVersion : '"000100"', // 上线前需要和服务端确认并更新
// isEncrypt : 'true', // 上线时改成true开启加密
// isEncryptDebugKey: 'true', // 上线前需要使用正式加密key 置为false
// isUmengRelease : 'false', // 上线时改成true,使用上线版本的友盟配置
// isApplication : false,
// isUpgradeOnline : 'false', // 上线前需要开启版本升级线上环境 true 此开关同时影响app版本升级和xbrid版本升级
// TowerApiEnv : '0', // Tower Api环境 0:测试环境 1:内网-正式环境 2:外网-正式环境 3:内网外网-正式环境
// XInsightEnv : '1' // 慧眼SDK环境 0:开发环境 1:测试环境 2:预生产环境 3:生产环境
// ]
// ⚠️⚠️ 上线环境配置
android = [ android = [
applicationId : "com.shenghuoquan.business", applicationId : "com.shenghuoquan.business",
versionCode : 101, versionCode : 101,
versionName : "1.0.1", versionName : "1.0.1",
serviceVersion : '"000100"', // 上线前需要和服务端确认并更新 serviceVersion : '"000100"', // 上线前需要和服务端确认并更新
isEncrypt : 'true', // 上线时改成true开启加密 isEncrypt : 'true', // 上线时改成true开启加密
isEncryptDebugKey: 'false', // 上线前需要使用正式加密key 置为false isEncryptDebugKey: 'true', // 上线前需要使用正式加密key 置为false
isUmengRelease : 'true', // 上线时改成true,使用上线版本的友盟配置 isUmengRelease : 'false', // 上线时改成true,使用上线版本的友盟配置
isApplication : false, isApplication : false,
isUpgradeOnline : 'true', // 上线前需要开启版本升级线上环境 true 此开关同时影响app版本升级和xbrid版本升级 isUpgradeOnline : 'false', // 上线前需要开启版本升级线上环境 true 此开关同时影响app版本升级和xbrid版本升级
TowerApiEnv : '2', // Tower Api环境 0:测试环境 1:内网-正式环境 2:外网-正式环境 3:内网外网-正式环境 TowerApiEnv : '0', // Tower Api环境 0:测试环境 1:内网-正式环境 2:外网-正式环境 3:内网外网-正式环境
XInsightEnv : '3' // 慧眼SDK环境 0:开发环境 1:测试环境 2:预生产环境 3:生产环境 XInsightEnv : '1' // 慧眼SDK环境 0:开发环境 1:测试环境 2:预生产环境 3:生产环境
] ]
// // ⚠️⚠️ 上线环境配置
// android = [
// applicationId : "com.shenghuoquan.business",
// versionCode : 101,
// versionName : "1.0.1",
// serviceVersion : '"000100"', // 上线前需要和服务端确认并更新
// isEncrypt : 'true', // 上线时改成true开启加密
// isEncryptDebugKey: 'false', // 上线前需要使用正式加密key 置为false
// isUmengRelease : 'true', // 上线时改成true,使用上线版本的友盟配置
// isApplication : false,
// isUpgradeOnline : 'true', // 上线前需要开启版本升级线上环境 true 此开关同时影响app版本升级和xbrid版本升级
// TowerApiEnv : '2', // Tower Api环境 0:测试环境 1:内网-正式环境 2:外网-正式环境 3:内网外网-正式环境
// XInsightEnv : '3' // 慧眼SDK环境 0:开发环境 1:测试环境 2:预生产环境 3:生产环境
// ]
// 高德地图的key // 高德地图的key
amap = [ amap = [
amap_debug_key : '0b8dd2229f4568b508e51865e402e04a', amap_debug_key : '0b8dd2229f4568b508e51865e402e04a',
......
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