From 7df1ae7ed84a0e527b9fd7d67aa075f68d4e1b7a Mon Sep 17 00:00:00 2001 From: Dhruvan Bhalara <53393418+dhruvanbhalara@users.noreply.github.com> Date: Tue, 5 Dec 2023 09:19:16 +0530 Subject: [PATCH] feat: append patch version to the APK name while sharing/exporting (#1547) --- lib/services/patcher_api.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/services/patcher_api.dart b/lib/services/patcher_api.dart index 65f5ecc0..f79d02e5 100644 --- a/lib/services/patcher_api.dart +++ b/lib/services/patcher_api.dart @@ -237,7 +237,7 @@ 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'], @@ -269,8 +269,9 @@ void sharePatchedFile(String appName, String version) { } String _getFileName(String appName, String version) { + final String patchVersion = _managerAPI.patchesVersion!; final String prefix = appName.toLowerCase().replaceAll(' ', '-'); - final String newName = '$prefix-revanced_v$version.apk'; + final String newName = '$prefix-revanced_v$version-patches_$patchVersion.apk'; return newName; }