chore(deps): update binary-resources
v2.0.0 is significantly more memory efficient
This commit is contained in:
parent
54b215fe66
commit
8898856766
3 changed files with 3 additions and 5 deletions
|
|
@ -98,8 +98,6 @@ class ReplaceIconStep(private val options: InstallOptions) : Step(), KoinCompone
|
|||
)
|
||||
}
|
||||
|
||||
val newArscBytes = arsc.toByteArray(/* shrink = */ true)
|
||||
|
||||
ZipWriter(apk, /* append = */ true).use {
|
||||
if (options.monochromeIcon) {
|
||||
it.writeEntry("res/ic_aliucord_monochrome.xml", context.getResBytes(R.drawable.ic_discord_monochrome))
|
||||
|
|
@ -110,7 +108,7 @@ class ReplaceIconStep(private val options: InstallOptions) : Step(), KoinCompone
|
|||
}
|
||||
|
||||
it.deleteEntry("resources.arsc")
|
||||
it.writeEntry("resources.arsc", newArscBytes)
|
||||
it.writeEntry("resources.arsc", arsc.toByteArray())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ object AxmlUtil {
|
|||
|
||||
ZipWriter(apk, /* append = */ true).use { zip ->
|
||||
zip.deleteEntry(resourcePath)
|
||||
zip.writeEntry(resourcePath, xml.toByteArray(/* shrink = */ true))
|
||||
zip.writeEntry(resourcePath, xml.toByteArray())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ androidx-splashscreen = "1.0.1"
|
|||
androidx-lifecycle = "2.7.0"
|
||||
apksig = "7.4.2"
|
||||
axml = "1.0.1"
|
||||
binary-resources = "1.0.0"
|
||||
binary-resources = "2.0.0"
|
||||
bouncycastle = "1.70"
|
||||
coil = "2.5.0"
|
||||
compose = "1.5.4"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue