From c9412a97d025cf39feac7e4e01a8be7d27a76372 Mon Sep 17 00:00:00 2001 From: Ax333l Date: Fri, 1 Dec 2023 13:22:38 +0100 Subject: [PATCH 1/3] build(dependency): Bump patcher to 19.1.0 --- android/app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 0b83c0af..36f9fb29 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -99,7 +99,7 @@ dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" // ReVanced - implementation "app.revanced:revanced-patcher:19.0.0" + implementation "app.revanced:revanced-patcher:19.1.0" // Signing & aligning implementation("org.bouncycastle:bcpkix-jdk15on:1.70") From de51fbd7bee532be020bb7bfe5c672742dd93ced Mon Sep 17 00:00:00 2001 From: Dhruvan Bhalara <53393418+dhruvanbhalara@users.noreply.github.com> Date: Fri, 1 Dec 2023 17:54:00 +0530 Subject: [PATCH 2/3] fix: Incorrect duplicate filename handling when exporting files (#1541) --- lib/services/patcher_api.dart | 5 +++-- lib/ui/views/settings/settings_viewmodel.dart | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/services/patcher_api.dart b/lib/services/patcher_api.dart index 4266a880..65f5ecc0 100644 --- a/lib/services/patcher_api.dart +++ b/lib/services/patcher_api.dart @@ -237,9 +237,10 @@ void exportPatchedFile(String appName, String version) { if (outFile != null) { final String newName = _getFileName(appName, version); FlutterFileDialog.saveFile( - params: SaveFileDialogParams( + params: SaveFileDialogParams( sourceFilePath: outFile!.path, fileName: newName, + mimeTypesFilter: ['application/vnd.android.package-archive'], ), ); } @@ -287,7 +288,7 @@ Future exportPatcherLog(String logs) async { final File log = File('${logDir.path}/$fileName'); log.writeAsStringSync(logs); FlutterFileDialog.saveFile( - params: SaveFileDialogParams( + params:SaveFileDialogParams( sourceFilePath: log.path, fileName: fileName, ), diff --git a/lib/ui/views/settings/settings_viewmodel.dart b/lib/ui/views/settings/settings_viewmodel.dart index d1dbfd7e..e51b1382 100644 --- a/lib/ui/views/settings/settings_viewmodel.dart +++ b/lib/ui/views/settings/settings_viewmodel.dart @@ -210,7 +210,7 @@ class SettingsViewModel extends BaseViewModel { final String dateTime = DateTime.now().toString().replaceAll(' ', '_').split('.').first; await FlutterFileDialog.saveFile( - params: SaveFileDialogParams( + params: SaveFileDialogParams( sourceFilePath: outFile.path, fileName: 'selected_patches_$dateTime.json', ), @@ -261,7 +261,7 @@ class SettingsViewModel extends BaseViewModel { final String dateTime = DateTime.now().toString().replaceAll(' ', '_').split('.').first; await FlutterFileDialog.saveFile( - params: SaveFileDialogParams( + params: SaveFileDialogParams( sourceFilePath: outFile.path, fileName: 'keystore_$dateTime.keystore', ), From b1fb9dd7d3a28ad5fbe1b83581274f4f614b194a Mon Sep 17 00:00:00 2001 From: Ushie Date: Sat, 2 Dec 2023 03:44:51 +0300 Subject: [PATCH 3/3] build: Bump version to `v1.17.1` --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index b10e3400..b3f701d6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ homepage: https://github.com/revanced/revanced-manager publish_to: 'none' -version: 1.17.0+101700000 +version: 1.17.1+101700100 environment: sdk: '>=3.0.0 <4.0.0'