From a9f8c20703d3b07759c5cea6847b1a5c8f55caa3 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Wed, 4 Sep 2024 22:37:23 +0800 Subject: [PATCH] Upgrade AGP --- buildSrc/src/main/java/Setup.kt | 8 ++++---- gradle/libs.versions.toml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/buildSrc/src/main/java/Setup.kt b/buildSrc/src/main/java/Setup.kt index 4181e1156..db54c204a 100644 --- a/buildSrc/src/main/java/Setup.kt +++ b/buildSrc/src/main/java/Setup.kt @@ -375,8 +375,8 @@ fun Project.setupStub() { val outAppClassDir = layout.buildDirectory.file("generated/source/app/${variantLowered}").get().asFile val outResDir = layout.buildDirectory.dir("generated/source/res/${variantLowered}").get().asFile val aapt = File(androidApp.sdkDirectory, "build-tools/${androidApp.buildToolsVersion}/aapt2") - val apk = layout.buildDirectory.file("intermediates/processed_res/" + - "${variantLowered}/process${variantCapped}Resources/out/resources-${variantLowered}.ap_").get().asFile + val apk = layout.buildDirectory.file("intermediates/linked_resources_binary_format/" + + "${variantLowered}/process${variantCapped}Resources/linked-resources-binary-format-${variantLowered}.ap_").get().asFile val genManifestTask = tasks.register("generate${variantCapped}ObfuscatedClass") { inputs.property("seed", RAND_SEED) @@ -417,8 +417,8 @@ fun Project.setupStub() { registerJavaGeneratingTask(processResourcesTask, outResDir) } // Override optimizeReleaseResources task - val apk = layout.buildDirectory.file("intermediates/processed_res/" + - "release/processReleaseResources/out/resources-release.ap_").get().asFile + val apk = layout.buildDirectory.file("intermediates/linked_resources_binary_format/" + + "release/processReleaseResources/linked-resources-binary-format-release.ap_").get().asFile val optRes = layout.buildDirectory.file("intermediates/optimized_processed_res/" + "release/optimizeReleaseResources/resources-release-optimize.ap_").get().asFile afterEvaluate { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 8154bf357..3cbf587a0 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] kotlin = "2.0.10" -android = "8.5.2" +android = "8.6.0" ksp = "2.0.10-1.0.24" rikka = "1.3.0" navigation = "2.7.7"