64 lines
1.5 KiB
Groovy
64 lines
1.5 KiB
Groovy
plugins {
|
||
alias(libs.plugins.android.library)
|
||
alias(libs.plugins.kotlin.android)
|
||
}
|
||
|
||
android {
|
||
namespace 'com.example.modulevoice'
|
||
compileSdk 35
|
||
|
||
defaultConfig {
|
||
minSdk 24
|
||
targetSdk 35
|
||
|
||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||
javaCompileOptions {
|
||
annotationProcessorOptions {
|
||
arguments = [AROUTER_MODULE_NAME: project.getName()]
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
buildTypes {
|
||
release {
|
||
minifyEnabled false
|
||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||
}
|
||
}
|
||
compileOptions {
|
||
sourceCompatibility JavaVersion.VERSION_17
|
||
targetCompatibility JavaVersion.VERSION_17
|
||
}
|
||
dataBinding {
|
||
enabled = true
|
||
}
|
||
kotlinOptions {
|
||
jvmTarget = '17'
|
||
}
|
||
buildFeatures {
|
||
viewBinding true
|
||
}
|
||
}
|
||
|
||
dependencies {
|
||
|
||
implementation libs.appcompat
|
||
implementation libs.material
|
||
implementation project(':moduleUtil')
|
||
implementation project(':moduletablayout')
|
||
|
||
testImplementation libs.junit
|
||
androidTestImplementation libs.ext.junit
|
||
androidTestImplementation libs.espresso.core
|
||
implementation libs.lifecycle.livedata.ktx
|
||
implementation libs.lifecycle.viewmodel.ktx
|
||
|
||
implementation 'com.alibaba:arouter-api:1.5.2'
|
||
//annotationProcessor
|
||
annotationProcessor 'com.alibaba:arouter-compiler:1.5.2'
|
||
|
||
implementation project(':moduleroom')
|
||
}
|
||
|
||
apply plugin: 'com.alibaba.arouter' // ⚠️ 添加这一行 |