Revert api_source to api_url

This commit is contained in:
Ushie
2025-02-05 19:04:36 +03:00
parent f4a2b06276
commit 1851a35e10
2 changed files with 116 additions and 60 deletions

View File

@@ -122,7 +122,7 @@ fun AdvancedSettingsScreen(
GroupHeader(stringResource(R.string.manager))
SettingsListItem(
headlineContent = stringResource(R.string.api_source),
headlineContent = stringResource(R.string.api_url),
supportingContent = apiUrl,
modifier = Modifier.clickable {
showApiUrlDialog = true
@@ -222,7 +222,7 @@ private fun APIUrlDialog(currentUrl: String, defaultUrl: String, onSubmit: (Stri
onSubmit(url)
}
) {
Text(stringResource(R.string.api_source_dialog_save))
Text(stringResource(R.string.api_url_dialog_save))
}
},
dismissButton = {
@@ -235,7 +235,7 @@ private fun APIUrlDialog(currentUrl: String, defaultUrl: String, onSubmit: (Stri
},
title = {
Text(
text = stringResource(R.string.api_source_dialog_title),
text = stringResource(R.string.api_url_dialog_title),
style = MaterialTheme.typography.headlineSmall.copy(textAlign = TextAlign.Center),
color = MaterialTheme.colorScheme.onSurface,
)
@@ -245,12 +245,12 @@ private fun APIUrlDialog(currentUrl: String, defaultUrl: String, onSubmit: (Stri
verticalArrangement = Arrangement.spacedBy(16.dp)
) {
Text(
text = stringResource(R.string.api_source_dialog_description),
text = stringResource(R.string.api_url_dialog_description),
style = MaterialTheme.typography.bodyMedium,
color = MaterialTheme.colorScheme.onSurfaceVariant
)
Text(
text = stringResource(R.string.api_source_dialog_warning),
text = stringResource(R.string.api_url_dialog_warning),
style = MaterialTheme.typography.bodyMedium,
color = MaterialTheme.colorScheme.error
)
@@ -258,10 +258,10 @@ private fun APIUrlDialog(currentUrl: String, defaultUrl: String, onSubmit: (Stri
modifier = Modifier.fillMaxWidth(),
value = url,
onValueChange = { url = it },
label = { Text(stringResource(R.string.api_source)) },
label = { Text(stringResource(R.string.api_url)) },
trailingIcon = {
IconButton(onClick = { url = defaultUrl }) {
Icon(Icons.Outlined.Restore, stringResource(R.string.api_source_dialog_reset))
Icon(Icons.Outlined.Restore, stringResource(R.string.api_url_dialog_reset))
}
}
)

View File

@@ -8,7 +8,8 @@
<string name="revanced_patcher">ReVanced Patcher</string>
<string name="plugin_host_permission_label">ReVanced Manager plugin host</string>
<string name="plugin_host_permission_description">Used to control access to ReVanced Manager plugins. Only ReVanced Manager has this.</string>
<string name="plugin_host_permission_description">Used to control access to ReVanced Manager
plugins. Only ReVanced Manager has this.</string>
<string name="toast_copied_to_clipboard">Copied!</string>
<string name="copy_to_clipboard">Copy to clipboard</string>
@@ -18,8 +19,10 @@
<string name="select_app">Select an app</string>
<string name="patches_selected">%1$d/%2$d selected</string>
<string name="new_downloader_plugins_notification">New downloader plugins available. Click here to configure them.</string>
<string name="unsupported_architecture_warning">Patching on this device architecture is unsupported and will most likely fail.</string>
<string name="new_downloader_plugins_notification">New downloader plugins available. Click here
to configure them.</string>
<string name="unsupported_architecture_warning">Patching on this device architecture is
unsupported and will most likely fail.</string>
<string name="import_">Import</string>
<string name="import_bundle">Import patch bundle</string>
@@ -38,15 +41,20 @@
<string name="bundle_name_fallback">Unnamed</string>
<string name="android_11_bug_dialog_title">Android 11 bug</string>
<string name="android_11_bug_dialog_description">The app installation permission must be granted ahead of time to avoid a bug in the Android 11 system that will negatively affect the user experience.</string>
<string name="android_11_bug_dialog_description">The app installation permission must be granted
ahead of time to avoid a bug in the Android 11 system that will negatively affect the user
experience.</string>
<string name="selected_app_meta_any_version">Any available version</string>
<string name="app_source_dialog_title">Select source</string>
<string name="app_source_dialog_option_auto">Auto</string>
<string name="app_source_dialog_option_auto_description">Use all installed downloaders to find a suitable APK file</string>
<string name="app_source_dialog_option_auto_description">Use all installed downloaders to find a
suitable APK file</string>
<string name="app_source_dialog_option_auto_unavailable">No plugins available</string>
<string name="app_source_dialog_option_installed_no_root">Mounted apps cannot be patched again without root access</string>
<string name="app_source_dialog_option_installed_version_not_suggested">Version %s does not match the suggested version</string>
<string name="app_source_dialog_option_installed_no_root">Mounted apps cannot be patched again
without root access</string>
<string name="app_source_dialog_option_installed_version_not_suggested">Version %s does not
match the suggested version</string>
<string name="patch_item_description">Start patching the application</string>
<string name="patch_selector_item">Patch selection and options</string>
@@ -62,7 +70,8 @@
<string name="legacy_import_failed">Could not import legacy settings</string>
<string name="auto_updates_dialog_title">Configure updates</string>
<string name="auto_updates_dialog_description">Do you want ReVanced Manager to periodically check for updates for the following components?</string>
<string name="auto_updates_dialog_description">Do you want ReVanced Manager to periodically
check for updates for the following components?</string>
<string name="auto_updates_dialog_manager">ReVanced Manager</string>
<string name="auto_updates_dialog_patches">ReVanced Patches</string>
<string name="auto_updates_dialog_note">These settings can be changed later.</string>
@@ -84,7 +93,8 @@
<string name="about">About</string>
<string name="opensource_licenses">Open source licenses</string>
<string name="opensource_licenses_description">View all the libraries used to make this application</string>
<string name="opensource_licenses_description">View all the libraries used to make this
application</string>
<string name="contributors">Contributors</string>
<string name="contributors_description">View the contributors of ReVanced</string>
@@ -94,14 +104,19 @@
<string name="theme_mode_description">Choose between light, dark, and system provided mode</string>
<string name="safeguards">Safeguards</string>
<string name="allow_compatibility_mixing">Allow unsupported compatibility</string>
<string name="allow_compatibility_mixing_description">Permit apps and patches to be mixed in unsupported state</string>
<string name="allow_compatibility_mixing_confirmation">Selecting incompatible patches can result in a broken app.\n\nAllow anyways?</string>
<string name="allow_compatibility_mixing_description">Permit apps and patches to be mixed in
unsupported state</string>
<string name="allow_compatibility_mixing_confirmation">Selecting incompatible patches can result
in a broken app.\n\nAllow anyways?</string>
<string name="patch_selection_safeguard">Allow changing patch selection</string>
<string name="patch_selection_safeguard_description">Permit selecting or deselecting patches from default</string>
<string name="patch_selection_safeguard_confirmation">Changing the selection of patches may cause unexpected issues.\n\nAllow anyways?</string>
<string name="patch_selection_safeguard_description">Permit selecting or deselecting patches
from default</string>
<string name="patch_selection_safeguard_confirmation">Changing the selection of patches may
cause unexpected issues.\n\nAllow anyways?</string>
<string name="universal_patches_safeguard">Allow universal patch</string>
<string name="universal_patches_safeguard_description">Permit selecting app\'s generic patch</string>
<string name="universal_patches_safeguard_confirmation">Universal patch are not as well tested as those that target specific apps.\n\nAllow anyways?</string>
<string name="universal_patches_safeguard_confirmation">Universal patch are not as well tested
as those that target specific apps.\n\nAllow anyways?</string>
<string name="backup">Backup</string>
<string name="restore">Restore</string>
<string name="keystore">Keystore</string>
@@ -109,7 +124,8 @@
<string name="patch_options">Patch options</string>
<string name="restore_keystore_description">Restore keystore from external source</string>
<string name="restore_keystore_dialog_title">Enter keystore credentials</string>
<string name="restore_keystore_dialog_description">You\'ll need enter the keystores credentials to restore it.</string>
<string name="restore_keystore_dialog_description">You\'ll need enter the keystores credentials
to restore it.</string>
<string name="restore_keystore_dialog_alias_field">Username (Alias)</string>
<string name="restore_keystore_dialog_password_field">Password</string>
<string name="restore_keystore_dialog_button">Import</string>
@@ -121,19 +137,23 @@
<string name="regenerate_keystore">Regeneration</string>
<string name="regenerate_keystore_description">Replace current keystore with new one</string>
<string name="regenerate_keystore_success">The keystore has been successfully replaced</string>
<string name="restore_patch_selection_description">Export apps patch selections into usable file</string>
<string name="restore_patch_selection_description">Export apps patch selections into usable
file</string>
<string name="restore_patch_selection_fail">Could not import patch selection: %s</string>
<string name="restore_patch_selection_success">Patch selection successfully restored</string>
<string name="backup_patch_selection_description">Import apps patch selections from external source</string>
<string name="backup_patch_selection_description">Import apps patch selections from external
source</string>
<string name="backup_patch_selection_fail">Could not backup patch selection: %s</string>
<string name="backup_patch_selection_success">Patch selection successfully restored</string>
<string name="reset_patch_selection">Reset patch selection</string>
<string name="reset_patch_selection_description">Reset the stored patch selection</string>
<string name="reset_patch_selection_success">Patch selection successfully reset</string>
<string name="patch_options_reset_package">Reset for app</string>
<string name="patch_options_reset_package_description">Use the default patch options configuration for a single app</string>
<string name="patch_options_reset_package_description">Use the default patch options
configuration for a single app</string>
<string name="patch_options_reset_bundle">Reset for bundle</string>
<string name="patch_options_reset_bundle_description">Use the default patch options configuration for all patches in a bundle</string>
<string name="patch_options_reset_bundle_description">Use the default patch options
configuration for all patches in a bundle</string>
<string name="patch_options_reset_all_description">Use the default patch options configuration</string>
<string name="downloader_plugins">Plugins</string>
<string name="downloader_plugin_state_trusted">Trusted</string>
@@ -177,17 +197,20 @@
<string name="process_runtime">Run patcher in another process</string>
<string name="process_runtime_description">Faster and allows patcher to use more memory</string>
<string name="process_runtime_memory_limit">Patcher process memory limit</string>
<string name="process_runtime_memory_limit_description">The max amount of memory that the patcher process can use (in megabytes)</string>
<string name="process_runtime_memory_limit_description">The max amount of memory that the
patcher process can use (in megabytes)</string>
<string name="debug_logs_export">Export debug logs</string>
<string name="debug_logs_export_read_failed">Failed to read logs (exit code %d)</string>
<string name="debug_logs_export_failed">Failed to export logs</string>
<string name="debug_logs_export_success">Exported logs</string>
<string name="api_source">API Source</string>
<string name="api_source_dialog_title">Set custom API Source</string>
<string name="api_source_dialog_description">Set the API Source of ReVanced Manager. ReVanced Manager uses the API to download patches and updates.</string>
<string name="api_source_dialog_warning">ReVanced Manager connects to the API to download patches and updates. Make sure that you trust it.</string>
<string name="api_source_dialog_save">Set</string>
<string name="api_source_dialog_reset">Reset API Source</string>
<string name="api_url">API Source</string>
<string name="api_url_dialog_title">Set custom API Source</string>
<string name="api_url_dialog_description">Set the API Source of ReVanced Manager. ReVanced
Manager uses the API to download patches and updates.</string>
<string name="api_url_dialog_warning">ReVanced Manager connects to the API to download patches
and updates. Make sure that you trust it.</string>
<string name="api_url_dialog_save">Set</string>
<string name="api_url_dialog_reset">Reset API Source</string>
<string name="testing">Testing</string>
<string name="disable_safeguard">Disable all safeguards</string>
<string name="device">Device</string>
@@ -218,22 +241,32 @@
<string name="bundles_selected">%s selected</string>
<string name="unsupported_patches">Incompatible patches</string>
<string name="universal_patches">Universal patches</string>
<string name="patch_selection_reset_toast">Patch selection and options has been reset to recommended defaults</string>
<string name="patch_selection_reset_toast">Patch selection and options has been reset to
recommended defaults</string>
<string name="patch_options_reset_toast">Patch options have been reset</string>
<string name="non_suggested_version_warning_title">Non suggested version</string>
<string name="non_suggested_version_warning_description">The version of the app you have selected does not match the suggested version.\nPlease use the suggested version: %s\n\nTo continue anyway, disable \"Require suggested app version\" in the advanced settings.</string>
<string name="non_suggested_version_warning_description">The version of the app you have
selected does not match the suggested version.\nPlease use the suggested version: %s\n\nTo
continue anyway, disable \"Require suggested app version\" in the advanced settings.</string>
<string name="selection_warning_title">Stop using defaults?</string>
<string name="selection_warning_description">It is recommended to use the default patch selection and options. Changing them may result in unexpected issues.\n\nYou need to turn on \"Allow changing patch selection\" in the advanced settings before toggling patches.</string>
<string name="universal_patch_warning_description">Universal patches have a more generalized use and do not work as reliably as patches that target specific apps. You may encounter issues while using them.\n\nThis warning can be disabled in the advanced settings.</string>
<string name="selection_warning_description">It is recommended to use the default patch
selection and options. Changing them may result in unexpected issues.\n\nYou need to turn on
\"Allow changing patch selection\" in the advanced settings before toggling patches.</string>
<string name="universal_patch_warning_description">Universal patches have a more generalized use
and do not work as reliably as patches that target specific apps. You may encounter issues
while using them.\n\nThis warning can be disabled in the advanced settings.</string>
<string name="supported">This version</string>
<string name="universal">Any app</string>
<string name="unsupported">Unsupported</string>
<string name="search_patches">Search patches</string>
<string name="app_not_supported">This patch is not compatible with the selected app version (%1$s).\n\nIt only supports the following version(s): %2$s.</string>
<string name="app_not_supported">This patch is not compatible with the selected app version
(%1$s).\n\nIt only supports the following version(s): %2$s.</string>
<string name="continue_with_version">Continue with this version?</string>
<string name="version_not_supported">Not all patches support this version (%s). Do you want to continue anyway?</string>
<string name="version_not_supported">Not all patches support this version (%s). Do you want to
continue anyway?</string>
<string name="download_application">Download application?</string>
<string name="app_not_installed">The app you selected isn\'t installed. Do you want to download it?</string>
<string name="app_not_installed">The app you selected isn\'t installed. Do you want to download
it?</string>
<string name="failed_to_load_apk">Failed to load APK</string>
<string name="loading">Loading…</string>
<string name="not_installed">Not installed</string>
@@ -263,7 +296,8 @@
<string name="downloader_app_not_found">Downloader did not find the app</string>
<string name="downloader_error">Downloader error: %s</string>
<string name="downloader_no_plugins_installed">No plugins installed.</string>
<string name="downloader_no_plugins_available">No trusted plugins available for use. Check your settings.</string>
<string name="downloader_no_plugins_available">No trusted plugins available for use. Check your
settings.</string>
<string name="already_patched">Already patched</string>
<string name="patch_selector_sheet_filter_title">Filter</string>
@@ -291,7 +325,8 @@
<string name="save_apk_success">APK Saved</string>
<string name="sign_fail">Failed to sign APK: %s</string>
<string name="save_logs">Save logs</string>
<string name="plugin_activity_dialog_body">User interaction is required in order to proceed with this plugin.</string>
<string name="plugin_activity_dialog_body">User interaction is required in order to proceed with
this plugin.</string>
<string name="select_install_type">Select installation type</string>
<string name="patcher_step_group_preparing">Preparing</string>
@@ -333,13 +368,17 @@
<string name="bundle_update_success">Successfully updated %s</string>
<string name="bundle_update_unavailable">No update available for %s</string>
<string name="bundle_auto_update">Auto update</string>
<string name="bundle_auto_update_description">Automatically update this bundle when ReVanced starts</string>
<string name="bundle_auto_update_description">Automatically update this bundle when ReVanced
starts</string>
<string name="bundle_view_patches">View patches</string>
<string name="bundle_view_patches_any_version">Any version</string>
<string name="bundle_view_patches_any_package">Any package</string>
<string name="about_revanced_manager">About ReVanced Manager</string>
<string name="revanced_manager_description">ReVanced Manager is an application designed to work with ReVanced Patcher, which allows for long-lasting patches to be created for Android apps. The patching system is designed to automatically work with new versions of apps with minimal maintenance.</string>
<string name="revanced_manager_description">ReVanced Manager is an application designed to work
with ReVanced Patcher, which allows for long-lasting patches to be created for Android apps.
The patching system is designed to automatically work with new versions of apps with minimal
maintenance.</string>
<string name="update_available">An update is available</string>
<string name="current_version">Current version: %s</string>
<string name="new_version">New version: %s</string>
@@ -347,12 +386,15 @@
<string name="update_completed">Update installed</string>
<string name="install_update_manager_failed">Failed to install update</string>
<string name="check_for_update">Check for update</string>
<string name="check_for_update_auto_description">Automatically check for new version when the app launched</string>
<string name="check_for_update_auto_description">Automatically check for new version when the
app launched</string>
<string name="changelog">View changelogs</string>
<string name="changelog_loading">Loading changelog</string>
<string name="changelog_download_fail">Failed to download changelog: %s</string>
<string name="changelog_description">Check out the latest changes in this update</string>
<string name="battery_optimization_notification">Battery optimizations must be turned off in order for ReVanced Manager to work correctly in the background. Click here to turn off optimizations.</string>
<string name="battery_optimization_notification">Battery optimizations must be turned off in
order for ReVanced Manager to work correctly in the background. Click here to turn off
optimizations.</string>
<string name="installing_manager_update">Installing update…</string>
<string name="downloading_manager_update">Downloading update…</string>
<string name="download_manager_failed">Failed to download update: %s</string>
@@ -361,7 +403,8 @@
<string name="save_with_count">Save (%1$s)</string>
<string name="update">Update</string>
<string name="empty">Empty</string>
<string name="installing_message">Tap on <b>Update</b> when prompted. \n ReVanced Manager will close when updating.</string>
<string name="installing_message">Tap on <b>Update</b> when prompted. \n ReVanced Manager will
close when updating.</string>
<string name="no_changelogs_found">No changelogs found</string>
<string name="just_now">Just now</string>
<string name="minutes_ago">%sm ago</string>
@@ -377,18 +420,22 @@
<string name="no_update_available">No update available</string>
<string name="update_check">Checking for updates…</string>
<string name="dismiss_temporary">Not now</string>
<string name="update_available_dialog_description">A new version of ReVanced Manager (%s) is available.</string>
<string name="update_available_dialog_description">A new version of ReVanced Manager (%s) is
available.</string>
<string name="failed_to_download_update">Failed to download update: %s</string>
<string name="download">Download</string>
<string name="download_confirmation_metered">You are currently on a metered connection, and data charges from your service provider may apply.\n\nDo you still want to continue?</string>
<string name="download_confirmation_metered">You are currently on a metered connection, and data
charges from your service provider may apply.\n\nDo you still want to continue?</string>
<string name="download_update_confirmation">Download update?</string>
<string name="no_contributors_found">No contributors found</string>
<string name="select">Select</string>
<string name="select_deselect_all">Select or deselect all</string>
<string name="select_bundle_type_dialog_title">Add new bundle</string>
<string name="select_bundle_type_dialog_description">Add a new bundle from a URL or storage</string>
<string name="local_bundle_description">Import local files from your storage, does not automatically update</string>
<string name="remote_bundle_description">Import remote files from a URL, can automatically update</string>
<string name="local_bundle_description">Import local files from your storage, does not
automatically update</string>
<string name="remote_bundle_description">Import remote files from a URL, can automatically
update</string>
<string name="recommended">Recommended</string>
<string name="installation_failed_dialog_title">Installation failed</string>
@@ -399,13 +446,20 @@
<string name="installation_invalid_dialog_title">Installation invalid</string>
<string name="installation_storage_issue_dialog_title">Not enough storage</string>
<string name="installation_timeout_dialog_title">Installation timed out</string>
<string name="installation_failed_description">The installation failed due to an unknown reason. Try again?</string>
<string name="installation_aborted_description">The installation was cancelled manually. Try again?</string>
<string name="installation_blocked_description">The installation was blocked. Review your device security settings and try again.</string>
<string name="installation_conflict_description">The installation was prevented by an existing installation of the app. Uninstall the installed app and try again?</string>
<string name="installation_incompatible_description">The app is incompatible with this device. Use an APK that is supported by this device and try again.</string>
<string name="installation_invalid_description">The app is invalid. Uninstall the app and try again?</string>
<string name="installation_storage_issue_description">The app could not be installed due to insufficient storage. Free up some space and try again.</string>
<string name="installation_failed_description">The installation failed due to an unknown reason.
Try again?</string>
<string name="installation_aborted_description">The installation was cancelled manually. Try
again?</string>
<string name="installation_blocked_description">The installation was blocked. Review your device
security settings and try again.</string>
<string name="installation_conflict_description">The installation was prevented by an existing
installation of the app. Uninstall the installed app and try again?</string>
<string name="installation_incompatible_description">The app is incompatible with this device.
Use an APK that is supported by this device and try again.</string>
<string name="installation_invalid_description">The app is invalid. Uninstall the app and try
again?</string>
<string name="installation_storage_issue_description">The app could not be installed due to
insufficient storage. Free up some space and try again.</string>
<string name="installation_timeout_description">The installation took too long. Try again?</string>
<string name="reinstall">Reinstall</string>
<string name="show">Show</string>
@@ -416,12 +470,14 @@
<string name="add_patch_bundle">Add patch bundle</string>
<string name="bundle_url">Bundle URL</string>
<string name="auto_update">Auto update</string>
<string name="unsupported_patches_dialog">These patches are not compatible with the selected app version (%1$s).\n\nClick on the patches to see more details.</string>
<string name="unsupported_patches_dialog">These patches are not compatible with the selected app
version (%1$s).\n\nClick on the patches to see more details.</string>
<string name="unsupported_patch">Unsupported patch</string>
<string name="any_version">Any</string>
<string name="never_show_again">Never show again</string>
<string name="show_manager_update_dialog_on_launch">Show update message on launch</string>
<string name="show_manager_update_dialog_on_launch_description">Shows a popup notification whenever there is a new update available on launch.</string>
<string name="show_manager_update_dialog_on_launch_description">Shows a popup notification
whenever there is a new update available on launch.</string>
<string name="failed_to_import_keystore">Failed to import keystore</string>
<string name="export">Export</string>
</resources>