54 lines
1.3 KiB
Groovy
54 lines
1.3 KiB
Groovy
/*
|
||
* 文件说明:module的基础配置
|
||
*/
|
||
apply plugin: "com.android.library"
|
||
apply plugin: "org.jetbrains.kotlin.android"
|
||
apply plugin: "kotlin-android"
|
||
apply plugin: "kotlin-kapt"
|
||
apply plugin: "com.alibaba.arouter"
|
||
|
||
android {
|
||
compileSdkVersion COMPILE_SDK_VERSION.toInteger()
|
||
defaultConfig {
|
||
minSdkVersion MIN_SDK_VERSION.toInteger()
|
||
targetSdkVersion TARGET_SDK_VERSION.toInteger()
|
||
versionCode 1
|
||
versionName "1.0.0"
|
||
consumerProguardFiles 'proguard-rules.pro'
|
||
}
|
||
|
||
buildTypes {
|
||
release {
|
||
minifyEnabled true
|
||
zipAlignEnabled true
|
||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||
}
|
||
debug {
|
||
debuggable true
|
||
minifyEnabled false
|
||
}
|
||
}
|
||
|
||
compileOptions {
|
||
sourceCompatibility JavaVersion.VERSION_11
|
||
targetCompatibility JavaVersion.VERSION_11
|
||
}
|
||
|
||
kotlinOptions {
|
||
jvmTarget = '11'
|
||
}
|
||
|
||
}
|
||
|
||
dependencies {
|
||
implementation 'com.google.android.material:material:1.6.1'
|
||
implementation 'androidx.core:core-ktx:1.9.0'
|
||
implementation 'androidx.appcompat:appcompat:1.6.1'
|
||
|
||
// aRouter
|
||
api 'com.alibaba:arouter-api:1.4.0'
|
||
api 'com.alibaba:arouter-annotation:1.0.6'
|
||
kapt 'com.alibaba:arouter-compiler:1.5.2'
|
||
}
|
||
|