Skip to content

Commit

Permalink
build: migrate to Gradle version catalogs
Browse files Browse the repository at this point in the history
  • Loading branch information
aistra0528 committed Dec 3, 2024
1 parent 0d258ee commit ce06164
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 25 deletions.
46 changes: 23 additions & 23 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("com.android.application")
kotlin("android")
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
}

android {
Expand Down Expand Up @@ -74,25 +74,25 @@ android {
}

dependencies {
implementation("androidx.appcompat:appcompat:1.7.0")
implementation("androidx.biometric:biometric-ktx:1.2.0-alpha05")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("androidx.core:core-ktx:1.13.1")
implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.8.5")
implementation("androidx.navigation:navigation-fragment-ktx:2.8.0")
implementation("androidx.navigation:navigation-ui-ktx:2.8.0")
implementation("androidx.preference:preference-ktx:1.2.1")
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
implementation("androidx.work:work-runtime-ktx:2.9.1")
implementation("com.belerweb:pinyin4j:2.5.1")
implementation("com.google.android.material:material:1.12.0")
implementation("dev.chrisbanes.insetter:insetter:0.6.1")
implementation("dev.rikka.rikkax.preference:simplemenu-preference:1.0.3")
implementation("dev.rikka.shizuku:api:13.1.5")
implementation("dev.rikka.shizuku:provider:13.1.5")
implementation("io.github.iamr0s:Dhizuku-API:2.5.3")
implementation("me.zhanghai.android.appiconloader:appiconloader:1.5.0")
implementation("org.apache.commons:commons-text:1.12.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
implementation("org.lsposed.hiddenapibypass:hiddenapibypass:4.3")
implementation(libs.androidx.appcompat)
implementation(libs.androidx.biometric.ktx)
implementation(libs.androidx.constraintlayout)
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.lifecycle.livedata.ktx)
implementation(libs.androidx.navigation.fragment.ktx)
implementation(libs.androidx.navigation.ui.ktx)
implementation(libs.androidx.preference.ktx)
implementation(libs.androidx.swiperefreshlayout)
implementation(libs.androidx.work.runtime.ktx)
implementation(libs.pinyin4j)
implementation(libs.material)
implementation(libs.insetter)
implementation(libs.simplemenu.preference)
implementation(libs.shizuku.api)
implementation(libs.shizuku.provider)
implementation(libs.dhizuku.api)
implementation(libs.appiconloader)
implementation(libs.commons.text)
implementation(libs.kotlinx.coroutines.android)
implementation(libs.hiddenapibypass)
}
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "8.7.0" apply false
kotlin("android") version "2.0.20" apply false
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.android) apply false
}
50 changes: 50 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[versions]
androidGradlePlugin = "8.7.0"
kotlinAndroidPlugin = "2.0.20"
appcompat = "1.7.0"
appiconloader = "1.5.0"
biometricKtx = "1.2.0-alpha05"
commonsText = "1.12.0"
constraintlayout = "2.1.4"
coreKtx = "1.13.1"
dhizukuApi = "2.5.3"
hiddenapibypass = "4.3"
insetter = "0.6.1"
kotlinxCoroutinesAndroid = "1.9.0"
lifecycleLivedataKtx = "2.8.5"
material = "1.12.0"
navigationFragmentKtx = "2.8.0"
navigationUiKtx = "2.8.0"
pinyin4j = "2.5.1"
preferenceKtx = "1.2.1"
shizuku = "13.1.5"
simplemenuPreference = "1.0.3"
swiperefreshlayout = "1.1.0"
workRuntimeKtx = "2.9.1"

[libraries]
androidx-constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "constraintlayout" }
androidx-biometric-ktx = { module = "androidx.biometric:biometric-ktx", version.ref = "biometricKtx" }
androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" }
androidx-lifecycle-livedata-ktx = { module = "androidx.lifecycle:lifecycle-livedata-ktx", version.ref = "lifecycleLivedataKtx" }
androidx-core-ktx = { module = "androidx.core:core-ktx", version.ref = "coreKtx" }
androidx-preference-ktx = { module = "androidx.preference:preference-ktx", version.ref = "preferenceKtx" }
androidx-navigation-ui-ktx = { module = "androidx.navigation:navigation-ui-ktx", version.ref = "navigationUiKtx" }
androidx-navigation-fragment-ktx = { module = "androidx.navigation:navigation-fragment-ktx", version.ref = "navigationFragmentKtx" }
androidx-work-runtime-ktx = { module = "androidx.work:work-runtime-ktx", version.ref = "workRuntimeKtx" }
androidx-swiperefreshlayout = { module = "androidx.swiperefreshlayout:swiperefreshlayout", version.ref = "swiperefreshlayout" }
commons-text = { module = "org.apache.commons:commons-text", version.ref = "commonsText" }
appiconloader = { module = "me.zhanghai.android.appiconloader:appiconloader", version.ref = "appiconloader" }
dhizuku-api = { module = "io.github.iamr0s:Dhizuku-API", version.ref = "dhizukuApi" }
hiddenapibypass = { module = "org.lsposed.hiddenapibypass:hiddenapibypass", version.ref = "hiddenapibypass" }
insetter = { module = "dev.chrisbanes.insetter:insetter", version.ref = "insetter" }
kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "kotlinxCoroutinesAndroid" }
material = { module = "com.google.android.material:material", version.ref = "material" }
pinyin4j = { module = "com.belerweb:pinyin4j", version.ref = "pinyin4j" }
shizuku-api = { module = "dev.rikka.shizuku:api", version.ref = "shizuku" }
shizuku-provider = { module = "dev.rikka.shizuku:provider", version.ref = "shizuku" }
simplemenu-preference = { module = "dev.rikka.rikkax.preference:simplemenu-preference", version.ref = "simplemenuPreference" }

[plugins]
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlinAndroidPlugin" }

0 comments on commit ce06164

Please sign in to comment.