apply plugin: 'com.android.library' android { compileSdkVersion rootProject.ext.android.compileSdkVersion defaultConfig { minSdkVersion rootProject.ext.android.minSdkVersion targetSdkVersion rootProject.ext.android.targetSdkVersion versionCode rootProject.ext.android.versionCode versionName rootProject.ext.android.versionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" ndk { abiFilters "armeabi-v7a", "arm64-v8a" } javaCompileOptions { annotationProcessorOptions { arguments = [AROUTER_MODULE_NAME: project.getName()] } } multiDexEnabled true flavorDimensions "app"//多渠道打包维度不同问题 } sourceSets { main { jniLibs.srcDirs = ['libs'] } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } debug{ minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } preRelease{ minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } sourceSets { main { //控制两种模式下的资源和代码配置情况 manifest.srcFile 'src/main/AndroidManifest.xml' //集成开发模式下排除debug文件夹中的所有Java文件 java { exclude 'debug/**' } jniLibs.srcDirs = ['libs'] } } buildFeatures { viewBinding = true } } dependencies { api fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'com.google.android.material:material:1.4.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'androidx.legacy:legacy-support-v4:1.0.0' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.2.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' implementation 'androidx.lifecycle:lifecycle-livedata:2.1.0-alpha04' implementation 'androidx.lifecycle:lifecycle-viewmodel:2.1.0-alpha04' implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0' implementation 'com.github.netless-io:whiteboard-android:2.15.18' // implementation project(path: ':rong_im:kit') // implementation project(path: ':rong_im:live') // implementation project(path: ':rong_im:sight') implementation project(path: ':usercenter') implementation project(path: ':BaseLibrary') implementation 'com.h6ah4i.android.widget.verticalseekbar:verticalseekbar:1.0.0' //ARouter annotationProcessor("com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version") }