|
|
@@ -1,5 +1,5 @@
|
|
|
apply plugin: 'com.android.application'
|
|
|
-apply plugin: 'com.hujiang.android-aspectjx'
|
|
|
+//apply plugin: 'com.hujiang.android-aspectjx'
|
|
|
|
|
|
|
|
|
android {
|
|
|
@@ -14,11 +14,18 @@ android {
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
}
|
|
|
buildTypes {
|
|
|
+ debug {
|
|
|
+ minifyEnabled false
|
|
|
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
+ buildConfigField("boolean", "IS_DEBUG", 'true')
|
|
|
+ }
|
|
|
release {
|
|
|
minifyEnabled false
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
+ buildConfigField("boolean", "IS_DEBUG", 'false')
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
compileOptions {
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
@@ -29,20 +36,17 @@ android {
|
|
|
productFlavors {
|
|
|
dev {
|
|
|
// 开发环境宿舍服务器
|
|
|
- buildConfigField("String", "BASE_URL", '"http://192.168.0.190:8080/"')
|
|
|
- buildConfigField("String", "HOST_STATIC_RESOURCE_IMAGE", '"http://192.168.0.190/"')
|
|
|
+ buildConfigField("String", "BASE_URL", '"http://192.168.0.190:1935/"')
|
|
|
}
|
|
|
|
|
|
rel {
|
|
|
// 正式上线
|
|
|
- buildConfigField("String", "BASE_URL", '"http://app.icsmabc.cyou:8856/"')
|
|
|
- buildConfigField("String", "HOST_STATIC_RESOURCE_IMAGE", '"http://icsmabc.cyou/eden/images/"')
|
|
|
+ buildConfigField("String", "BASE_URL", '"http://app.jianjie.life:11111/"')
|
|
|
}
|
|
|
|
|
|
company {
|
|
|
// 开发2
|
|
|
- buildConfigField("String", "BASE_URL", '"http://10.16.0.153:8080/"')
|
|
|
- buildConfigField("String", "HOST_STATIC_RESOURCE_IMAGE", '"http://10.16.0.153/"')
|
|
|
+ buildConfigField("String", "BASE_URL", '"http://10.16.0.184:8080/"')
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -58,11 +62,11 @@ dependencies {
|
|
|
implementation project(path: ':common')
|
|
|
implementation project(path: ':mvp')
|
|
|
|
|
|
- compile 'org.aspectj:aspectjrt:1.8.+'
|
|
|
+// compile 'org.aspectj:aspectjrt:1.8.+'
|
|
|
// 动态权限申请firefly1126/android_permission_aspectjx
|
|
|
- compile 'com.firefly1126.permissionaspect:permissionaspect:1.0.1'
|
|
|
+// compile 'com.firefly1126.permissionaspect:permissionaspect:1.0.1'
|
|
|
}
|
|
|
|
|
|
-aspectjx {
|
|
|
- exclude "android.support",'androidx','com.google','com.squareup.leakcanary','com.squareup.leakcanary.core','com.alipay','org.apache','com.tencent'
|
|
|
-}
|
|
|
+//aspectjx {
|
|
|
+// exclude "android.support",'androidx','com.google','com.squareup.leakcanary','com.squareup.leakcanary.core','com.alipay','org.apache','com.tencent'
|
|
|
+//}
|