fix: proguard optimization breaking icon patching

Proguard optimized out an assert call that was necessary. Fixed in binary-resources 2.0.1
This commit is contained in:
rushiiMachine 2025-05-18 15:58:33 -07:00
parent 334f1bf118
commit bd298c0858
No known key found for this signature in database
GPG key ID: DCBE5952BB3B6420
3 changed files with 3 additions and 3 deletions

View file

@ -90,7 +90,7 @@ class ReplaceIconStep(private val options: PatchOptions) : Step(), KoinComponent
}
// Add a new mipmap resource and the file to be added later
if (options.iconReplacement is IconReplacement.CustomImage) {
else if (options.iconReplacement is IconReplacement.CustomImage) {
container.log("Adding custom icon foreground to arsc")
val iconPathIdx = arsc.getMainArscChunk().stringPool

View file

@ -54,7 +54,7 @@ object ArscUtil {
return this.addResource(
typeName = "color",
resourceName = name,
configurations = { true },
configurations = { it.isDefault },
valueType = BinaryResourceValue.Type.INT_COLOR_ARGB8,
valueData = color.toArgb(),
)

View file

@ -7,7 +7,7 @@ androidx-splashscreen = "1.0.1"
androidx-lifecycle = "2.9.0"
apksig = "8.10.0"
axml = "1.0.1"
binary-resources = "2.0.0"
binary-resources = "2.0.1"
bouncycastle = "1.80"
coil = "3.2.0"
compose = "1.8.1"