加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
base.build.gradle 1.86 KB
一键复制 编辑 原始数据 按行查看 历史
zhouhuandev 提交于 2022-05-21 17:25 . [chron]: 重构依赖架构
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
kapt {
arguments {
arg("AROUTER_MODULE_NAME", project.getName())
}
}
android {
compileSdkVersion rootProject.ext.compileVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetVersion
versionCode rootProject.ext.versionCode
versionName rootProject.ext.versionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
debug {
buildConfigField "boolean", 'IS_DEBUG', 'true'
}
release {
buildConfigField "boolean", 'IS_DEBUG', 'false'
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
dataBinding true
// for view binding :
viewBinding true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
dependencies {
def Depends = [
apis : rootProject.ext.baseBuildDepends.api,
implementations : rootProject.ext.baseBuildDepends.implementations,
kapt : rootProject.ext.baseBuildDepends.kapt,
compileOnly : rootProject.ext.baseBuildDepends.compile,
testImplementations: rootProject.ext.baseBuildDepends.testImpl,
]
Depends.apis.each { api it }
Depends.implementations.each { implementation it }
Depends.kapt.each { kapt it }
Depends.compileOnly.each { compileOnly it }
Depends.testImplementations.each { testImplementation it }
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化