plugins { id 'com.android.library' id 'org.jetbrains.kotlin.android' } android { namespace 'com.wmdigit.common' compileSdk 33 defaultConfig { minSdk 24 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" javaCompileOptions { annotationProcessorOptions { arguments = [AROUTER_MODULE_NAME: project.getName()] } } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } debug { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } kotlinOptions { jvmTarget = '17' } buildFeatures { viewBinding true dataBinding true } } dependencies { testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.2.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1' api 'androidx.appcompat:appcompat:1.6.1' api 'com.google.android.material:material:1.9.0' api 'androidx.constraintlayout:constraintlayout:2.1.4' api(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0")) // toaster api 'com.github.getActivity:Toaster:12.3' // Rxjava api "io.reactivex.rxjava2:rxjava:2.2.10" api "io.reactivex.rxjava2:rxandroid:2.1.1" api "com.squareup.retrofit2:adapter-rxjava2:2.4.0" // arouter implementation 'com.alibaba:arouter-api:1.5.2' annotationProcessor 'com.alibaba:arouter-compiler:1.5.2' // XLog api 'com.elvishew:xlog:1.6.1' // androidx api 'androidx.core:core-ktx:1.10.1' // gson api 'com.google.code.gson:gson:2.9.0' // permission implementation 'com.github.getActivity:XXPermissions:18.62' // Java 8支持的 DefaultLifecycleObserver api "androidx.lifecycle:lifecycle-common-java8:2.3.1" // ProcessLifecycleOwner给整个app进程提供一个lifecycle api "androidx.lifecycle:lifecycle-process:2.3.1" api "androidx.lifecycle:lifecycle-extensions:2.0.0" //navigation api 'androidx.navigation:navigation-fragment:2.5.3' api 'androidx.navigation:navigation-ui:2.5.3' // leakCanary debugApi 'com.squareup.leakcanary:leakcanary-android:2.12' // Glide api 'com.github.bumptech.glide:glide:4.11.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0' api 'com.squareup.picasso:picasso:2.71828' // 抽屉 api 'androidx.drawerlayout:drawerlayout:1.2.0' api 'com.github.jenly1314.AppUpdater:app-updater:1.2.0' // eventbus api 'org.greenrobot:eventbus:3.1.1' }