Migrate to build version catalog
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -22,14 +22,14 @@
|
|||||||
import java.util.Properties
|
import java.util.Properties
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("com.android.application")
|
alias(libs.plugins.android.application)
|
||||||
id("org.jetbrains.kotlin.android")
|
alias(libs.plugins.jetbrains.kotlin.android)
|
||||||
id("org.jetbrains.kotlin.plugin.parcelize")
|
alias(libs.plugins.jetbrains.kotlin.parcelize)
|
||||||
id("com.google.devtools.ksp")
|
alias(libs.plugins.google.ksp)
|
||||||
id("androidx.navigation.safeargs.kotlin")
|
alias(libs.plugins.androidx.navigation)
|
||||||
id("org.jlleitschuh.gradle.ktlint")
|
alias(libs.plugins.ktlint)
|
||||||
id("dev.rikka.tools.refine")
|
alias(libs.plugins.rikka.tools.refine.plugin)
|
||||||
id("com.google.dagger.hilt.android")
|
alias(libs.plugins.hilt.android.plugin)
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
@@ -124,87 +124,69 @@ android {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
//Protobuf
|
|
||||||
implementation("com.google.protobuf:protobuf-javalite:3.25.3")
|
|
||||||
|
|
||||||
//Google's Goodies
|
//Google's Goodies
|
||||||
implementation("com.google.android.material:material:1.11.0")
|
implementation(libs.google.android.material)
|
||||||
implementation("com.google.code.gson:gson:2.10.1")
|
implementation(libs.google.gson)
|
||||||
|
implementation(libs.google.protobuf.javalite)
|
||||||
|
|
||||||
//AndroidX
|
//AndroidX
|
||||||
implementation("androidx.core:core-ktx:1.12.0")
|
implementation(libs.androidx.core.ktx)
|
||||||
implementation("androidx.viewpager2:viewpager2:1.0.0")
|
implementation(libs.androidx.browser)
|
||||||
implementation("androidx.preference:preference-ktx:1.2.1")
|
implementation(libs.androidx.lifecycle.viewmodel.ktx)
|
||||||
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
|
implementation(libs.androidx.lifecycle.process)
|
||||||
|
implementation(libs.androidx.navigation.fragment.ktx)
|
||||||
//Arch LifeCycle
|
implementation(libs.androidx.navigation.ui.ktx)
|
||||||
val lifeVersion = "2.7.0"
|
implementation(libs.androidx.preference.ktx)
|
||||||
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:$lifeVersion")
|
implementation(libs.androidx.swiperefreshlayout)
|
||||||
implementation("androidx.lifecycle:lifecycle-process:$lifeVersion")
|
implementation(libs.androidx.viewpager2)
|
||||||
|
implementation(libs.androidx.work.runtime.ktx)
|
||||||
//Arch Navigation
|
|
||||||
val navVersion = "2.7.7"
|
|
||||||
implementation("androidx.navigation:navigation-fragment-ktx:$navVersion")
|
|
||||||
implementation("androidx.navigation:navigation-ui-ktx:$navVersion")
|
|
||||||
|
|
||||||
//Coil
|
//Coil
|
||||||
implementation("io.coil-kt:coil:2.6.0")
|
implementation(libs.coil.kt)
|
||||||
|
|
||||||
//Shimmer
|
//Shimmer
|
||||||
implementation("com.facebook.shimmer:shimmer:0.5.0")
|
implementation(libs.facebook.shimmer)
|
||||||
|
|
||||||
//Epoxy
|
//Epoxy
|
||||||
val epoxyVersion = "5.1.4"
|
implementation(libs.airbnb.epoxy.android)
|
||||||
implementation("com.airbnb.android:epoxy:$epoxyVersion")
|
ksp(libs.airbnb.epoxy.processor)
|
||||||
ksp("com.airbnb.android:epoxy-processor:$epoxyVersion")
|
|
||||||
|
|
||||||
//HTTP Clients
|
//HTTP Clients
|
||||||
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
implementation(libs.squareup.okhttp)
|
||||||
|
|
||||||
//EventBus
|
//EventBus
|
||||||
implementation("org.greenrobot:eventbus:3.3.1")
|
implementation(libs.greenrobot.eventbus)
|
||||||
|
|
||||||
//Lib-SU
|
//Lib-SU
|
||||||
implementation("com.github.topjohnwu.libsu:core:5.0.5")
|
implementation(libs.github.topjohnwu.libsu)
|
||||||
|
|
||||||
//Love <3
|
//GPlayApi
|
||||||
implementation("com.gitlab.AuroraOSS:gplayapi:3.2.10")
|
implementation(libs.gitlab.auroraoss.gplayapi)
|
||||||
|
|
||||||
//Browser
|
|
||||||
implementation("androidx.browser:browser:1.8.0")
|
|
||||||
|
|
||||||
//Shizuku
|
//Shizuku
|
||||||
val shizukuVersion = "13.1.5"
|
compileOnly(libs.rikka.hidden.stub)
|
||||||
compileOnly("dev.rikka.hidden:stub:4.3.2")
|
implementation(libs.rikka.tools.refine.runtime)
|
||||||
implementation("dev.rikka.tools.refine:runtime:4.4.0")
|
implementation(libs.rikka.shizuku.api)
|
||||||
implementation("dev.rikka.shizuku:api:${shizukuVersion}")
|
implementation(libs.rikka.shizuku.provider)
|
||||||
implementation("dev.rikka.shizuku:provider:${shizukuVersion}")
|
|
||||||
|
|
||||||
implementation("org.lsposed.hiddenapibypass:hiddenapibypass:4.3")
|
implementation(libs.lsposed.hiddenapibypass)
|
||||||
|
|
||||||
//Test
|
//Test
|
||||||
testImplementation("junit:junit:4.13.2")
|
testImplementation(libs.junit)
|
||||||
androidTestImplementation("androidx.test.ext:junit:1.1.5")
|
androidTestImplementation(libs.androidx.junit)
|
||||||
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
|
androidTestImplementation(libs.androidx.espresso.core)
|
||||||
|
|
||||||
//WorkManager
|
|
||||||
implementation("androidx.work:work-runtime-ktx:2.9.0")
|
|
||||||
|
|
||||||
//Hilt
|
//Hilt
|
||||||
val hiltVersion = "2.51.1"
|
ksp(libs.hilt.android.compiler)
|
||||||
ksp("com.google.dagger:hilt-android-compiler:$hiltVersion")
|
ksp(libs.hilt.androidx.compiler)
|
||||||
implementation("com.google.dagger:hilt-android:$hiltVersion")
|
implementation(libs.hilt.android.core)
|
||||||
|
implementation(libs.hilt.androidx.work)
|
||||||
val hiltWorkVersion = "1.2.0"
|
|
||||||
ksp("androidx.hilt:hilt-compiler:$hiltWorkVersion")
|
|
||||||
implementation("androidx.hilt:hilt-work:$hiltWorkVersion")
|
|
||||||
|
|
||||||
//Room
|
//Room
|
||||||
val roomVersion = "2.6.1"
|
ksp(libs.androidx.room.compiler)
|
||||||
ksp("androidx.room:room-compiler:$roomVersion")
|
implementation(libs.androidx.room.ktx)
|
||||||
implementation("androidx.room:room-ktx:$roomVersion")
|
implementation(libs.androidx.room.runtime)
|
||||||
implementation("androidx.room:room-runtime:$roomVersion")
|
|
||||||
|
|
||||||
// LeakCanary
|
// LeakCanary
|
||||||
debugImplementation("com.squareup.leakcanary:leakcanary-android:2.13")
|
debugImplementation(libs.squareup.leakcanary.android)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,12 +20,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("com.android.application") version "8.3.1" apply false
|
alias(libs.plugins.android.application) apply false
|
||||||
id("org.jetbrains.kotlin.android") version "1.9.22" apply false
|
alias(libs.plugins.jetbrains.kotlin.android) apply false
|
||||||
id("org.jetbrains.kotlin.plugin.parcelize") version "1.9.22" apply false
|
alias(libs.plugins.jetbrains.kotlin.parcelize) apply false
|
||||||
id("com.google.devtools.ksp") version "1.9.22-1.0.17" apply false
|
alias(libs.plugins.google.ksp) apply false
|
||||||
id("androidx.navigation.safeargs.kotlin") version "2.7.7" apply false
|
alias(libs.plugins.androidx.navigation) apply false
|
||||||
id("org.jlleitschuh.gradle.ktlint") version "11.6.1" apply false
|
alias(libs.plugins.ktlint) apply false
|
||||||
id("dev.rikka.tools.refine") version "4.4.0" apply false
|
alias(libs.plugins.rikka.tools.refine.plugin) apply false
|
||||||
id("com.google.dagger.hilt.android") version "2.51.1" apply false
|
alias(libs.plugins.hilt.android.plugin) apply false
|
||||||
}
|
}
|
||||||
|
|||||||
83
gradle/libs.versions.toml
Normal file
83
gradle/libs.versions.toml
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
[versions]
|
||||||
|
androidGradlePlugin = "8.3.1"
|
||||||
|
browserVersion = "1.8.0"
|
||||||
|
coilVersion = "2.6.0"
|
||||||
|
core = "5.0.5"
|
||||||
|
coreVersion = "1.12.0"
|
||||||
|
epoxyVersion = "5.1.4"
|
||||||
|
espressoVersion = "3.5.1"
|
||||||
|
eventbusVersion = "3.3.1"
|
||||||
|
gplayapiVersion = "3.2.10"
|
||||||
|
gsonVersion = "2.10.1"
|
||||||
|
hiddenapibypassVersion = "4.3"
|
||||||
|
hiltVersion = "2.51.1"
|
||||||
|
hiltWorkVersion = "1.2.0"
|
||||||
|
junit = "4.13.2"
|
||||||
|
junitVersion = "1.1.5"
|
||||||
|
kotlinVersion = "1.9.22"
|
||||||
|
kspVersion = "1.9.22-1.0.17"
|
||||||
|
ktlintVersion = "12.1.0"
|
||||||
|
leakcanaryAndroidVersion = "2.13"
|
||||||
|
lifeVersion = "2.7.0"
|
||||||
|
materialVersion = "1.11.0"
|
||||||
|
navVersion = "2.7.7"
|
||||||
|
okhttpVersion = "4.12.0"
|
||||||
|
preferenceVersion = "1.2.1"
|
||||||
|
protobufJavaliteVersion = "3.25.3"
|
||||||
|
rikkaHiddenVersion = "4.3.2"
|
||||||
|
rikkaToolsVersion = "4.4.0"
|
||||||
|
roomVersion = "2.6.1"
|
||||||
|
shimmerVersion = "0.5.0"
|
||||||
|
shizukuVersion = "13.1.5"
|
||||||
|
swiperefreshlayoutVersion = "1.1.0"
|
||||||
|
viewpager2Version = "1.0.0"
|
||||||
|
workVersion = "2.9.0"
|
||||||
|
|
||||||
|
[libraries]
|
||||||
|
airbnb-epoxy-android = { module = "com.airbnb.android:epoxy", version.ref = "epoxyVersion" }
|
||||||
|
airbnb-epoxy-processor = { module = "com.airbnb.android:epoxy-processor", version.ref = "epoxyVersion" }
|
||||||
|
androidx-browser = { module = "androidx.browser:browser", version.ref = "browserVersion" }
|
||||||
|
androidx-core-ktx = { module = "androidx.core:core-ktx", version.ref = "coreVersion" }
|
||||||
|
androidx-espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "espressoVersion" }
|
||||||
|
androidx-junit = { module = "androidx.test.ext:junit", version.ref = "junitVersion" }
|
||||||
|
androidx-lifecycle-process = { module = "androidx.lifecycle:lifecycle-process", version.ref = "lifeVersion" }
|
||||||
|
androidx-lifecycle-viewmodel-ktx = { module = "androidx.lifecycle:lifecycle-viewmodel-ktx", version.ref = "lifeVersion" }
|
||||||
|
androidx-navigation-fragment-ktx = { module = "androidx.navigation:navigation-fragment-ktx", version.ref = "navVersion" }
|
||||||
|
androidx-navigation-ui-ktx = { module = "androidx.navigation:navigation-ui-ktx", version.ref = "navVersion" }
|
||||||
|
androidx-preference-ktx = { module = "androidx.preference:preference-ktx", version.ref = "preferenceVersion" }
|
||||||
|
androidx-room-compiler = { module = "androidx.room:room-compiler", version.ref = "roomVersion" }
|
||||||
|
androidx-room-ktx = { module = "androidx.room:room-ktx", version.ref = "roomVersion" }
|
||||||
|
androidx-room-runtime = { module = "androidx.room:room-runtime", version.ref = "roomVersion" }
|
||||||
|
androidx-swiperefreshlayout = { module = "androidx.swiperefreshlayout:swiperefreshlayout", version.ref = "swiperefreshlayoutVersion" }
|
||||||
|
androidx-viewpager2 = { module = "androidx.viewpager2:viewpager2", version.ref = "viewpager2Version" }
|
||||||
|
androidx-work-runtime-ktx = { module = "androidx.work:work-runtime-ktx", version.ref = "workVersion" }
|
||||||
|
coil-kt = { module = "io.coil-kt:coil", version.ref = "coilVersion" }
|
||||||
|
facebook-shimmer = { module = "com.facebook.shimmer:shimmer", version.ref = "shimmerVersion" }
|
||||||
|
gitlab-auroraoss-gplayapi = { module = "com.gitlab.AuroraOSS:gplayapi", version.ref = "gplayapiVersion" }
|
||||||
|
github-topjohnwu-libsu = { module = "com.github.topjohnwu.libsu:core", version.ref = "core" }
|
||||||
|
google-android-material = { module = "com.google.android.material:material", version.ref = "materialVersion" }
|
||||||
|
google-gson = { module = "com.google.code.gson:gson", version.ref = "gsonVersion" }
|
||||||
|
google-protobuf-javalite = { module = "com.google.protobuf:protobuf-javalite", version.ref = "protobufJavaliteVersion" }
|
||||||
|
greenrobot-eventbus = { module = "org.greenrobot:eventbus", version.ref = "eventbusVersion" }
|
||||||
|
hilt-android-compiler = { module = "com.google.dagger:hilt-android-compiler", version.ref = "hiltVersion" }
|
||||||
|
hilt-android-core = { module = "com.google.dagger:hilt-android", version.ref = "hiltVersion" }
|
||||||
|
hilt-androidx-compiler = { module = "androidx.hilt:hilt-compiler", version.ref = "hiltWorkVersion" }
|
||||||
|
hilt-androidx-work = { module = "androidx.hilt:hilt-work", version.ref = "hiltWorkVersion" }
|
||||||
|
junit = { module = "junit:junit", version.ref = "junit" }
|
||||||
|
lsposed-hiddenapibypass = { module = "org.lsposed.hiddenapibypass:hiddenapibypass", version.ref = "hiddenapibypassVersion" }
|
||||||
|
rikka-hidden-stub = { module = "dev.rikka.hidden:stub", version.ref = "rikkaHiddenVersion" }
|
||||||
|
rikka-shizuku-api = { module = "dev.rikka.shizuku:api", version.ref = "shizukuVersion" }
|
||||||
|
rikka-shizuku-provider = { module = "dev.rikka.shizuku:provider", version.ref = "shizukuVersion" }
|
||||||
|
rikka-tools-refine-runtime = { module = "dev.rikka.tools.refine:runtime", version.ref = "rikkaToolsVersion" }
|
||||||
|
squareup-leakcanary-android = { module = "com.squareup.leakcanary:leakcanary-android", version.ref = "leakcanaryAndroidVersion" }
|
||||||
|
squareup-okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttpVersion" }
|
||||||
|
|
||||||
|
[plugins]
|
||||||
|
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
|
||||||
|
androidx-navigation = { id = "androidx.navigation.safeargs.kotlin", version.ref = "navVersion" }
|
||||||
|
google-ksp = { id = "com.google.devtools.ksp", version.ref = "kspVersion" }
|
||||||
|
hilt-android-plugin = { id = "com.google.dagger.hilt.android", version.ref = "hiltVersion" }
|
||||||
|
ktlint = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlintVersion" }
|
||||||
|
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlinVersion" }
|
||||||
|
jetbrains-kotlin-parcelize = { id = "org.jetbrains.kotlin.plugin.parcelize", version.ref = "kotlinVersion" }
|
||||||
|
rikka-tools-refine-plugin = { id = "dev.rikka.tools.refine", version.ref = "rikkaToolsVersion" }
|
||||||
Reference in New Issue
Block a user