mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-23 16:37:38 +00:00
Upgrade AGP
This commit is contained in:
parent
dbf6e40dfe
commit
19ea25a9d0
@ -17,7 +17,7 @@ gradlePlugin {
|
||||
|
||||
dependencies {
|
||||
implementation(embeddedKotlin("gradle-plugin"))
|
||||
implementation("com.android.tools.build:gradle:8.2.2")
|
||||
implementation("com.android.tools.build:gradle:8.3.0")
|
||||
implementation("androidx.navigation:navigation-safe-args-gradle-plugin:2.7.7")
|
||||
implementation("org.lsposed.lsparanoid:gradle-plugin:0.5.2")
|
||||
implementation("org.eclipse.jgit:org.eclipse.jgit:6.7.0.202309050840-r")
|
||||
|
@ -341,7 +341,7 @@ fun Project.setupStub() {
|
||||
val outResDir = layout.buildDirectory.dir("generated/source/res/${variantLowered}").get().asFile
|
||||
val aapt = File(android.sdkDirectory, "build-tools/${android.buildToolsVersion}/aapt2")
|
||||
val apk = layout.buildDirectory.file("intermediates/processed_res/" +
|
||||
"${variantLowered}/out/resources-${variantLowered}.ap_").get().asFile
|
||||
"${variantLowered}/process${variantCapped}Resources/out/resources-${variantLowered}.ap_").get().asFile
|
||||
|
||||
val genManifestTask = tasks.register("generate${variantCapped}ObfuscatedClass") {
|
||||
inputs.property("seed", RAND_SEED)
|
||||
@ -383,9 +383,9 @@ fun Project.setupStub() {
|
||||
}
|
||||
// Override optimizeReleaseResources task
|
||||
val apk = layout.buildDirectory.file("intermediates/processed_res/" +
|
||||
"release/out/resources-release.ap_").get().asFile
|
||||
"release/processReleaseResources/out/resources-release.ap_").get().asFile
|
||||
val optRes = layout.buildDirectory.file("intermediates/optimized_processed_res/" +
|
||||
"release/resources-release-optimize.ap_").get().asFile
|
||||
"release/processReleaseResources/resources-release-optimize.ap_").get().asFile
|
||||
afterEvaluate {
|
||||
tasks.named("optimizeReleaseResources") {
|
||||
doLast { apk.copyTo(optRes, true) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user