Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Merge dev to main #1611

Merged
merged 100 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
c94eb7a
perf: Load patched apps as soon as possible
oSumAtrIX Dec 23, 2023
975180b
fix: added a trailing comma
BenjaminHalko Dec 28, 2023
9ed43ef
feat: use native TextField
validcube Dec 30, 2023
3f96608
fix: Allow mounting without Magisk
Ushie Dec 31, 2023
f3c78c2
fix: Mount script causes build to fail (#1613)
BenjaminHalko Dec 31, 2023
edd8602
fix: use lowercase repo names (#1626)
BenjaminHalko Jan 8, 2024
28ae276
feat: Add API migration code (#1615)
oSumAtrIX Jan 9, 2024
0d45fe4
feat: Simplify settings strings (#1618)
oSumAtrIX Jan 9, 2024
4f22e88
fix: Incorrect strings and logics (#1619)
TheAabedKhan Jan 11, 2024
fd27806
chore: remove unused import
BenjaminHalko Jan 12, 2024
ef9b1d5
refactor: Replace deprecated `WillPopScope` (#1604)
BenjaminHalko Jan 14, 2024
7911459
feat: add haptic feedback (#1459)
BenjaminHalko Jan 14, 2024
b07b935
docs(security): init (#1599)
validcube Jan 21, 2024
cf1afdd
chore: remove unused dependencies (#1603)
BenjaminHalko Jan 21, 2024
079c0de
fix: fix redundant buttons on dialog
validcube Jan 21, 2024
30d5f3a
docs(security): Prepare for v1.19.0
validcube Jan 21, 2024
97c33d6
chore: Remove deprecated lint rules
validcube Jan 21, 2024
9764326
chore(patch_item): Remove import directive
validcube Jan 21, 2024
8e52abd
fix(Keystore Password): textfield title display
validcube Jan 21, 2024
acb1e24
fix(Patch Option): Set text colour on dropdown menu
validcube Jan 21, 2024
efb2d5e
feat: Improve app selector and patcher UI (#1616)
oSumAtrIX Jan 22, 2024
ec2c2d8
ci: Build pre-release versions (#1606)
BenjaminHalko Jan 22, 2024
6fd740f
feat: Improve Split APK warning readability (#1625)
otahir-21 Jan 22, 2024
8595099
fix(Release CI): truncate the "v" from version
validcube Jan 22, 2024
f38a593
ci(Release Build): Use correct syntax in getting the version
validcube Jan 22, 2024
bea99bb
chore(release): 1.19.0-dev.1 [skip ci]
semantic-release-bot Jan 22, 2024
d933997
fix: Use correct version code & name (#1647)
BenjaminHalko Jan 22, 2024
7104d6d
chore(release): 1.19.0-dev.2 [skip ci]
semantic-release-bot Jan 22, 2024
c7d975e
feat: Show a dialog when an update is available (#1654)
TheAabedKhan Jan 25, 2024
70a1086
fix: Do not delete files from post-fs-data.d
TheAabedKhan Jan 25, 2024
deb1ba3
docs(Security): Use dynamic information on version
validcube Jan 27, 2024
3e51caf
docs(Security): Avoid table shifting layout
validcube Jan 27, 2024
07fc964
ci: Specify paths in release workflow (#1664)
BenjaminHalko Jan 29, 2024
b115643
chore(release): 1.19.0-dev.3 [skip ci]
semantic-release-bot Jan 29, 2024
088a3b7
ci: Improve build workflow (#1668)
BenjaminHalko Feb 1, 2024
5b2c551
fix: Stop patch when signing fails (#1553)
kitadai31 Feb 1, 2024
93482b0
chore(release): 1.19.0-dev.4 [skip ci]
semantic-release-bot Feb 2, 2024
8be07de
ci(release): Migrate deprecated Node version
validcube Feb 2, 2024
9aeb156
fix(Update Confirmation Sheet): Add top padding
validcube Feb 2, 2024
edc8ef4
chore(release): 1.19.0-dev.5 [skip ci]
semantic-release-bot Feb 2, 2024
c900d09
refactor: Disable update for dev build (#1662)
BenjaminHalko Feb 2, 2024
8cda2c1
ci: Add scope to changelog (#1672)
BenjaminHalko Feb 3, 2024
eb6d3cd
fix(PopScope): User able to exit patch screen when the installer is s…
BenjaminHalko Feb 3, 2024
9bf5153
chore(release): 1.19.0-dev.6 [skip ci]
semantic-release-bot Feb 3, 2024
b9241fa
docs(Security): Format badges
validcube Feb 3, 2024
3559477
fix: adjust padding
TheAabedKhan Feb 6, 2024
c498cff
chore(release): 1.19.0-dev.7 [skip ci]
semantic-release-bot Feb 6, 2024
f82c439
feat: Allow changing languages (#1488)
Ushie Feb 11, 2024
f5578b0
chore(i18n): Sync translations (#1671)
github-actions[bot] Feb 11, 2024
3436523
fix: Use correct title size for bottom sheet (#1687)
oSumAtrIX Feb 12, 2024
64c10b4
chore(release): 1.19.0-dev.9 [skip ci]
semantic-release-bot Feb 12, 2024
31a32eb
chore(i18n): Sync translations (#1685)
github-actions[bot] Feb 13, 2024
1aaeac1
chore: update dependencies
BenjaminHalko Feb 13, 2024
bdfeda2
chore(release): 1.19.0-dev.8 [skip ci]
semantic-release-bot Feb 12, 2024
3b0fed5
revert: WillPopScope migration
validcube Feb 15, 2024
3ee29c2
chore(release): 1.19.0-dev.10 [skip ci]
semantic-release-bot Feb 15, 2024
f57898a
build: Bump Gradle to v8.6
validcube Feb 15, 2024
0ec6897
chore: Update .gitignore
validcube Feb 15, 2024
5a24911
refactor: Check-in pubspec.lock
validcube Feb 15, 2024
b754a04
build: Enable ProGuard (#1650)
kitadai31 Feb 15, 2024
e0c750d
ci(build): Upload build artifact
validcube Feb 15, 2024
b2119ce
feat: Improve consistency on language selector
validcube Feb 15, 2024
953209c
chore(release): 1.19.0-dev.11 [skip ci]
semantic-release-bot Feb 15, 2024
bfe59ea
docs: Add a tip for the prompt to select an APK from storage
oSumAtrIX Feb 15, 2024
933c719
docs: Use consistent wording
oSumAtrIX Feb 15, 2024
f5ba84d
docs: Adjust footnote regarding obtaining APK files
oSumAtrIX Feb 15, 2024
3b58d22
refactor: PopScope Migration (#1674)
validcube Feb 18, 2024
25d53ce
ci: Dependabot (#1692)
BenjaminHalko Feb 18, 2024
f2e7071
chore(release): 1.19.0-dev.12 [skip ci]
semantic-release-bot Feb 18, 2024
8a41617
chore: Upgrade dependencies (#1693)
BenjaminHalko Feb 18, 2024
0443c8c
chore(i18n): Sync translations (#1688)
github-actions[bot] Feb 18, 2024
ce5088a
chore(release): 1.19.0-dev.13 [skip ci]
semantic-release-bot Feb 18, 2024
f89c742
feat: Add a toggle for alternative sources (#1686)
TheAabedKhan Feb 19, 2024
244d078
chore(release): 1.19.0-dev.14 [skip ci]
semantic-release-bot Feb 19, 2024
82d6e3f
ci(Release): Remove unnecessary upload (#1695)
BenjaminHalko Feb 19, 2024
d068955
docs: Switch order of note and tip [skip ci]
oSumAtrIX Feb 25, 2024
d4b15ae
fix: Specify that dark theme is dark (#1699)
BenjaminHalko Feb 25, 2024
f774780
chore(i18n): Sync translations (#1694)
github-actions[bot] Feb 25, 2024
28d6ab6
chore(release): 1.19.0-dev.15 [skip ci]
semantic-release-bot Feb 25, 2024
3e696d6
feat: Hide the Install button during installation (#1633)
erayerdin Feb 25, 2024
c72d10a
fix: Show version label correctly
oSumAtrIX Feb 25, 2024
f4dea6e
chore(release): 1.19.0-dev.16 [skip ci]
semantic-release-bot Feb 25, 2024
6d866d4
feat: Improve language distinguishness and resolve language-specific …
Ushie Feb 26, 2024
6d6fae1
chore(release): 1.19.0-dev.17 [skip ci]
semantic-release-bot Feb 26, 2024
d414a91
ci: Match changelog format of other ReVanced repos (#1705)
BenjaminHalko Feb 26, 2024
c170392
ci(Release): Use ReVanced account instead of semantic-release
validcube Mar 4, 2024
52e1020
chore(Dependency): Switch language_code back to Upstream version
validcube Mar 4, 2024
e76418d
chore: Sync translations (#1701)
github-actions[bot] Mar 4, 2024
6dee3aa
docs: Fix consistency issues with other repositories (#1707)
oSumAtrIX Mar 4, 2024
10bae69
build(Needs bump): Bump dependencies (#1717)
oSumAtrIX Mar 4, 2024
2e1de94
chore: Fix builds
oSumAtrIX Mar 4, 2024
02722fc
chore(release): 1.19.0-dev.18 [skip ci]
semantic-release-bot Mar 4, 2024
1200360
fix: Fix patched APKs exports after installation
oSumAtrIX Mar 4, 2024
2d7026a
feat: Use more appropriate progress values
oSumAtrIX Mar 4, 2024
4fc913e
chore(release): 1.19.0-dev.19 [skip ci]
semantic-release-bot Mar 4, 2024
c5e04cc
build: Bump dependencies
oSumAtrIX Mar 4, 2024
6ec6546
fix: Bump dependencies to support BCS keystore
oSumAtrIX Mar 4, 2024
4ca7b8a
chore(release): 1.19.0-dev.20 [skip ci]
semantic-release-bot Mar 4, 2024
aa0575a
feat: Display current app language at the top of the list
Ushie Mar 5, 2024
bc83a39
chore(release): 1.19.0-dev.21 [skip ci]
semantic-release-bot Mar 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/services/manager_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ class ManagerAPI {
);
}

Future<void> reAssessSavedApps() async {
Future<void> rePatchedSavedApps() async {
final List<PatchedApplication> patchedApps = getPatchedApps();

// Remove apps that are not installed anymore.
Expand Down
8 changes: 6 additions & 2 deletions lib/services/root_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,12 @@ class RootAPI {
);
final String mountScript = '''
#!/system/bin/sh
MAGISKTMP="\$(magisk --path)" || MAGISKTMP=/sbin
# Mount using Magisk mirror, if available.
MAGISKTMP="\$( magisk --path )" || MAGISKTMP=/sbin
MIRROR="\$MAGISKTMP/.magisk/mirror"
if [ ! -f \$MIRROR ]; then
MIRROR=""
fi

until [ "\$(getprop sys.boot_completed)" = 1 ]; do sleep 3; done
until [ -d "/sdcard/Android" ]; do sleep 1; done
Expand All @@ -171,7 +175,7 @@ class RootAPI {
}

Future<void> installPatchedApk(
String packageName, String patchedFilePath) async {
String packageName, String patchedFilePath,) async {
final String newPatchedFilePath = '$_revancedDirPath/$packageName/base.apk';
await Root.exec(
cmd: '''
Expand Down
11 changes: 8 additions & 3 deletions lib/ui/views/home/home_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,16 @@ class HomeViewModel extends BaseViewModel {
File? downloadedApk;

Future<void> initialize(BuildContext context) async {
_latestManagerVersion = await _managerAPI.getLatestManagerVersion();
_managerAPI.rePatchedSavedApps().then((_) => _getPatchedApps());

if (!_managerAPI.getPatchesConsent()) {
await showPatchesConsent(context);
}

_latestManagerVersion = await _managerAPI.getLatestManagerVersion();

await _patcherAPI.initialize();

await flutterLocalNotificationsPlugin.initialize(
const InitializationSettings(
android: AndroidInitializationSettings('ic_notification'),
Expand All @@ -63,11 +68,13 @@ class HomeViewModel extends BaseViewModel {
.resolvePlatformSpecificImplementation<
AndroidFlutterLocalNotificationsPlugin>()
?.requestNotificationsPermission();

final bool isConnected =
await Connectivity().checkConnectivity() != ConnectivityResult.none;
if (!isConnected) {
_toast.showBottom('homeView.noConnection');
}

final NotificationAppLaunchDetails? notificationAppLaunchDetails =
await flutterLocalNotificationsPlugin.getNotificationAppLaunchDetails();
if (notificationAppLaunchDetails?.didNotificationLaunchApp ?? false) {
Expand All @@ -79,8 +86,6 @@ class HomeViewModel extends BaseViewModel {
_toast.showBottom('homeView.errorDownloadMessage');
}
}

_managerAPI.reAssessSavedApps().then((_) => _getPatchedApps());
}

void navigateToAppInfo(PatchedApplication app) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:flutter_i18n/flutter_i18n.dart';
import 'package:revanced_manager/app/app.locator.dart';
import 'package:revanced_manager/services/manager_api.dart';
import 'package:revanced_manager/services/toast.dart';
import 'package:revanced_manager/ui/widgets/settingsView/custom_text_field.dart';
import 'package:revanced_manager/ui/widgets/settingsView/settings_tile_dialog.dart';
import 'package:stacked/stacked.dart';

Expand Down Expand Up @@ -35,15 +34,19 @@ class SManageApiUrl extends BaseViewModel {
content: SingleChildScrollView(
child: Column(
children: <Widget>[
CustomTextField(
leadingIcon: Icon(
Icons.api_outlined,
color: Theme.of(context).colorScheme.secondary,
),
inputController: _apiUrlController,
label: I18nText('settingsView.selectApiURL'),
hint: apiUrl,
TextField(
controller: _apiUrlController,
autocorrect: false,
onChanged: (value) => notifyListeners(),
decoration: InputDecoration(
icon: Icon(
Icons.api_outlined,
color: Theme.of(context).colorScheme.onSurfaceVariant,
),
border: const OutlineInputBorder(),
labelText: I18nText('settingsView.selectApiURL').toString(),
hintText: apiUrl,
),
),
],
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'package:flutter/material.dart';
import 'package:flutter_i18n/flutter_i18n.dart';
import 'package:revanced_manager/app/app.locator.dart';
import 'package:revanced_manager/services/manager_api.dart';
import 'package:revanced_manager/ui/widgets/settingsView/custom_text_field.dart';
import 'package:revanced_manager/ui/widgets/settingsView/settings_tile_dialog.dart';
import 'package:stacked/stacked.dart';

Expand Down Expand Up @@ -35,11 +34,17 @@ class SManageKeystorePassword extends BaseViewModel {
content: SingleChildScrollView(
child: Column(
children: <Widget>[
CustomTextField(
inputController: _keystorePasswordController,
label: I18nText('settingsView.selectKeystorePassword'),
hint: '',
TextField(
controller: _keystorePasswordController,
autocorrect: false,
obscureText: true,
onChanged: (value) => notifyListeners(),
decoration: InputDecoration(
border: const OutlineInputBorder(),
labelText: I18nText(
'settingsView.selectKeystorePassword',
).toString(),
),
),
],
),
Expand Down
123 changes: 80 additions & 43 deletions lib/ui/views/settings/settingsFragment/settings_manage_sources.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:flutter_i18n/flutter_i18n.dart';
import 'package:revanced_manager/app/app.locator.dart';
import 'package:revanced_manager/services/manager_api.dart';
import 'package:revanced_manager/services/toast.dart';
import 'package:revanced_manager/ui/widgets/settingsView/custom_text_field.dart';
import 'package:revanced_manager/ui/widgets/settingsView/settings_tile_dialog.dart';
import 'package:stacked/stacked.dart';

Expand Down Expand Up @@ -45,59 +44,97 @@ class SManageSources extends BaseViewModel {
content: SingleChildScrollView(
child: Column(
children: <Widget>[
CustomTextField(
leadingIcon: const Icon(
Icons.extension_outlined,
color: Colors.transparent,
),
inputController: _hostSourceController,
label: I18nText('settingsView.hostRepositoryLabel'),
hint: hostRepository,
/*
API for accessing the specified repositories
If default is used, will use the ReVanced API
*/
TextField(
controller: _hostSourceController,
autocorrect: false,
onChanged: (value) => notifyListeners(),
),
const SizedBox(height: 20),
CustomTextField(
leadingIcon: Icon(
Icons.extension_outlined,
color: Theme.of(context).colorScheme.secondary,
decoration: InputDecoration(
icon: Icon(
Icons.rocket_launch_outlined,
color: Theme.of(context).colorScheme.onSurfaceVariant,
),
border: const OutlineInputBorder(),
labelText: I18nText(
'settingsView.hostRepositoryLabel',
).toString(),
hintText: hostRepository,
),
inputController: _orgPatSourceController,
label: I18nText('settingsView.orgPatchesLabel'),
hint: patchesRepo.split('/')[0],
onChanged: (value) => notifyListeners(),
),
const SizedBox(height: 8),
CustomTextField(
leadingIcon: const Icon(
Icons.extension_outlined,
color: Colors.transparent,
),
inputController: _patSourceController,
label: I18nText('settingsView.sourcesPatchesLabel'),
hint: patchesRepo.split('/')[1],
// Patches owner's name
TextField(
controller: _orgPatSourceController,
autocorrect: false,
onChanged: (value) => notifyListeners(),
),
const SizedBox(height: 20),
CustomTextField(
leadingIcon: Icon(
Icons.merge_outlined,
color: Theme.of(context).colorScheme.secondary,
decoration: InputDecoration(
icon: Icon(
Icons.extension_outlined,
color: Theme.of(context).colorScheme.onSurfaceVariant,
),
border: const OutlineInputBorder(),
labelText: I18nText(
'settingsView.orgPatchesLabel',
).toString(),
hintText: patchesRepo.split('/')[0],
),
inputController: _orgIntSourceController,
label: I18nText('settingsView.orgIntegrationsLabel'),
hint: integrationsRepo.split('/')[0],
),
const SizedBox(height: 8),
// Patches repository's name
TextField(
controller: _patSourceController,
autocorrect: false,
onChanged: (value) => notifyListeners(),
decoration: InputDecoration(
icon: const Icon(
Icons.extension_outlined,
color: Colors.transparent,
),
border: const OutlineInputBorder(),
labelText: I18nText(
'settingsView.sourcesPatchesLabel',
).toString(),
hintText: patchesRepo.split('/')[1],
),
),
const SizedBox(height: 8),
CustomTextField(
leadingIcon: const Icon(
Icons.merge_outlined,
color: Colors.transparent,
// Integrations owner's name
TextField(
controller: _orgIntSourceController,
autocorrect: false,
onChanged: (value) => notifyListeners(),
decoration: InputDecoration(
icon: Icon(
Icons.merge_outlined,
color: Theme.of(context).colorScheme.onSurfaceVariant,
),
border: const OutlineInputBorder(),
labelText: I18nText(
'settingsView.orgIntegrationsLabel',
).toString(),
hintText: integrationsRepo.split('/')[0],
),
inputController: _intSourceController,
label: I18nText('settingsView.sourcesIntegrationsLabel'),
hint: integrationsRepo.split('/')[1],
),
const SizedBox(height: 8),
// Integrations repository's name
TextField(
controller: _intSourceController,
autocorrect: false,
onChanged: (value) => notifyListeners(),
decoration: InputDecoration(
icon: const Icon(
Icons.merge_outlined,
color: Colors.transparent,
),
border: const OutlineInputBorder(),
labelText: I18nText(
'settingsView.sourcesIntegrationsLabel',
).toString(),
hintText: integrationsRepo.split('/')[1],
),
),
const SizedBox(height: 20),
I18nText('settingsView.sourcesUpdateNote'),
Expand Down
63 changes: 0 additions & 63 deletions lib/ui/widgets/settingsView/custom_switch.dart

This file was deleted.

32 changes: 0 additions & 32 deletions lib/ui/widgets/settingsView/custom_switch_tile.dart

This file was deleted.

Loading