From 370d85adadc9c60b86f2948fde55bb450d558cb0 Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Sat, 21 Dec 2024 11:33:29 +0900 Subject: [PATCH] fix(Change version code): Remove patch option `changeVersionCode`, which is no longer needed --- .../all/misc/versioncode/ChangeVersionCodePatch.kt | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/patches/src/main/kotlin/app/revanced/patches/all/misc/versioncode/ChangeVersionCodePatch.kt b/patches/src/main/kotlin/app/revanced/patches/all/misc/versioncode/ChangeVersionCodePatch.kt index 7018d5a5d..b4c6b5e4d 100644 --- a/patches/src/main/kotlin/app/revanced/patches/all/misc/versioncode/ChangeVersionCodePatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/all/misc/versioncode/ChangeVersionCodePatch.kt @@ -1,7 +1,6 @@ package app.revanced.patches.all.misc.versioncode import app.revanced.patcher.patch.PatchException -import app.revanced.patcher.patch.booleanOption import app.revanced.patcher.patch.resourcePatch import app.revanced.patcher.patch.stringOption import app.revanced.util.getNode @@ -19,14 +18,6 @@ val changeVersionCodePatch = resourcePatch( "By default, the highest version code is set.", use = false, ) { - val changeVersionCode by booleanOption( - key = "changeVersionCode", - default = false, - title = "Change version code", - description = "Changes the version code of the app.", - required = true - ) - val versionCodeOption = stringOption( key = "versionCode", default = MAX_VALUE, @@ -40,10 +31,6 @@ val changeVersionCodePatch = resourcePatch( ) execute { - if (changeVersionCode == false) { - println("INFO: Version code will remain unchanged as 'ChangeVersionCode' is false.") - return@execute - } fun throwVersionCodeException(versionCodeString: String): PatchException = PatchException( "Invalid versionCode: $versionCodeString, " +