Commit d1f9d2c7 authored by yinjiacheng's avatar yinjiacheng

update 磐石so、RSA加密Key区分正式和测试

parent 1999220e
...@@ -37,6 +37,7 @@ android { ...@@ -37,6 +37,7 @@ android {
applicationIdSuffix ".debug" applicationIdSuffix ".debug"
buildConfigField("String", "API_URL", rootProject.ext.buildParams.debug.API_URL) buildConfigField("String", "API_URL", rootProject.ext.buildParams.debug.API_URL)
buildConfigField("String", "PROVIDER_NAME", '\"' + rootProject.ext.android.applicationId + ".debug.fileprovider" + '\"') buildConfigField("String", "PROVIDER_NAME", '\"' + rootProject.ext.android.applicationId + ".debug.fileprovider" + '\"')
buildConfigField("boolean", "IS_ENCRYPT_DEBUG_KEY", rootProject.ext.android.isEncryptDebugKey)
manifestPlaceholders = [ manifestPlaceholders = [
app_name : "B端测试", app_name : "B端测试",
file_provider: rootProject.ext.android.applicationId + ".debug.fileprovider", file_provider: rootProject.ext.android.applicationId + ".debug.fileprovider",
......
ext { ext {
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',// 上线前需要开启加密 isEncrypt : 'true', // 上线前需要开启加密
isApplication : false isEncryptDebugKey: 'true', // 上线前需要使用正式加密key 置为false
isApplication : false
] ]
buildParams = [ buildParams = [
debug : [ debug : [
// API_URL: '"http://bp-dev.go2yd.com"', API_URL: '"http://bp-dev.go2yd.com"',
API_URL: '"http://bp-test.go2yd.com"', // API_URL: '"http://bp-test.go2yd.com"',
], ],
release: [ release: [
API_URL: '"http://bp-test.go2yd.com"', API_URL: '"http://bp-test.go2yd.com"',
...@@ -79,7 +80,7 @@ ext.dependencies = [ ...@@ -79,7 +80,7 @@ ext.dependencies = [
'io.reactivex.rxjava3:rxjava:3.0.9', 'io.reactivex.rxjava3:rxjava:3.0.9',
'com.yidian.framework.mobile:ydhttp:1.0.8-SNAPSHOT', 'com.yidian.framework.mobile:ydhttp:1.0.8-SNAPSHOT',
'com.yidian.framework.mobile:ydutils:1.0.1-SNAPSHOT', 'com.yidian.framework.mobile:ydutils:1.0.1-SNAPSHOT',
'com.yidian.framework.mobile:xdiamond:1.0.4-SNAPSHOT', 'com.yidian.framework.mobile:xdiamond:1.0.6',
'com.loopj.android:android-async-http:1.4.9' 'com.loopj.android:android-async-http:1.4.9'
], ],
......
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