chore(deps): update binary-resources

v2.0.0 is significantly more memory efficient
This commit is contained in:
rushiiMachine 2024-04-08 17:26:03 -07:00
parent 54b215fe66
commit 8898856766
No known key found for this signature in database
GPG key ID: DCBE5952BB3B6420
3 changed files with 3 additions and 5 deletions

View file

@ -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())
}
}
}

View file

@ -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())
}
}

View file

@ -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"