mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-19 05:00:21 +02:00
Fix export encoding (#887)
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
Reference in New Issue
Block a user