分开rap2和本地服务端调试版本

0515
panqihua 5 years ago
parent 970c19b5d3
commit 3c4aa20b44
  1. 2
      app/.gitignore
  2. 27
      app/build.gradle
  3. BIN
      app/my.key
  4. BIN
      app/pan.key

2
app/.gitignore vendored

@ -1,2 +1,4 @@
/build /build
/release/ /release/
/rap2debug/
/serverdebug/

@ -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 {

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save