Commit ff02d2c2 authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent aea56f39
......@@ -67,7 +67,7 @@ android {
// 不显示Log
buildConfigField "boolean", "LOG_DEBUG", "true"
buildConfigField "String", "AppKeyPre", "\"abcd\""
buildConfigField "String", "MainIp", DEBUG_URL
buildConfigField "String", "MainIp", RELEASE_URL
//混淆
minifyEnabled false
......
......@@ -52,13 +52,14 @@ android {
buildTypes {
release {
buildConfigField ("boolean","IS_DEV","false")
buildConfigField ("String","DEBUG_URL",DEBUG_URL)
buildConfigField ("String","MAINIP",RELEASE_URL)
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug{
buildConfigField ("boolean","IS_DEV","true")
buildConfigField ("String","DEBUG_URL",DEBUG_URL)
buildConfigField ("String","MAINIP",DEBUG_URL)
// buildConfigField ("String","MAINIP",RELEASE_URL)
}
}
// productFlavors {
......
......@@ -41,7 +41,6 @@ public class Constants {
}
public static String getBaseUrl() {
return BuildConfig.DEBUG_URL;
return BuildConfig.MAINIP;
}
}
\ No newline at end of file
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