apply plugin: 'com.android.library' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt' apply plugin: 'org.jetbrains.kotlin.android' kapt { arguments { arg("AROUTER_MODULE_NAME", project.getName()) // 是否生成路由文档,"enable":生成文档,其他字符串不生成路由文档 arg("AROUTER_GENERATE_DOC", "enable") } } android { compileSdkVersion 30 defaultConfig { minSdkVersion 21 targetSdkVersion 30 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } preRelease{ debuggable true minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } packagingOptions { resources.excludes.add("META-INF/*") } buildFeatures{ viewBinding = true } sourceSets { main { jniLibs.srcDirs = ['libs'] } } } dependencies { implementation 'androidx.appcompat:appcompat:1.3.0' implementation 'com.google.android.material:material:1.4.0' implementation project(path: ':usercenter') testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' implementation project(':BaseLibrary') api project(path: ':camerakit') // api project(path: ':ffmpegCmd') api project(path: ':midiplaylib') api project(path: ':musictuner') api project(path: ':metronome') implementation project(path: ':chatModule') // implementation project(path: ':rong_im:kit') //ARouter implementation "com.alibaba:arouter-api:$rootProject.ext.android.arouter_api_version" kapt "com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version" //ijkPlayer // api 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8' api 'com.google.android.exoplayer:exoplayer:2.15.0' }