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:
parent
334f1bf118
commit
bd298c0858
3 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue