build: 升级 Kotlin、Jetpack 依赖版本至最新、升级 compileSdkVersion 为 31

This commit is contained in:
Quyunshuo
2022-05-19 23:30:15 +08:00
parent f0b8f7ca46
commit a29e353d4f
6 changed files with 11 additions and 15 deletions

View File

@ -12,7 +12,6 @@ apply plugin: 'dagger.hilt.android.plugin'
android {
compileSdkVersion ProjectBuildConfig.compileSdkVersion
buildToolsVersion ProjectBuildConfig.buildToolsVersion
defaultConfig {
applicationId ProjectBuildConfig.applicationId

View File

@ -11,7 +11,6 @@ apply plugin: 'dagger.hilt.android.plugin'
android {
compileSdkVersion ProjectBuildConfig.compileSdkVersion
buildToolsVersion ProjectBuildConfig.buildToolsVersion
defaultConfig {
minSdkVersion ProjectBuildConfig.minSdkVersion

View File

@ -16,7 +16,6 @@ apply plugin: 'dagger.hilt.android.plugin'
android {
compileSdkVersion ProjectBuildConfig.compileSdkVersion
buildToolsVersion ProjectBuildConfig.buildToolsVersion
defaultConfig {
minSdkVersion ProjectBuildConfig.minSdkVersion

View File

@ -17,13 +17,13 @@ object DependencyConfig {
object Version {
// AndroidX--------------------------------------------------------------
const val AppCompat = "1.2.0"
const val CoreKtx = "1.3.1"
const val ConstraintLayout = "2.0.1" // 约束布局
const val AppCompat = "1.3.1"
const val CoreKtx = "1.7.0"
const val ConstraintLayout = "2.1.3" // 约束布局
const val TestExtJunit = "1.1.2"
const val TestEspresso = "3.3.0"
const val ActivityKtx = "1.1.0"
const val FragmentKtx = "1.2.5"
const val ActivityKtx = "1.4.0"
const val FragmentKtx = "1.4.1"
const val MultiDex = "2.0.1"
// Android---------------------------------------------------------------
@ -31,11 +31,11 @@ object DependencyConfig {
const val Material = "1.2.0" // 材料设计UI套件
// Kotlin----------------------------------------------------------------
const val Kotlin = "1.5.10"
const val Coroutines = "1.5.0" // 协程
const val Kotlin = "1.6.21"
const val Coroutines = "1.6.1" // 协程
// JetPack---------------------------------------------------------------
const val Lifecycle = "2.3.1" // Lifecycle相关ViewModel & LiveData & Lifecycle
const val Lifecycle = "2.4.1" // Lifecycle相关ViewModel & LiveData & Lifecycle
const val Hilt = "2.38.1" // DI框架-Hilt
// GitHub----------------------------------------------------------------

View File

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

View File

@ -8,7 +8,7 @@ package com.quyunshuo.androidbaseframemvvm.buildsrc
*/
object ProjectPluginManager {
const val AndroidToolsPlugin = "com.android.tools.build:gradle:7.2.0"
const val KotlinPlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.10"
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"
}