Skip to content

Commit

Permalink
fix: Fix multiple APK shares
Browse files Browse the repository at this point in the history
  • Loading branch information
ponces committed Sep 19, 2022
1 parent 2f14746 commit 9405334
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/services/patcher_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,9 @@ class PatcherAPI {
String prefix = appName.toLowerCase().replaceAll(' ', '-');
String newName = '$prefix-revanced_v$version.apk';
int lastSeparator = _outFile!.path.lastIndexOf('/');
File share = _outFile!.renameSync(
_outFile!.path.substring(0, lastSeparator + 1) + newName,
);
ShareExtend.share(share.path, 'file');
String newPath = _outFile!.path.substring(0, lastSeparator + 1) + newName;
File shareFile = _outFile!.copySync(newPath);
ShareExtend.share(shareFile.path, 'file');
}
}

Expand Down

0 comments on commit 9405334

Please sign in to comment.