plugins { id 'com.android.library' id 'org.jetbrains.kotlin.android' id 'kotlin-kapt' } android { compileSdk 31 defaultConfig { minSdk 21 targetSdk 27 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" kapt { arguments { arg("AROUTER_MODULE_NAME", project.getName()) arg("room.schemaLocation", "$projectDir/schemas".toString()) } } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' buildConfigField("String", "HTTP_BASE", '"https://www.baidu.com/api/release/"') } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } viewBinding { enabled = true } } dependencies { api 'androidx.core:core-ktx:1.6.0' api 'androidx.appcompat:appcompat:1.3.0' api 'com.google.android.material:material:1.4.0' api project(path: ':libThirdParty') kapt 'androidx.room:room-compiler:2.4.3' }