代码拉取完成,页面将自动刷新
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"
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。