fix: Stop patch when signing fails (#1553)

This commit is contained in:
kitadai31 2024-02-02 08:55:18 +09:00 committed by GitHub
parent 088a3b7c28
commit 5b2c55142e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -401,13 +401,7 @@ class MainActivity : FlutterActivity() {
updateProgress(0.8, "Signing...", "Signing APK")
try {
Signer("ReVanced", keystorePassword)
.signApk(patchedFile, outFile, keyStoreFile)
} catch (e: Exception) {
print("Error signing APK: ${e.message}")
e.printStackTrace()
}
Signer("ReVanced", keystorePassword).signApk(patchedFile, outFile, keyStoreFile)
updateProgress(.85, "Patched", "Patched APK")
} catch (ex: Throwable) {