Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot
cba04cf5a6 chore(release): 2.51.2 [skip ci]
## [2.51.2](https://github.com/revanced/revanced-patches/compare/v2.51.1...v2.51.2) (2022-09-08)
2022-09-08 15:03:32 +00:00
Sculas
5e358c7319 refactor: update to patcher 4.2.2 2022-09-08 17:01:28 +02:00
Sculas
ce69471684 build: update patcher dependency 2022-09-08 16:59:29 +02:00
5 changed files with 7 additions and 5 deletions

View File

@@ -1,3 +1,5 @@
## [2.51.2](https://github.com/revanced/revanced-patches/compare/v2.51.1...v2.51.2) (2022-09-08)
## [2.51.1](https://github.com/revanced/revanced-patches/compare/v2.51.0...v2.51.1) (2022-09-08)

View File

@@ -20,7 +20,7 @@ repositories {
}
dependencies {
implementation("app.revanced:revanced-patcher:4.1.5")
implementation("app.revanced:revanced-patcher:4.2.2")
implementation("app.revanced:multidexlib2:2.5.2.r2")
// Required for meta

View File

@@ -1,2 +1,2 @@
kotlin.code.style = official
version = 2.51.1
version = 2.51.2

View File

@@ -75,7 +75,7 @@ class CustomBrandingPatch : ResourcePatch() {
}
companion object : OptionsContainer() {
private var appName: String by option(
private var appName: String? by option(
PatchOption.StringOption(
key = "appName",
default = "YouTube ReVanced",

View File

@@ -20,7 +20,7 @@ import org.w3c.dom.Element
@Version("0.0.1")
class ThemePatch : ResourcePatch() {
override fun execute(data: ResourceData): PatchResult {
val theme = Themes.of(theme) ?: return PatchResultError("Theme '$theme' not found.")
val theme = Themes.of(theme!!) ?: return PatchResultError("Theme '$theme' not found.")
data.xmlEditor["res/values/colors.xml"].use { editor ->
val resourcesNode = editor.file.getElementsByTagName("resources").item(0) as Element
@@ -35,7 +35,7 @@ class ThemePatch : ResourcePatch() {
}
companion object : OptionsContainer() {
var theme: String by option(
var theme: String? by option(
PatchOption.StringListOption(
key = "theme",
default = null,