1 Star 12 Fork 3

Study/xModuler

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
buildConfig.gradle 2.77 KB
一键复制 编辑 原始数据 按行查看 历史
markwang 提交于 2021-04-13 10:54 . 调整项目结构
ext {
//开发模式
modelDev = 1
//生产模式
modePro = 2
//当前开发模式
currentModel = modelDev
//main模块是否支持单独运行
aloneEnableMain = false
//user模块是否支持单独运行
aloneEnableUser = false
var = [
compileSdkVersion: 30,
buildToolsVersion: "30.0.3",
minSdkVersion : 21,
targetSdkVersion : 30,
versionCode : 1,
versionName : "1.0",
]
depVersion = [
lifecycle: "2.3.0",
room : "2.2.3",
retrofit2: "2.6.0",
]
//kotlin相关
kotlin = [
kotlinstd : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.50",
corektx : "androidx.core:core-ktx:1.0.2",
kotlinxCoroutinesCore : "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3",
kotlinxCoroutinesAndroid: "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3"
]
kotlinLibs = kotlin.values()
//androidx jetpack相关
androidx = [
lifecycleruntime : "androidx.lifecycle:lifecycle-runtime-ktx:${depVersion.lifecycle}",
viewmodel : "androidx.lifecycle:lifecycle-viewmodel-ktx:${depVersion.lifecycle}",
livedata : "androidx.lifecycle:lifecycle-livedata-ktx:${depVersion.lifecycle}",
material : "com.google.android.material:material:1.2.0",
appcompat : "androidx.appcompat:appcompat:1.3.0-beta01",
constraintlayout : "androidx.constraintlayout:constraintlayout:1.1.3",
asynclayoutinflater: "androidx.asynclayoutinflater:asynclayoutinflater:1.0.0",
roomRuntime : "androidx.room:room-runtime:${depVersion.room}",
roomKtx : "androidx.room:room-ktx:${depVersion.room}"
]
androidxLibs = androidx.values()
//网络请求相关
http = [
retrofit : "com.squareup.retrofit2:retrofit:${depVersion.retrofit2}",
converterGson: "com.squareup.retrofit2:converter-gson:${depVersion.retrofit2}",
]
httpLibs = http.values()
//测试相关
javaTest = [
junit : "junit:junit:4.12",
mockito: 'org.mockito:mockito-core:2.19.0'
]
javaTestLibs = javaTest.values()
androidTestLib = [
junit : "androidx.test.ext:junit:1.1.0",
espresso: "androidx.test.espresso:espresso-core:3.1.1"
]
androidTestLibs = androidTestLib.values()
debugDepens = [
leakcanaryAndroid: 'com.squareup.leakcanary:leakcanary-android:2.3'
]
debugDepensLibs = debugDepens.values()
//aspectJ
aspectJ = "org.aspectj:aspectjrt:1.9.5"
//Json解析
gson = "com.google.code.gson:gson:2.8.6"
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Kotlin
1
https://gitee.com/StudyNotes/x-moduler.git
git@gitee.com:StudyNotes/x-moduler.git
StudyNotes
x-moduler
xModuler
master

搜索帮助