build: 版本兼容升级

1. agp -> v8.1.0
2. gradle -> v8.0
3. 添加 gradle version catalogs 管理依赖,替换 buildSrc 方式,目前只将插件部分重构,其余依赖后续版本中重构
This commit is contained in:
Quyunshuo
2023-08-20 20:23:09 +08:00
parent 2fd0c18b29
commit 337f7fa15e
18 changed files with 130 additions and 115 deletions

View File

@ -1,2 +1,2 @@
plugins { `kotlin-dsl` }
repositories { jcenter() }
repositories { mavenCentral() }

View File

@ -22,8 +22,8 @@ object DependencyConfig {
const val ConstraintLayout = "2.1.3" // 约束布局
const val TestExtJunit = "1.1.2"
const val TestEspresso = "3.3.0"
const val ActivityKtx = "1.4.0"
const val FragmentKtx = "1.4.1"
const val ActivityKtx = "1.5.1"
const val FragmentKtx = "1.5.2"
const val MultiDex = "2.0.1"
// Android---------------------------------------------------------------
@ -35,8 +35,8 @@ object DependencyConfig {
const val Coroutines = "1.6.1" // 协程
// JetPack---------------------------------------------------------------
const val Lifecycle = "2.4.1" // Lifecycle相关ViewModel & LiveData & Lifecycle
const val Hilt = "2.38.1" // DI框架-Hilt
const val Lifecycle = "2.4.1" // Lifecycle
const val Hilt = "2.44" // DI框架-Hilt
// GitHub----------------------------------------------------------------
const val OkHttp = "4.9.0" // OkHttp

View File

@ -7,10 +7,10 @@ package com.quyunshuo.androidbaseframemvvm.buildsrc
* @since 4/24/21 5:56 PM
*/
object ProjectBuildConfig {
const val compileSdkVersion = 31
const val compileSdkVersion = 33
const val applicationId = "com.quyunshuo.androidbaseframemvvm"
const val minSdkVersion = 21
const val targetSdkVersion = 31
const val targetSdkVersion = 33
const val versionCode = 1
const val versionName = "1.0"
const val isAppMode = false

View File

@ -1,14 +0,0 @@
package com.quyunshuo.androidbaseframemvvm.buildsrc
/**
* 项目级插件管理
*
* @author Qu Yunshuo
* @since 4/24/21 5:56 PM
*/
object ProjectPluginManager {
const val AndroidToolsPlugin = "com.android.tools.build:gradle:7.2.0"
const val KotlinPlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21"
const val ARouterRegister = "com.alibaba:arouter-register:1.0.2"
const val HiltPlugin = "com.google.dagger:hilt-android-gradle-plugin:2.38.1"
}