2025-05-15 11:08:23 +08:00
|
|
|
plugins {
|
|
|
|
|
alias(libs.plugins.android.library)
|
|
|
|
|
alias(libs.plugins.kotlin.android)
|
|
|
|
|
}
|
2025-06-07 09:00:24 +08:00
|
|
|
configurations.all {
|
|
|
|
|
// 解决注解处理器冲突
|
|
|
|
|
resolutionStrategy {
|
|
|
|
|
force 'com.alibaba:arouter-compiler:1.5.2'
|
|
|
|
|
force 'com.google.auto.service:auto-service:1.0'
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-05-15 11:08:23 +08:00
|
|
|
android {
|
|
|
|
|
namespace 'com.example.modulevocal'
|
|
|
|
|
compileSdk 35
|
|
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
|
minSdk 24
|
|
|
|
|
targetSdk 35
|
|
|
|
|
versionCode 1
|
|
|
|
|
versionName "1.0"
|
|
|
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2025-06-07 09:00:24 +08:00
|
|
|
javaCompileOptions {
|
|
|
|
|
annotationProcessorOptions {
|
|
|
|
|
arguments += [
|
|
|
|
|
AROUTER_GENERATE_DOC: "enable",
|
|
|
|
|
// 显式指定模块名
|
|
|
|
|
AROUTER_MODULE_NAME: project.name
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-05-15 11:08:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
|
release {
|
|
|
|
|
minifyEnabled false
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
compileOptions {
|
2025-05-29 08:59:34 +08:00
|
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
|
|
|
targetCompatibility JavaVersion.VERSION_17
|
2025-05-15 11:08:23 +08:00
|
|
|
}
|
|
|
|
|
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'))
|
2025-05-22 19:03:01 +08:00
|
|
|
implementation(project(':moduletablayout'))
|
2025-06-07 09:00:24 +08:00
|
|
|
|
|
|
|
|
implementation 'com.alibaba:arouter-api:1.5.2'
|
|
|
|
|
//annotationProcessor
|
|
|
|
|
annotationProcessor 'com.alibaba:arouter-compiler:1.5.2'
|
|
|
|
|
}
|
|
|
|
|
apply plugin: 'com.alibaba.arouter' // ⚠️ 添加这一行
|