Skip to content

Commit

Permalink
fix(YouTube): Some strings are missing inotia00/ReVanced_Extended#2597
Browse files Browse the repository at this point in the history
  • Loading branch information
inotia00 committed Dec 22, 2024
1 parent 88b5550 commit 3e7b690
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import app.revanced.util.removeStringsElements
import app.revanced.util.valueOrThrow
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
import org.w3c.dom.Element
import java.nio.file.Files
import java.util.jar.Manifest

private const val EXTENSION_INITIALIZATION_CLASS_DESCRIPTOR =
Expand Down Expand Up @@ -182,6 +183,18 @@ val settingsPatch = resourcePatch(
copyXmlNode("youtube/settings/host", "values/$xmlFile", "resources")
}

val valuesV21Directory = get("res").resolve("values-v21")
if (!valuesV21Directory.isDirectory)
Files.createDirectories(valuesV21Directory.toPath())

copyResources(
"youtube/settings",
ResourceGroup(
"values-v21",
"strings.xml"
)
)

arrayOf(
ResourceGroup(
"drawable",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Translation Exception -->
<string name="revanced_spoof_streaming_data_side_effects_android_creator">@string/revanced_spoof_streaming_data_side_effects_android</string>
<string name="revanced_spoof_streaming_data_side_effects_android_unplugged">@string/revanced_spoof_streaming_data_side_effects_android</string>
<string name="revanced_spoof_streaming_data_side_effects_android_vr">@string/revanced_spoof_streaming_data_side_effects_android</string>
</resources>

0 comments on commit 3e7b690

Please sign in to comment.