fix: do not use absolute path from custom AAPT2 binary option

This commit is contained in:
oSumAtrIX 2023-08-23 04:29:07 +02:00
parent 0dcd838de3
commit a9c2a5f096
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -179,7 +179,7 @@ internal object PatchCommand: Runnable {
PatcherOptions(
apk,
resourceCachePath,
aaptBinaryPath.absolutePath,
aaptBinaryPath.path,
resourceCachePath.absolutePath,
PatcherLogger
)
@ -291,8 +291,8 @@ internal object PatchCommand: Runnable {
if (!matchesVersion) return@patch logger.warn(
"${patch.patchName} is incompatible with version $packageVersion. " +
"This patch is only compatible with version " +
packages.joinToString(";") { `package` ->
"${`package`.name}: ${`package`.versions.joinToString(", ")}"
packages.joinToString(";") { pkg ->
"${pkg.name}: ${pkg.versions.joinToString(", ")}"
}
)