Skip to content

Commit

Permalink
Workaround invalid org.xmlpull loader with R8 (#3604)
Browse files Browse the repository at this point in the history
* build: move to semi-modern xmlpull version

* fix: prevent stripping invalid service loader

* fix: rework the 'release'/'publish' plan
  • Loading branch information
iBotPeaches authored May 17, 2024
1 parent 6b986e9 commit 5c1716f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 0 additions & 2 deletions brut.apktool/apktool-cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,3 @@ tasks.register<JavaExec>("proguard") {
originalJar.toString()
)
}

tasks.getByPath(":release").dependsOn("proguard")
3 changes: 3 additions & 0 deletions brut.apktool/apktool-cli/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
static **[] values();
static ** valueOf(java.lang.String);
}

# https://github.com/iBotPeaches/Apktool/issues/3602#issuecomment-2117317880
-dontwarn org.xmlpull.mxp1**
4 changes: 1 addition & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,8 @@ subprojects {
}
}

// Used for official releases.
task("release") {
dependsOn("build")
finalizedBy("publish")
// Used for official releases.
}

tasks.wrapper {
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ guava = "32.0.1-jre"
junit = "4.13.2"
r8 = "8.3.37"
smali = "3.0.7"
xmlpull = "1.1.4c"
xmlpull = "1.1.6"
xmlunit = "2.10.0"

[libraries]
Expand All @@ -21,5 +21,5 @@ guava = { module = "com.google.guava:guava", version.ref = "guava" }
junit = { module = "junit:junit", version.ref = "junit" }
r8 = { module = "com.android.tools:r8", version.ref = "r8" }
smali = { module = "com.android.tools.smali:smali", version.ref = "smali" }
xmlpull = { module = "xpp3:xpp3", version.ref = "xmlpull" }
xmlpull = { module = "org.ogce:xpp3", version.ref = "xmlpull" }
xmlunit = { module = "org.xmlunit:xmlunit-legacy", version.ref = "xmlunit" }

0 comments on commit 5c1716f

Please sign in to comment.