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.modulecircle'
|
||
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 = '11'
|
||
}
|
||
}
|
||
|
||
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(libs.arouter.api.v150)
|
||
//annotationProcessor
|
||
annotationProcessor libs.arouter.compiler
|
||
implementation project(':moduleUtil')
|
||
implementation project(':moduletablayout')
|
||
implementation project(':modulevocal')
|
||
}
|
||
|
||
apply plugin: 'com.alibaba.arouter' // ⚠️ 添加这一行 |