|
|
@ -1,10 +1,20 @@ |
|
|
|
ext { |
|
|
|
ext { |
|
|
|
|
|
|
|
//本地服务端测试地址,把ip地址部分改成ipconfig /all找到的内网地址 |
|
|
|
API_HOST = 'http://192.168.3.132:8080/' |
|
|
|
API_HOST = 'http://192.168.3.132:8080/' |
|
|
|
|
|
|
|
//本地rap2服务端测试地址,把ip地址部分改成ipconfig /all找到的内网地址 |
|
|
|
RAP2_API_HOST = 'http://192.168.3.132:38080/app/mock/1' |
|
|
|
RAP2_API_HOST = 'http://192.168.3.132:38080/app/mock/1' |
|
|
|
} |
|
|
|
} |
|
|
|
apply plugin: 'com.android.application' |
|
|
|
apply plugin: 'com.android.application' |
|
|
|
apply plugin: 'multi-languages' |
|
|
|
apply plugin: 'multi-languages' |
|
|
|
android { |
|
|
|
android { |
|
|
|
|
|
|
|
signingConfigs { |
|
|
|
|
|
|
|
debug { |
|
|
|
|
|
|
|
storeFile file('pan.key') |
|
|
|
|
|
|
|
storePassword 'panpan' |
|
|
|
|
|
|
|
keyAlias = 'pan' |
|
|
|
|
|
|
|
keyPassword 'panpan' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
compileSdkVersion 29 |
|
|
|
compileSdkVersion 29 |
|
|
|
buildToolsVersion "29.0.3" |
|
|
|
buildToolsVersion "29.0.3" |
|
|
|
|
|
|
|
|
|
|
@ -20,7 +30,15 @@ android { |
|
|
|
|
|
|
|
|
|
|
|
buildTypes { |
|
|
|
buildTypes { |
|
|
|
debug{ |
|
|
|
debug{ |
|
|
|
buildConfigField('String','API_HOST',"\""+API_HOST+"\"") |
|
|
|
buildConfigField('String','API_HOST',"\""+RAP2_API_HOST+"\"") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
signingConfig=signingConfigs.debug |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rap2debug { |
|
|
|
|
|
|
|
buildConfigField('String','API_HOST',"\""+RAP2_API_HOST+"\"") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
signingConfig=signingConfigs.debug |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
release { |
|
|
|
release { |
|
|
@ -28,6 +46,13 @@ android { |
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
|
|
|
|
|
|
|
|
|
|
|
buildConfigField('String','API_HOST',"\""+API_HOST+"\"") |
|
|
|
buildConfigField('String','API_HOST',"\""+API_HOST+"\"") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
signingConfig=signingConfigs.debug |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
serverdebug { |
|
|
|
|
|
|
|
buildConfigField('String','API_HOST',"\""+API_HOST+"\"") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
signingConfig=signingConfigs.debug |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
sourceSets { |
|
|
|
sourceSets { |
|
|
|