Skip to content

Commit

Permalink
fix(Twitch): Correct patch resources to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jan 27, 2024
1 parent f632fc7 commit 1b63898
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ object EmbeddedAdsPatch : BytecodePatch(
AddResourcesPatch(this::class)

SettingsPatch.PreferenceScreen.ADS.SURESTREAM.addPreferences(
ListPreference("revanced_block_embedded_ads")
ListPreference("revanced_block_embedded_ads", summaryKey = null)
)

val result = CreateUsherClientFingerprint.result ?: throw CreateUsherClientFingerprint.exception
Expand Down
25 changes: 14 additions & 11 deletions src/main/resources/addresources/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,25 +74,28 @@
</patch>
</app>
<app id="twitch">
<patch id="chat.autoclaim.AutoClaimChannelPointsPatch">
<string-array name="revanced_deleted_messages_entries">
<item>@string/revanced_deleted_messages_entry_1</item>
<item>@string/revanced_deleted_messages_entry_2</item>
<item>@string/revanced_deleted_messages_entry_3</item>
<patch id="chat.antidelete.ShowDeletedMessagesPatch">
<string-array name="revanced_show_deleted_messages_entries">
<item>@string/revanced_show_deleted_messages_entry_1</item>
<item>@string/revanced_show_deleted_messages_entry_2</item>
<item>@string/revanced_show_deleted_messages_entry_3</item>
</string-array>
<string-array name="revanced_deleted_messages_entry_values">
<string-array name="revanced_show_deleted_messages_entry_values">
<item>hide</item>
<item>spoiler</item>
<item>cross-out</item>
</string-array>
</patch>
<patch id="chat.autoclaim.AutoClaimChannelPointsPatch">

</patch>
<patch id="ad.embedded.EmbeddedAdsPatch">
<string-array name="revanced_hls_proxies_entries">
<item>@string/revanced_hls_proxies_entry_1</item>
<item>@string/revanced_hls_proxies_entry_2</item>
<item>@string/revanced_hls_proxies_entry_3</item>
<string-array name="revanced_block_embedded_ads_entries">
<item>@string/revanced_block_embedded_ads_entry_1</item>
<item>@string/revanced_block_embedded_ads_entry_2</item>
<item>@string/revanced_block_embedded_ads_entry_3</item>
</string-array>
<string-array name="revanced_hls_proxies_entry_values">
<string-array name="revanced_block_embedded_ads_entry_values">
<item>disabled</item>
<item>luminous</item>
<item>purpleadblock</item>
Expand Down
16 changes: 7 additions & 9 deletions src/main/resources/addresources/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -972,11 +972,9 @@
<string name="revanced_embedded_ads_service_unavailable">%s is unavailable. Ads may show. Try switching to another ad block service in settings.</string>
<string name="revanced_embedded_ads_service_failed">%s server returned an error. Ads may show. Try switching to another ad block service in settings.</string>
<string name="revanced_block_embedded_ads_title">Block embedded video ads</string>
<string name="revanced_block_embedded_ads_summary_on">Embedded video ads are blocked</string>
<string name="revanced_block_embedded_ads_summary_off">Embedded video ads are unblocked</string>
<string name="revanced_hls_proxies_entry_1">Disabled</string>
<string name="revanced_hls_proxies_entry_2">Luminous proxy</string>
<string name="revanced_hls_proxies_entry_3">PurpleAdBlock proxy</string>
<string name="revanced_block_embedded_ads_entry_1">Disabled</string>
<string name="revanced_block_embedded_ads_entry_2">Luminous proxy</string>
<string name="revanced_block_embedded_ads_entry_3">PurpleAdBlock proxy</string>
</patch>
<patch id="ad.video.VideoAdsPatch">
<string name="revanced_block_video_ads_title">Block video ads</string>
Expand All @@ -986,9 +984,9 @@
<patch id="chat.antidelete.ShowDeletedMessagesPatch">
<string name="revanced_deleted_msg">message deleted</string>
<string name="revanced_show_deleted_messages_title">Show deleted messages</string>
<string name="revanced_deleted_messages_entry_1">Do not show deleted messages</string>
<string name="revanced_deleted_messages_entry_2">Hide deleted messages behind a spoiler</string>
<string name="revanced_deleted_messages_entry_3">Show deleted messages as crossed-out text</string>
<string name="revanced_show_deleted_messages_entry_1">Do not show deleted messages</string>
<string name="revanced_show_deleted_messages_entry_2">Hide deleted messages behind a spoiler</string>
<string name="revanced_show_deleted_messages_entry_3">Show deleted messages as crossed-out text</string>
</patch>
<patch id="chat.autoclaim.AutoClaimChannelPointsPatch">
<string name="revanced_auto_claim_channel_points_title">Automatically claim Channel Points</string>
Expand All @@ -1000,7 +998,7 @@
<string name="revanced_twitch_debug_mode_summary_on">Twitch debug mode is enabled (not recommended)</string>
<string name="revanced_twitch_debug_mode_summary_off">Twitch debug mode is disabled</string>
</patch>
<patch id="settings.SettingsPatch">
<patch id="misc.settings.SettingsPatch">
<string name="revanced_settings">ReVanced Settings</string>
<string name="revanced_debug_title">Debug logging</string>
<string name="revanced_debug_summary_on">Debug logs are enabled</string>
Expand Down

0 comments on commit 1b63898

Please sign in to comment.