From 7c5719fbc48723ad462e9dd53f9efce79443143d Mon Sep 17 00:00:00 2001 From: Kr328 Date: Sun, 22 Oct 2023 12:07:40 +0800 Subject: [PATCH] Chore: bump dependencies (#39) --- app/build.gradle.kts | 2 +- build.gradle.kts | 16 ++++++++-------- gradle/wrapper/gradle-wrapper.properties | 2 +- hideapi/build.gradle.kts | 2 +- module/build.gradle.kts | 12 ++++++------ settings.gradle.kts | 4 ++-- shared/build.gradle.kts | 6 +++++- 7 files changed, 24 insertions(+), 20 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 929550e..91e2e68 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -10,4 +10,4 @@ dependencies { compileOnly(project(":hideapi")) implementation(project(":shared")) -} \ No newline at end of file +} diff --git a/build.gradle.kts b/build.gradle.kts index 1eead34..c189382 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,9 +3,9 @@ import com.android.build.gradle.BaseExtension import java.util.* plugins { - val agp = "7.4.1" - val zygote = "3.0" - val refine = "4.0.0" + val agp = "8.1.2" + val zygote = "3.1" + val refine = "4.3.1" id("com.android.application") version agp apply false id("com.android.library") version agp apply false @@ -18,7 +18,7 @@ subprojects { extensions.configure { val isApp = this is AppExtension - compileSdkVersion(31) + compileSdkVersion(34) defaultConfig { if (isApp) { @@ -26,10 +26,10 @@ subprojects { } minSdk = 29 - targetSdk = 33 + targetSdk = 34 - versionName = "v24" - versionCode = 24 + versionName = "v26" + versionCode = 26 if (!isApp) { consumerProguardFiles("consumer-rules.pro") @@ -69,5 +69,5 @@ subprojects { } task("clean", type = Delete::class) { - delete(rootProject.buildDir) + delete(layout.buildDirectory) } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index f398c33..744c64d 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/hideapi/build.gradle.kts b/hideapi/build.gradle.kts index bf5f56d..4621d7a 100644 --- a/hideapi/build.gradle.kts +++ b/hideapi/build.gradle.kts @@ -10,4 +10,4 @@ dependencies { annotationProcessor(libs.refine.processor) compileOnly(libs.refine.annotation) -} \ No newline at end of file +} diff --git a/module/build.gradle.kts b/module/build.gradle.kts index 273c9ea..9fff59c 100644 --- a/module/build.gradle.kts +++ b/module/build.gradle.kts @@ -11,7 +11,7 @@ android { sourceSets { all { - assets.srcDir(buildDir.resolve("intermediates/manager_apk/$name")) + assets.srcDir(layout.buildDirectory.dir("intermediates/manager_apk/$name")) } } } @@ -54,11 +54,11 @@ androidComponents { val buildType = it.buildType!! afterEvaluate { - val packaging = project(":app").tasks["package${buildType.capitalize()}"] - val syncManager = task("syncManagerApk${name.capitalize()}", Sync::class) { + val packaging = project(":app").tasks["package${buildType.replaceFirstChar(Char::uppercase)}"] + val syncManager = task("syncManagerApk${name.replaceFirstChar(Char::uppercase)}", Sync::class) { dependsOn(packaging) - destinationDir = buildDir.resolve("intermediates/manager_apk/$name") + into(layout.buildDirectory.dir("intermediates/manager_apk/$name")) from(packaging.outputs) { include("*.apk") @@ -66,8 +66,8 @@ androidComponents { rename { "ClipboardWhitelist.apk" } } } - tasks["merge${name.capitalize()}Assets"].dependsOn(syncManager) - tasks.findByName("lintVitalAnalyze${name.capitalize()}")?.dependsOn(syncManager) + tasks["merge${name.replaceFirstChar(Char::uppercase)}Assets"].dependsOn(syncManager) + tasks.findByName("lintVitalAnalyze${name.replaceFirstChar(Char::uppercase)}")?.dependsOn(syncManager) } } } diff --git a/settings.gradle.kts b/settings.gradle.kts index e5585e4..fe94462 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -21,8 +21,8 @@ dependencyResolutionManagement { } versionCatalogs { create("libs") { - val refine = "4.0.0" - val magic = "1.5" + val refine = "4.3.1" + val magic = "1.9" library("refine-processor", "dev.rikka.tools.refine:annotation-processor:$refine") library("refine-annotation", "dev.rikka.tools.refine:annotation:$refine") diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index b0fb17e..5ac0d1b 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -4,4 +4,8 @@ plugins { android { namespace = "com.github.kr328.clipboard.shared" -} \ No newline at end of file + + buildFeatures { + aidl = true + } +}