fix: Export patcher logs as a file instead of text

This commit is contained in:
Alberto Ponces
2022-09-14 10:40:45 +01:00
parent 698f1ac383
commit 855b8373e4
3 changed files with 15 additions and 4 deletions

View File

@ -235,7 +235,7 @@ class SettingsViewModel extends BaseViewModel {
.replaceAll(':', '')
.replaceAll('T', '')
.replaceAll('.', '');
File logcat = File('${logDir.path}/revanced-manager_$dateTime.log');
File logcat = File('${logDir.path}/revanced-manager_logcat_$dateTime.log');
String logs = await Logcat.execute();
logcat.writeAsStringSync(logs);
ShareExtend.share(logcat.path, 'file');