build: Bump dependencies to fix signing issues

This commit is contained in:
oSumAtrIX 2024-03-09 04:39:48 +01:00
parent 4acd738353
commit b52e49d90a
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 9 additions and 12 deletions

View File

@ -113,9 +113,8 @@ flutter {
} }
dependencies { 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-patcher:19.3.1" implementation("app.revanced:revanced-library:2.2.0")
implementation "app.revanced:revanced-library:2.1.0"
} }

View File

@ -9,7 +9,6 @@ import android.os.Handler
import android.os.Looper import android.os.Looper
import app.revanced.library.ApkUtils import app.revanced.library.ApkUtils
import app.revanced.library.ApkUtils.applyTo 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.Aapt
import app.revanced.manager.flutter.utils.packageInstaller.InstallerReceiver import app.revanced.manager.flutter.utils.packageInstaller.InstallerReceiver
import app.revanced.manager.flutter.utils.packageInstaller.UninstallerReceiver import app.revanced.manager.flutter.utils.packageInstaller.UninstallerReceiver
@ -339,16 +338,15 @@ class MainActivity : FlutterActivity() {
patcher.get() patcher.get()
} }
inFile.copyTo(outFile) if (cancel(patcher::close)) return@Thread
patcherResult.applyTo(inFile)
if (cancel(patcher::close)) return@Thread if (cancel(patcher::close)) return@Thread
patcherResult.applyTo(outFile) ApkUtils.sign(
inFile,
if (cancel(patcher::close)) return@Thread outFile,
updateProgress(0.8, "Signing...", "")
outFile.sign(
ApkUtils.SigningOptions( ApkUtils.SigningOptions(
keyStoreFile, keyStoreFile,
keystorePassword, keystorePassword,