Files
peko-android/modules/module_base.gradle

54 lines
1.3 KiB
Groovy
Raw Normal View History

2023-11-22 21:35:05 +08:00
/*
* 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'
2023-11-27 17:03:31 +08:00
implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
2023-11-22 21:35:05 +08:00
// 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'
}