Fix export encoding (#887)

This commit is contained in:
Imran Remtulla
2023-09-13 21:01:39 -04:00
parent 17b5604f2a
commit acc6a780fa

View File

@@ -1132,7 +1132,8 @@ class AppsProvider with ChangeNotifier {
displayName:
'${tr('obtainiumExportHyphenatedLowercase')}-${DateTime.now().toIso8601String().replaceAll(':', '-')}${isAuto ? '-auto' : ''}.json',
mimeType: 'application/json',
content: jsonEncode(apps.values.map((e) => e.app.toJson()).toList()));
bytes: Uint8List.fromList(utf8.encode(
jsonEncode(apps.values.map((e) => e.app.toJson()).toList()))));
if (result == null) {
throw ObtainiumError(tr('unexpectedError'));
}