Skip to content

Commit

Permalink
feat(GmsCore support): Add Don't show again option for battery opti…
Browse files Browse the repository at this point in the history
…mization dialog
  • Loading branch information
anddea committed Jun 5, 2024
1 parent 63f5f46 commit 3069354
Show file tree
Hide file tree
Showing 51 changed files with 3,234 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,11 @@ object GmsCoreSupportResourcePatch : BaseGmsCoreSupportResourcePatch(
GMS_CORE_PACKAGE_NAME,
GMS_CORE_SETTINGS_ACTIVITY
)

SettingsPatch.addSwitchPreference(
CategoryType.MISC,
"revanced_gms_show_dialog",
"true"
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
"revanced_replace_flyout_menu_dismiss_queue_continue_watch",
"revanced_replace_flyout_menu_report_only_player",
"revanced_enable_zen_mode_podcast",
"revanced_gms_show_dialog",
)

val validExtendedBrandIcon = validExtendedBrand.associateWith { "${it}_key_icon" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
"revanced_disable_default_playback_speed_live",
"external_downloader",
"revanced_enable_custom_playback_speed",
"revanced_gms_show_dialog",
"revanced_hide_shorts_comments_disabled_button",
"revanced_hide_player_flyout_menu_captions_footer",
"revanced_remember_playback_speed_last_selected",
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/music/settings/host/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@ Info:

<string name="gms_core_settings_title">Open GmsCore</string>
<string name="gms_core_settings_summary">Enable cloud messaging to receive notifications.</string>
<string name="revanced_gms_show_dialog_title">Show optimization dialog for GMSCore</string>
<string name="revanced_gms_show_dialog_summary">Displays the optimization dialog for GMSCore at each application startup.</string>
<string name="gms_core_dialog_dismiss_text">Don\'t show again</string>
<string name="gms_core_toast_not_installed_message">GmsCore is not installed. Install it.</string>
<string name="gms_core_dialog_title">Action needed</string>
<string name="gms_core_dialog_not_whitelisted_not_allowed_in_background_message">"GmsCore does not have permission to run in the background.
Expand Down
317 changes: 317 additions & 0 deletions src/main/resources/music/translations/bg-rBG/missing_strings.xml

Large diffs are not rendered by default.

284 changes: 284 additions & 0 deletions src/main/resources/music/translations/bn/missing_strings.xml

Large diffs are not rendered by default.

312 changes: 312 additions & 0 deletions src/main/resources/music/translations/cs-rCZ/missing_strings.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="revanced_enable_black_player_background_title">Enable black player background</string>
<string name="revanced_enable_black_player_background_summary">Changes the player background color to black.</string>
<string name="revanced_gms_show_dialog_title">Show optimization dialog for GMSCore</string>
<string name="revanced_gms_show_dialog_summary">Displays the optimization dialog for GMSCore at each application startup.</string>
<string name="gms_core_dialog_dismiss_text">Don\'t show again</string>
</resources>
251 changes: 251 additions & 0 deletions src/main/resources/music/translations/es-rES/missing_strings.xml

Large diffs are not rendered by default.

181 changes: 181 additions & 0 deletions src/main/resources/music/translations/fr-rFR/missing_strings.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="revanced_gms_show_dialog_title">Show optimization dialog for GMSCore</string>
<string name="revanced_gms_show_dialog_summary">Displays the optimization dialog for GMSCore at each application startup.</string>
<string name="gms_core_dialog_dismiss_text">Don\'t show again</string>
</resources>
262 changes: 262 additions & 0 deletions src/main/resources/music/translations/id-rID/missing_strings.xml

Large diffs are not rendered by default.

262 changes: 262 additions & 0 deletions src/main/resources/music/translations/in/missing_strings.xml

Large diffs are not rendered by default.

289 changes: 289 additions & 0 deletions src/main/resources/music/translations/it-rIT/missing_strings.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="revanced_gms_show_dialog_title">Show optimization dialog for GMSCore</string>
<string name="revanced_gms_show_dialog_summary">Displays the optimization dialog for GMSCore at each application startup.</string>
<string name="gms_core_dialog_dismiss_text">Don\'t show again</string>
</resources>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="revanced_gms_show_dialog_title">Show optimization dialog for GMSCore</string>
<string name="revanced_gms_show_dialog_summary">Displays the optimization dialog for GMSCore at each application startup.</string>
<string name="gms_core_dialog_dismiss_text">Don\'t show again</string>
</resources>
158 changes: 158 additions & 0 deletions src/main/resources/music/translations/nl-rNL/missing_strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="revanced_hide_flyout_menu_go_to_episode_title">Hide go to episode menu</string>
<string name="revanced_hide_flyout_menu_go_to_podcast_title">Hide go to podcast menu</string>
<string name="revanced_hide_flyout_menu_help_title">Hide help & feedback menu</string>
<string name="revanced_hide_flyout_menu_play_next_title">Hide play next menu</string>
<string name="revanced_hide_flyout_menu_quality_title">Hide quality menu</string>
<string name="revanced_hide_flyout_menu_remove_from_library_title">Hide remove from library menu</string>
<string name="revanced_hide_flyout_menu_remove_from_playlist_title">Hide remove from playlist menu</string>
<string name="revanced_hide_flyout_menu_report_title">Hide report menu</string>
<string name="revanced_hide_flyout_menu_save_episode_for_later_title">Hide save episode for later menu</string>
<string name="revanced_hide_flyout_menu_save_to_library_title">Hide save to library menu</string>
<string name="revanced_hide_flyout_menu_save_to_playlist_title">Hide save to playlist menu</string>
<string name="revanced_hide_flyout_menu_share_title">Hide share menu</string>
<string name="revanced_hide_flyout_menu_shuffle_play_title">Hide shuffle play menu</string>
<string name="revanced_hide_flyout_menu_sleep_timer_title">Hide sleep timer menu</string>
<string name="revanced_hide_flyout_menu_start_radio_title">Hide start radio menu</string>
<string name="revanced_hide_flyout_menu_stats_for_nerds_title">Hide stats for nerds menu</string>
<string name="revanced_hide_flyout_menu_subscribe_title">Hide subscribe / unsubscribe menu</string>
<string name="revanced_hide_flyout_menu_view_song_credit_title">Hide view song credit menu</string>
<string name="revanced_replace_flyout_menu_dismiss_queue_continue_watch_title">Continue watching</string>
<string name="revanced_replace_flyout_menu_dismiss_queue_continue_watch_summary">Continues the video from the current time when switching to YouTube.</string>
<string name="revanced_replace_flyout_menu_dismiss_queue_watch_on_youtube_label">Watch on YouTube</string>
<string name="revanced_replace_flyout_menu_dismiss_queue_watch_on_youtube_warning">Invalid video url.</string>
<string name="revanced_replace_flyout_menu_dismiss_queue_title">Replace dismiss queue</string>
<string name="revanced_replace_flyout_menu_dismiss_queue_summary">Replaces \'Dismiss queue\' with \'Watch on YouTube\'.</string>
<string name="revanced_replace_flyout_menu_report_only_player_title">Keep report in comments</string>
<string name="revanced_replace_flyout_menu_report_only_player_summary">Keeps the report menu in the comments section intact.</string>
<string name="revanced_replace_flyout_menu_report_title">Replace report</string>
<string name="revanced_replace_flyout_menu_report_summary">Replaces \'Report\' with \'Playback speed\'.</string>
<string name="revanced_preference_screen_general_title">General</string>
<string name="revanced_change_start_page_title">Change start page</string>
<string name="revanced_change_start_page_summary">Select which page the app opens in.</string>
<string name="revanced_change_start_page_entry_chart">Charts</string>
<string name="revanced_change_start_page_entry_explore">Explore</string>
<string name="revanced_change_start_page_entry_home">Home</string>
<string name="revanced_change_start_page_entry_library">Library</string>
<string name="revanced_change_start_page_entry_subscription">Subscriptions</string>
<string name="revanced_disable_dislike_redirection_title">Disable dislike redirection</string>
<string name="revanced_disable_dislike_redirection_summary">Disables redirection to the next track when clicking the dislike button.</string>
<string name="revanced_custom_filter_toast_invalid_syntax">Invalid custom filter: %s.</string>
<string name="revanced_hide_playlist_card_shelf_title">Hide playlist card shelf</string>
<string name="revanced_hide_playlist_card_shelf_summary">Hides playlist card shelf in feed.</string>
<string name="revanced_hide_samples_shelf_title">Hide samples shelf</string>
<string name="revanced_hide_samples_shelf_summary">Hides samples shelf in feed.</string>
<string name="revanced_hide_floating_button_title">Hide floating button</string>
<string name="revanced_hide_floating_button_summary">Hides floating button in library.</string>
<string name="revanced_hide_tap_to_update_button_title">Hide \'Tap to update\' button</string>
<string name="revanced_hide_tap_to_update_button_summary">Hides \'Tap to update\' button.</string>
<string name="revanced_hide_notification_button_title">Hide notification button</string>
<string name="revanced_hide_notification_button_summary">Hides notification button in toolbar.</string>
<string name="revanced_hide_sound_search_button_title">Hide sound search button</string>
<string name="revanced_enable_black_player_background_title">Enable black player background</string>
<string name="revanced_enable_black_player_background_summary">Changes the player background color to black.</string>
<string name="revanced_restore_old_comments_popup_panels_title">Restore old comments popup panels</string>
<string name="revanced_restore_old_comments_popup_panels_summary">Returns the comments popup panels to the old style.</string>
<string name="revanced_restore_old_player_background_title">Restore old player background</string>
<string name="revanced_restore_old_player_background_summary">Returns the player background to the old style.</string>
<string name="revanced_restore_old_player_layout_title">Restore old player layout</string>
<string name="revanced_restore_old_player_layout_summary">"Returns the player layout to the old style.
Some features may not work properly in the old player layout."</string>
<string name="revanced_replace_player_cast_button_summary">"Replaces the cast button in the player with an 'Open music' button, which opens the official audio instead of the music video. (Experimental)

Info: This feature does not work normally if any songs in the playlist cannot be played."</string>
<string name="revanced_replace_player_cast_button_playlist_dismiss">Already playing from the official music source.</string>
<string name="revanced_replace_player_cast_button_playlist_error">Official music source is unavailable.</string>
<string name="revanced_preference_screen_video_title">Video</string>
<string name="revanced_remember_playback_speed_last_selected_title">Remember playback speed changes</string>
<string name="revanced_remember_playback_speed_last_selected_summary">Remembers the last playback speed selected.</string>
<string name="revanced_remember_video_quality_last_selected_title">Remember video quality changes</string>
<string name="revanced_remember_video_quality_last_selected_summary">Remembers the last video quality selected.</string>
<string name="revanced_custom_playback_speeds_parse_exception">Invalid custom playback speeds. Using default values.</string>
<string name="revanced_remember_playback_speed_toast">Changing default speed to %s.</string>
<string name="revanced_remember_video_quality_mobile">Changing default mobile data quality to %s.</string>
<string name="revanced_remember_video_quality_none">Failed to set quality.</string>
<string name="revanced_remember_video_quality_wifi">Changing default Wi-Fi quality to %s.</string>
<string name="revanced_preference_screen_ryd_title">Return YouTube Dislike</string>
<string name="revanced_ryd_enabled_title">Enable Return YouTube Dislike</string>
<string name="revanced_ryd_toast_on_connection_error_title">Show a toast if API is unavailable</string>
<string name="revanced_ryd_toast_on_connection_error_summary">Shows a toast if the Return YouTube Dislike API is unavailable.</string>
<string name="revanced_ryd_attribution_title">ReturnYouTubeDislike.com</string>
<string name="revanced_preference_screen_sb_title">SponsorBlock</string>
<string name="revanced_sb_enabled">Enable SponsorBlock</string>
<string name="revanced_sb_enabled_sum">SponsorBlock is a crowd-sourced system for skipping annoying parts of YouTube videos.</string>
<string name="revanced_sb_toast_on_connection_error">Show a toast if API is unavailable</string>
<string name="revanced_sb_toast_on_connection_error_sum">Shows a toast if the SponsorBlock API is unavailable.</string>
<string name="revanced_sb_toast_on_skip">Show a toast when skipping automatically</string>
<string name="revanced_sb_toast_on_skip_sum">Shows a toast when a segment is automatically skipped.</string>
<string name="revanced_sb_api_url">Change API URL</string>
<string name="revanced_sb_api_url_sum">The address SponsorBlock uses to make calls to the server. Do not change this unless you know what you\'re doing.</string>
<string name="revanced_sb_api_url_reset">API URL reset.</string>
<string name="revanced_sb_api_url_invalid">API URL is invalid.</string>
<string name="revanced_sb_api_url_changed">API URL changed.</string>
<string name="revanced_sb_diff_segments">Change segment behavior</string>
<string name="revanced_sb_segments_sponsor">Sponsor</string>
<string name="revanced_sb_segments_sponsor_sum">Paid promotion, paid referrals, and direct advertisements. Not for self-promotion or free shout-outs to causes / creators / websites / products they like.</string>
<string name="revanced_sb_segments_selfpromo">Unpaid / Self Promotion</string>
<string name="revanced_sb_segments_selfpromo_sum">Similar to \'Sponsor\' except for unpaid or self promotion. Includes sections about merchandise, donations, or information about who they collaborated with.</string>
<string name="revanced_sb_segments_interaction">Interaction Reminder (Subscribe)</string>
<string name="revanced_sb_segments_interaction_sum">A short reminder to like, subscribe, or follow them in the middle of content. If it is long or about something specific, it should instead be under self promotion.</string>
<string name="revanced_sb_segments_intro">Intermission / Intro Animation</string>
<string name="revanced_sb_segments_intro_sum">An interval without actual content. Could be a pause, static frame, or repeating animation. Does not include transitions containing information.</string>
<string name="revanced_sb_segments_outro">Endcards / Credits</string>
<string name="revanced_sb_segments_outro_sum">Credits or when the YouTube endcards appear. Not for conclusions with information.</string>
<string name="revanced_sb_segments_preview">Preview / Recap / Hook</string>
<string name="revanced_sb_segments_preview_sum">Collection of clips that show what is coming up or what happened in the video or in other videos of a series, where all information is repeated elsewhere.</string>
<string name="revanced_sb_segments_filler">Filler Tangent / Jokes</string>
<string name="revanced_sb_segments_filler_sum">Tangential scenes added only for filler or humor that are not required to understand the main content of the video. Does not include segments providing context or background details.</string>
<string name="revanced_sb_segments_nomusic">Music: Non-Music Section</string>
<string name="revanced_sb_segments_nomusic_sum">Only for use in music videos. Sections of music videos without music, that aren\'t already covered by another category.</string>
<string name="revanced_sb_skipped_sponsor">Skipped sponsor.</string>
<string name="revanced_sb_skipped_selfpromo">Skipped self promotion.</string>
<string name="revanced_sb_skipped_interaction">Skipped annoying reminder.</string>
<string name="revanced_sb_skipped_intro_beginning">Skipped intro.</string>
<string name="revanced_sb_skipped_intro_middle">Skipped intermission.</string>
<string name="revanced_sb_skipped_intro_end">Skipped intermission.</string>
<string name="revanced_sb_skipped_outro">Skipped outro.</string>
<string name="revanced_sb_skipped_preview_beginning">Skipped preview.</string>
<string name="revanced_sb_skipped_preview_middle">Skipped preview.</string>
<string name="revanced_sb_skipped_preview_end">Skipped recap.</string>
<string name="revanced_sb_skipped_filler">Skipped filler.</string>
<string name="revanced_sb_skipped_nomusic">Skipped a non-music section.</string>
<string name="revanced_sb_skipped_multiple_segments">Skipped multiple segments.</string>
<string name="revanced_sb_skip_automatically">Skip automatically</string>
<string name="revanced_sb_skip_ignore">Disable</string>
<string name="revanced_sb_sponsorblock_connection_failure_generic">SponsorBlock is temporarily unavailable.</string>
<string name="revanced_sb_sponsorblock_connection_failure_status">SponsorBlock is temporarily unavailable (status %d).</string>
<string name="revanced_sb_sponsorblock_connection_failure_timeout">SponsorBlock is temporarily unavailable (API timed out).</string>
<string name="revanced_sb_color_dot_label">Color:</string>
<string name="revanced_sb_color_changed">Color changed.</string>
<string name="revanced_sb_color_reset">Color reset.</string>
<string name="revanced_sb_color_invalid">Invalid color code. Color reset to default.</string>
<string name="revanced_sb_reset_color">Reset color</string>
<string name="revanced_sb_about_api_sum">Data is provided by the SponsorBlock API. Tap here to learn more and see downloads for other platforms.</string>
<string name="revanced_sb_about">About</string>
<string name="revanced_sb_about_api">sponsor.ajay.app</string>
<string name="revanced_preference_screen_misc_title">Miscellaneous</string>
<string name="revanced_enable_debug_buffer_logging_title">Enable debug buffer logging</string>
<string name="revanced_enable_debug_buffer_logging_summary">Includes the buffer in the debug log.</string>
<string name="gms_core_settings_title">Open GmsCore</string>
<string name="gms_core_settings_summary">Enable cloud messaging to receive notifications.</string>
<string name="revanced_gms_show_dialog_title">Show optimization dialog for GMSCore</string>
<string name="revanced_gms_show_dialog_summary">Displays the optimization dialog for GMSCore at each application startup.</string>
<string name="gms_core_dialog_dismiss_text">Don\'t show again</string>
<string name="gms_core_toast_not_installed_message">GmsCore is not installed. Install it.</string>
<string name="gms_core_dialog_title">Action needed</string>
<string name="gms_core_dialog_not_whitelisted_not_allowed_in_background_message">"GmsCore does not have permission to run in the background.

Follow the 'Don't kill my app' guide for your phone, and apply the instructions to your MicroG installation.

This is required for the app to work."</string>
<string name="gms_core_dialog_open_website_text">Open website</string>
<string name="gms_core_dialog_not_whitelisted_using_battery_optimizations_message">"GmsCore battery optimizations must be disabled to prevent issues.

Tap on the continue button and disable battery optimizations."</string>
<string name="gms_core_dialog_continue_text">Continue</string>
<string name="revanced_extended_settings_reset">Reset</string>
</resources>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="revanced_gms_show_dialog_title">Show optimization dialog for GMSCore</string>
<string name="revanced_gms_show_dialog_summary">Displays the optimization dialog for GMSCore at each application startup.</string>
<string name="gms_core_dialog_dismiss_text">Don\'t show again</string>
</resources>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="revanced_gms_show_dialog_title">Show optimization dialog for GMSCore</string>
<string name="revanced_gms_show_dialog_summary">Displays the optimization dialog for GMSCore at each application startup.</string>
<string name="gms_core_dialog_dismiss_text">Don\'t show again</string>
</resources>
Loading

0 comments on commit 3069354

Please sign in to comment.