1. agp -> v8.1.0 2. gradle -> v8.0 3. 添加 gradle version catalogs 管理依赖,替换 buildSrc 方式,目前只将插件部分重构,其余依赖后续版本中重构
42 lines
1005 B
Groovy
42 lines
1005 B
Groovy
//****************************************
|
|
//********* lib_common 的配置文件 **********
|
|
//****************************************
|
|
|
|
plugins {
|
|
alias(libs.plugins.library)
|
|
alias(libs.plugins.kotlin)
|
|
alias(libs.plugins.hilt)
|
|
id "kotlin-kapt"
|
|
}
|
|
|
|
apply from: '../base_lib.gradle'
|
|
|
|
import com.quyunshuo.androidbaseframemvvm.buildsrc.*
|
|
|
|
android {
|
|
|
|
defaultConfig {
|
|
resValue "string", "BUGLY_APP_ID", SDKKeyConfig.BUGLY_APP_ID
|
|
}
|
|
|
|
buildFeatures {
|
|
viewBinding = true
|
|
}
|
|
|
|
resourcePrefix "common_"
|
|
namespace 'com.quyunshuo.androidbaseframemvvm.common'
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
|
|
api project(path: ':lib_base')
|
|
|
|
api DependencyConfig.JetPack.HiltCore
|
|
|
|
kapt DependencyConfig.GitHub.ARouteCompiler
|
|
kapt DependencyConfig.GitHub.EventBusAPT
|
|
kapt DependencyConfig.GitHub.AutoServiceAnnotations
|
|
kapt DependencyConfig.JetPack.HiltApt
|
|
kapt DependencyConfig.JetPack.LifecycleCompilerAPT
|
|
} |