File tree 2 files changed +20
-0
lines changed
kotlin/app/revanced/patches/youtube/utils/settings
resources/youtube/settings/values-v21
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import app.revanced.util.removeStringsElements
29
29
import app.revanced.util.valueOrThrow
30
30
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
31
31
import org.w3c.dom.Element
32
+ import java.nio.file.Files
32
33
import java.util.jar.Manifest
33
34
34
35
private const val EXTENSION_INITIALIZATION_CLASS_DESCRIPTOR =
@@ -182,6 +183,18 @@ val settingsPatch = resourcePatch(
182
183
copyXmlNode(" youtube/settings/host" , " values/$xmlFile " , " resources" )
183
184
}
184
185
186
+ val valuesV21Directory = get(" res" ).resolve(" values-v21" )
187
+ if (! valuesV21Directory.isDirectory)
188
+ Files .createDirectories(valuesV21Directory.toPath())
189
+
190
+ copyResources(
191
+ " youtube/settings" ,
192
+ ResourceGroup (
193
+ " values-v21" ,
194
+ " strings.xml"
195
+ )
196
+ )
197
+
185
198
arrayOf(
186
199
ResourceGroup (
187
200
" drawable" ,
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <resources >
3
+ <!-- Translation Exception -->
4
+ <string name =" revanced_spoof_streaming_data_side_effects_android_creator" >@string/revanced_spoof_streaming_data_side_effects_android</string >
5
+ <string name =" revanced_spoof_streaming_data_side_effects_android_unplugged" >@string/revanced_spoof_streaming_data_side_effects_android</string >
6
+ <string name =" revanced_spoof_streaming_data_side_effects_android_vr" >@string/revanced_spoof_streaming_data_side_effects_android</string >
7
+ </resources >
You can’t perform that action at this time.
0 commit comments