Skip to content

Commit

Permalink
fix: Stop patch when signing fails (#1553)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitadai31 committed Feb 1, 2024
1 parent 088a3b7 commit 5b2c551
Showing 1 changed file with 1 addition and 7 deletions.
Expand Up @@ -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) {
Expand Down

0 comments on commit 5b2c551

Please sign in to comment.