mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-01 07:04:30 +02:00
fix(Change version code): Remove patch option changeVersionCode
, which is no longer needed
This commit is contained in:
parent
e611321c9f
commit
370d85adad
@ -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, " +
|
||||
|
Loading…
x
Reference in New Issue
Block a user