diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 7dd5752..acf2c86 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -14,8 +14,8 @@ android { applicationId = "dev.beefers.vendetta.manager" minSdk = 24 targetSdk = 33 - versionCode = 1072 - versionName = "1.0.72" + versionCode = 1073 + versionName = "1.0.73" buildConfigField("String", "GIT_BRANCH", "\"${getCurrentBranch()}\"") buildConfigField("String", "GIT_COMMIT", "\"${getLatestCommit()}\"") diff --git a/app/src/main/java/dev/beefers/vendetta/manager/installer/util/Patcher.kt b/app/src/main/java/dev/beefers/vendetta/manager/installer/util/Patcher.kt index 078244e..57134a0 100644 --- a/app/src/main/java/dev/beefers/vendetta/manager/installer/util/Patcher.kt +++ b/app/src/main/java/dev/beefers/vendetta/manager/installer/util/Patcher.kt @@ -9,31 +9,6 @@ import java.io.File object Patcher { - class Options( - private val config: PatchConfig, - private val outputDir: File, - private val apkPaths: List, - private val embeddedModules: List? - ) { - - fun toStringArray(): Array { - return buildList { - addAll(apkPaths) - add("-o"); add(outputDir.absolutePath) - if (config.debuggable) add("-d") - add("-l"); add(config.sigBypassLevel.toString()) - if (config.useManager) add("--manager") - if (config.overrideVersionCode) add("-r") - add("-v") - embeddedModules?.forEach { - add("-m"); add(it) - } - addAll(arrayOf("-k", Signer.keyStore.absolutePath, "password", "alias", "password")) - }.toTypedArray() - } - - } - suspend fun patch( logger: Logger, outputDir: File, @@ -47,7 +22,7 @@ object Patcher { "-o", outputDir.absolutePath, "-l", - "2", + "0", "-v", "-m", *embeddedModules.toTypedArray(),