diff --git a/android/app/build.gradle b/android/app/build.gradle index f1473e851b..ea6a245664 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -113,9 +113,8 @@ flutter { } dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.22" + implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.22") - // ReVanced - implementation "app.revanced:revanced-patcher:19.3.1" - implementation "app.revanced:revanced-library:2.1.0" + implementation("app.revanced:revanced-patcher:19.3.1") + implementation("app.revanced:revanced-library:2.2.0") } diff --git a/android/app/src/main/kotlin/app/revanced/manager/flutter/MainActivity.kt b/android/app/src/main/kotlin/app/revanced/manager/flutter/MainActivity.kt index e3ac9bebcc..f0fc99b672 100644 --- a/android/app/src/main/kotlin/app/revanced/manager/flutter/MainActivity.kt +++ b/android/app/src/main/kotlin/app/revanced/manager/flutter/MainActivity.kt @@ -9,7 +9,6 @@ import android.os.Handler import android.os.Looper import app.revanced.library.ApkUtils import app.revanced.library.ApkUtils.applyTo -import app.revanced.library.ApkUtils.sign import app.revanced.manager.flutter.utils.Aapt import app.revanced.manager.flutter.utils.packageInstaller.InstallerReceiver import app.revanced.manager.flutter.utils.packageInstaller.UninstallerReceiver @@ -339,16 +338,15 @@ class MainActivity : FlutterActivity() { patcher.get() } - inFile.copyTo(outFile) - if (cancel(patcher::close)) return@Thread - patcherResult.applyTo(outFile) + patcherResult.applyTo(inFile) if (cancel(patcher::close)) return@Thread - updateProgress(0.8, "Signing...", "") - outFile.sign( + ApkUtils.sign( + inFile, + outFile, ApkUtils.SigningOptions( keyStoreFile, keystorePassword,