use gradle version catalog

update org.jetbrains.kotlin.android to 1.9.23
This commit is contained in:
BinTianqi
2024-05-07 21:31:14 +08:00
parent b71f0dbb8d
commit e47810f0ca
3 changed files with 38 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
plugins { plugins {
id("com.android.application") alias(libs.plugins.android.application)
id("org.jetbrains.kotlin.android") alias(libs.plugins.kotlin.android)
} }
android { android {
@@ -47,7 +47,7 @@ android {
aidl = true aidl = true
} }
composeOptions { composeOptions {
kotlinCompilerExtensionVersion = "1.5.1" kotlinCompilerExtensionVersion = "1.5.13"
} }
packaging { packaging {
resources { resources {
@@ -64,12 +64,12 @@ android {
} }
dependencies { dependencies {
implementation("androidx.activity:activity-compose:1.8.2") implementation(libs.androidx.activity.compose)
implementation("androidx.compose.ui:ui") implementation(libs.androidx.ui)
implementation("androidx.compose.ui:ui-graphics") implementation(libs.androidx.ui.graphics)
implementation("com.google.accompanist:accompanist-drawablepainter:0.35.0-alpha") implementation(libs.accompanist.drawablepainter)
implementation("androidx.compose.material3:material3:1.2.1") implementation(libs.androidx.material3)
implementation("androidx.navigation:navigation-compose:2.7.7") implementation(libs.androidx.navigation.compose)
implementation("dev.rikka.shizuku:provider:13.1.5") implementation(libs.shizuku.provider)
implementation("dev.rikka.shizuku:api:13.1.5") implementation(libs.shizuku.api)
} }

View File

@@ -1,5 +1,5 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins { plugins {
id("com.android.application") version "8.4.0" apply false alias(libs.plugins.android.application) apply false
id("org.jetbrains.kotlin.android") version "1.9.0" apply false alias(libs.plugins.kotlin.android) apply false
} }

25
gradle/libs.versions.toml Normal file
View File

@@ -0,0 +1,25 @@
[versions]
agp = "8.4.0"
kt-android = "1.9.23"
androidx-activity-compose = "1.8.2"
navigation-compose = "2.7.7"
material3 = "1.2.1"
accompanist-drawablepainter = "0.35.0-alpha"
shizuku = "13.1.5"
[libraries]
androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "androidx-activity-compose" }
androidx-material3 = { module = "androidx.compose.material3:material3", version.ref = "material3" }
androidx-navigation-compose = { module = "androidx.navigation:navigation-compose", version.ref = "navigation-compose" }
androidx-ui-graphics = { module = "androidx.compose.ui:ui-graphics" }
androidx-ui = { module = "androidx.compose.ui:ui" }
accompanist-drawablepainter = { module = "com.google.accompanist:accompanist-drawablepainter", version.ref = "accompanist-drawablepainter" }
shizuku-provider = { module = "dev.rikka.shizuku:provider", version.ref = "shizuku" }
shizuku-api = { module = "dev.rikka.shizuku:api", version.ref = "shizuku" }
[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kt-android" }