| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- apply plugin: 'com.android.application'
- apply plugin: 'kotlin-android'
- apply plugin: 'kotlin-android-extensions'
- apply plugin: 'com.hujiang.android-aspectjx'
- android {
- compileSdkVersion versions.compileSdk
- buildToolsVersion versions.buildTools
- defaultConfig {
- applicationId "com.miekir.ym"
- minSdkVersion versions.minSdk
- targetSdkVersion versions.targetSdk
- versionCode 1
- versionName "1.0"
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- 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:8080/"')
- }
- 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 "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
- implementation 'androidx.core:core-ktx:1.3.2'
- implementation 'androidx.appcompat:appcompat:1.2.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'androidx.test.ext:junit:1.1.2'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
- compile 'org.aspectj:aspectjrt:1.8.+'
- // 动态权限申请firefly1126/android_permission_aspectjx
- compile 'com.firefly1126.permissionaspect:permissionaspect:1.0.1'
- implementation "com.github.VictorAlbertos:RxActivityResult:0.4.5-2.x"
- // 适配器
- implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.50'
- implementation 'com.google.android.material:material:1.1.0'
- implementation project(path: ':mvp')
- implementation project(path: ':network')
- implementation project(path: ':common')
- }
- aspectjx {
- exclude "android.support",'androidx','com.google','com.squareup.leakcanary','com.squareup.leakcanary.core','com.alipay','org.apache','com.tencent'
- }
|