| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- apply plugin: 'com.android.application'
- //apply plugin: 'com.hujiang.android-aspectjx'
- android {
- compileSdkVersion versions.compileSdk
- buildToolsVersion versions.buildTools
- defaultConfig {
- applicationId "com.miekir.newmvp"
- minSdkVersion versions.minSdk
- targetSdkVersion versions.targetSdk
- versionCode 1
- versionName "1.0"
- 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
- }
- // 开发与发布的URL
- flavorDimensions "url"
- productFlavors {
- dev {
- // 开发环境宿舍服务器
- buildConfigField("String", "BASE_URL", '"http://192.168.0.190:1935/"')
- }
- rel {
- // 正式上线
- buildConfigField("String", "BASE_URL", '"http://app.jianjie.life:11111/"')
- }
- company {
- // 开发2
- buildConfigField("String", "BASE_URL", '"http://10.16.0.184:8080/"')
- }
- }
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
- implementation project(path: ':network')
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'androidx.test.ext:junit:1.1.0'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
- implementation project(path: ':common')
- implementation project(path: ':mvp')
- // compile 'org.aspectj:aspectjrt:1.8.+'
- // 动态权限申请firefly1126/android_permission_aspectjx
- // 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'
- //}
|