From 4beb907a61db4fb5ff822b8ae7dc29d2dc3813d4 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Thu, 1 Aug 2024 17:53:58 +0200 Subject: [PATCH] refactor: Sort dependencies --- build.gradle.kts | 17 +++++++++-------- gradle/libs.versions.toml | 6 +++--- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 28a3cbf..61ea7e0 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -36,20 +36,21 @@ repositories { } dependencies { - implementation(libs.kotlinx.coroutines.core) - implementation(libs.xpp3) - implementation(libs.smali) - implementation(libs.multidexlib2) - implementation(libs.apktool.lib) - implementation(libs.kotlin.reflect) - // TODO: Convert project to KMP. compileOnly(libs.android) { // Exclude, otherwise the org.w3c.dom API breaks. exclude(group = "xerces", module = "xmlParserAPIs") } - testImplementation(libs.kotlin.test) + + implementation(libs.apktool.lib) + implementation(libs.kotlin.reflect) + implementation(libs.kotlinx.coroutines.core) + implementation(libs.multidexlib2) + implementation(libs.smali) + implementation(libs.xpp3) + testImplementation(libs.mockk) + testImplementation(libs.kotlin.test) } kotlin { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 9a2acaa..53dd714 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,7 @@ [versions] android = "4.1.1.4" apktool-lib = "2.9.3" +binary-compatibility-validator = "0.15.1" kotlin = "2.0.0" kotlinx-coroutines-core = "1.8.1" mockk = "1.13.10" @@ -8,15 +9,14 @@ multidexlib2 = "3.0.3.r3" # Tracking https://github.com/google/smali/issues/64. #noinspection GradleDependency smali = "3.0.5" -binary-compatibility-validator = "0.15.1" xpp3 = "1.1.4c" [libraries] android = { module = "com.google.android:android", version.ref = "android" } -kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlin" } apktool-lib = { module = "app.revanced:apktool-lib", version.ref = "apktool-lib" } -kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" } +kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlin" } kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines-core" } +kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" } mockk = { module = "io.mockk:mockk", version.ref = "mockk" } multidexlib2 = { module = "app.revanced:multidexlib2", version.ref = "multidexlib2" } smali = { module = "com.android.tools.smali:smali", version.ref = "smali" }