65 lines
1.7 KiB
Groovy
65 lines
1.7 KiB
Groovy
plugins {
|
||
alias(libs.plugins.android.library)
|
||
alias(libs.plugins.kotlin.android)
|
||
}
|
||
//configurations.all {
|
||
// // 解决注解处理器冲突
|
||
// resolutionStrategy {
|
||
// force 'com.alibaba:arouter-compiler:1.5.2'
|
||
// force 'com.google.auto.service:auto-service:1.0'
|
||
// }
|
||
//}
|
||
android {
|
||
namespace 'com.example.modulevocal'
|
||
compileSdk 35
|
||
|
||
defaultConfig {
|
||
minSdk 24
|
||
|
||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||
javaCompileOptions {
|
||
annotationProcessorOptions {
|
||
arguments += [
|
||
AROUTER_GENERATE_DOC: "enable",
|
||
// 显式指定模块名
|
||
AROUTER_MODULE_NAME: project.name
|
||
]
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
buildTypes {
|
||
release {
|
||
minifyEnabled false
|
||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||
}
|
||
}
|
||
compileOptions {
|
||
sourceCompatibility JavaVersion.VERSION_17
|
||
targetCompatibility JavaVersion.VERSION_17
|
||
}
|
||
dataBinding {
|
||
enable = true
|
||
}
|
||
}
|
||
|
||
dependencies {
|
||
|
||
implementation libs.appcompat
|
||
implementation libs.material
|
||
implementation libs.activity
|
||
implementation libs.constraintlayout
|
||
testImplementation libs.junit
|
||
androidTestImplementation libs.ext.junit
|
||
androidTestImplementation libs.espresso.core
|
||
|
||
implementation(project(':moduleUtil'))
|
||
implementation(project(':moduletablayout'))
|
||
|
||
implementation 'com.alibaba:arouter-api:1.5.2'
|
||
//annotationProcessor
|
||
annotationProcessor 'com.alibaba:arouter-compiler:1.5.2'
|
||
|
||
}
|
||
apply plugin: 'com.alibaba.arouter' // ⚠️ 添加这一行 |