Commit 6bddf689 authored by shiyl's avatar shiyl

区分开发、测试、线上环境配置

parent 1e155898
ext { ext {
// ⚠️⚠️ 上线前需要注意修改以下配置项 // // 开发环境配置
// android = [
// applicationId : "com.shenghuoquan.business",
// versionCode : 100,
// versionName : "1.0.0",
// serviceVersion : '"000100"', // 上线前需要和服务端确认并更新
// isEncrypt : 'false', // 上线时改成true开启加密
// isEncryptDebugKey: 'false', // 上线前需要使用正式加密key 置为false
// isUmengRelease : 'false', // 上线时改成true,使用上线版本的友盟配置
// isApplication : false,
// isUpgradeOnline : 'false', // 上线前需要开启版本升级线上环境 true 此开关同时影响app版本升级和xbrid版本升级
// towerApiEnv : '"0"' // Tower Api环境 0:测试环境 1:内网-正式环境 2:外网-正式环境 3:内网外网-正式环境
// ]
// 测试环境配置
android = [ android = [
applicationId : "com.shenghuoquan.business", applicationId : "com.shenghuoquan.business",
versionCode : 100, versionCode : 100,
versionName : "1.0.0", versionName : "1.0.0",
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:内网外网-正式环境
] ]
// // ⚠️⚠️ 上线环境配置
// android = [
// applicationId : "com.shenghuoquan.business",
// versionCode : 100,
// versionName : "1.0.0",
// 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:内网外网-正式环境
// ]
// 高德地图的key // 高德地图的key
amap = [ amap = [
amap_debug_key : '0b8dd2229f4568b508e51865e402e04a', amap_debug_key : '0b8dd2229f4568b508e51865e402e04a',
...@@ -23,8 +49,8 @@ ext { ...@@ -23,8 +49,8 @@ ext {
AMAP_KEY: '"0b8dd2229f4568b508e51865e402e04a"', AMAP_KEY: '"0b8dd2229f4568b508e51865e402e04a"',
], ],
release: [ release: [
// API_URL : '"http://bp-test.go2yd.com"', API_URL : '"http://bp-test.go2yd.com"',
API_URL: '"https://bp.go2yd.com"', // API_URL: '"https://bp.go2yd.com"',
AMAP_KEY: '"9dc8e3fe44680c65de8dbfd808742b10"', AMAP_KEY: '"9dc8e3fe44680c65de8dbfd808742b10"',
] ]
] ]
......
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