2025-05-15 11:08:23 +08:00
|
|
|
plugins {
|
|
|
|
|
alias(libs.plugins.android.library)
|
|
|
|
|
alias(libs.plugins.kotlin.android)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
namespace 'com.example.modulevoice'
|
|
|
|
|
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 {
|
2025-06-09 17:43:01 +08:00
|
|
|
arguments = [AROUTER_MODULE_NAME: project.getName()]
|
2025-06-07 09:00:24 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
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 {
|
|
|
|
|
enabled = true
|
|
|
|
|
}
|
|
|
|
|
kotlinOptions {
|
2025-05-29 08:59:34 +08:00
|
|
|
jvmTarget = '17'
|
2025-05-15 11:08:23 +08:00
|
|
|
}
|
|
|
|
|
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
|
2025-06-07 09:00:24 +08:00
|
|
|
|
2025-06-09 17:43:01 +08:00
|
|
|
implementation 'com.alibaba:arouter-api:1.5.2'
|
2025-06-07 09:00:24 +08:00
|
|
|
//annotationProcessor
|
2025-06-09 17:43:01 +08:00
|
|
|
annotationProcessor 'com.alibaba:arouter-compiler:1.5.2'
|
|
|
|
|
|
|
|
|
|
implementation project(':moduleroom')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
apply plugin: 'com.alibaba.arouter' // ⚠️ 添加这一行
|