Skip to content

Commit

Permalink
chore: merge dev to main (#1399)
Browse files Browse the repository at this point in the history
  • Loading branch information
validcube authored Oct 21, 2023
2 parents b355778 + ad6b164 commit ee43fa6
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 7,287 deletions.
75 changes: 0 additions & 75 deletions .releaserc

This file was deleted.

1 change: 0 additions & 1 deletion CHANGELOG.md

This file was deleted.

4 changes: 3 additions & 1 deletion assets/i18n/en_US.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"okButton": "OK",
"cancelButton": "Cancel",
"dismissButton": "Dismiss",
"quitButton": "Quit",
"updateButton": "Update",
"enabledLabel": "Enabled",
Expand Down Expand Up @@ -134,6 +135,7 @@
"setRequiredOption": "Some patches require options to be set:\n\n{patches}\n\nPlease set them before continuing."
},
"patchOptionsView": {
"resetOptionsTooltip": "Reset patch options",
"viewTitle": "Patch options",
"saveOptions": "Save",

Expand Down Expand Up @@ -232,7 +234,7 @@
"universalPatchesLabel": "Show universal patches",
"universalPatchesHint": "Display all apps and universal patches (may slow down the app list)",
"versionCompatibilityCheckLabel": "Version compatibility check",
"versionCompatibilityCheckHint": "Restricts patches to supported versions",
"versionCompatibilityCheckHint": "Restricts patches to supported app versions",

"aboutLabel": "About",
"snackbarMessage": "Copied to clipboard",
Expand Down
22 changes: 11 additions & 11 deletions lib/ui/views/installer/installer_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ class InstallerViewModel extends BaseViewModel {
}

Future<void> runPatcher() async {

try {
await _patcherAPI.runPatcher(
_app.packageName,
Expand All @@ -159,7 +158,7 @@ class InstallerViewModel extends BaseViewModel {

// Necessary to reset the state of patches so that they
// can be reloaded again.
_managerAPI.patches.clear();
_managerAPI.patches.clear();
await _patcherAPI.loadPatches();

try {
Expand All @@ -185,26 +184,27 @@ class InstallerViewModel extends BaseViewModel {

final formattedLogs = [
'```',
'~ Device Info',
'- Device Info',
'ReVanced Manager: ${info['version']}',
'Build: ${info['flavor']}',
'Model: ${info['model']}',
'Android version: ${info['androidVersion']}',
'Supported architectures: ${info['supportedArch'].join(", ")}',

'\n~ Patch Info',
'Root permissions: ${isRooted ? 'Yes' : 'No'}',

'\n- Patch Info',
'App: ${_app.packageName} v${_app.version}',
'Patches version: ${_managerAPI.patchesVersion}',
'Patches: ${_patches.map((p) => p.name).toList().join(", ")}',

'\n~ Settings',
'Patches: ${_patches.map((p) => p.name + (p.options.isEmpty ? '' : ' [${p.options.map((o) => '${o.title}: ${o.value}').join(", ")}]')).toList().join(", ")}',
'\n- Settings',
'Allow changing patch selection: ${_managerAPI.isPatchesChangeEnabled()}',
'Show universal patches: ${_managerAPI.areUniversalPatchesEnabled()}',
'Version compatibility check: ${_managerAPI.isVersionCompatibilityCheckEnabled()}',
'Show universal patches: ${_managerAPI.areUniversalPatchesEnabled()}',
'Patches source: ${_managerAPI.getPatchesRepo()}',
'Integration source: ${_managerAPI.getIntegrationsRepo()}',

'\n~ Logs',
'\n- Logs',
logs,
'```',
];
Expand Down
4 changes: 4 additions & 0 deletions lib/ui/views/patch_options/patch_options_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ class PatchOptionsView extends StatelessWidget {
icon: const Icon(
Icons.history,
),
tooltip: FlutterI18n.translate(
context,
'patchOptionsView.resetOptionsTooltip',
),
),
],
),
Expand Down
8 changes: 4 additions & 4 deletions lib/ui/views/patch_options/patch_options_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class PatchOptionsViewModel extends BaseViewModel {
),
actions: [
CustomMaterialButton(
label: I18nText('okButton'),
label: I18nText('cancelButton'),
onPressed: () {
Navigator.of(context).pop();
},
Expand All @@ -165,7 +165,7 @@ class PatchOptionsViewModel extends BaseViewModel {
.map((e) {
return CustomCard(
padding: const EdgeInsets.all(4),
backgroundColor: Theme.of(context).colorScheme.secondaryContainer,
backgroundColor: Theme.of(context).colorScheme.surface,
onTap: () {
addOption(e);
Navigator.pop(context);
Expand All @@ -186,9 +186,9 @@ class PatchOptionsViewModel extends BaseViewModel {
e.description,
style: TextStyle(
fontSize: 14,
color: Theme.of(context).colorScheme.onSecondaryContainer,
color: Theme.of(context).colorScheme.onSurface,
),
)
),
],
),
),
Expand Down
10 changes: 5 additions & 5 deletions lib/ui/widgets/settingsView/social_media_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ class SocialMediaWidget extends StatelessWidget {
SocialMediaItem(
icon: FaIcon(FontAwesomeIcons.github),
title: Text('GitHub'),
subtitle: Text('github.com/revanced'),
url: 'https://github.com/revanced',
subtitle: Text('github.com/ReVanced'),
url: 'https://github.com/ReVanced',
),
SocialMediaItem(
icon: FaIcon(FontAwesomeIcons.discord),
Expand All @@ -74,10 +74,10 @@ class SocialMediaWidget extends StatelessWidget {
url: 'https://reddit.com/r/revancedapp',
),
SocialMediaItem(
icon: FaIcon(FontAwesomeIcons.twitter),
title: Text('Twitter'),
icon: FaIcon(FontAwesomeIcons.xTwitter),
title: Text('X'),
subtitle: Text('@revancedapp'),
url: 'https://twitter.com/revancedapp',
url: 'https://x.com/revancedapp',
),
SocialMediaItem(
icon: FaIcon(FontAwesomeIcons.youtube),
Expand Down
Loading

0 comments on commit ee43fa6

Please sign in to comment.