mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-10-22 02:13:47 +02:00
Fix export encoding (#887)
This commit is contained in:
@@ -1132,7 +1132,8 @@ class AppsProvider with ChangeNotifier {
|
|||||||
displayName:
|
displayName:
|
||||||
'${tr('obtainiumExportHyphenatedLowercase')}-${DateTime.now().toIso8601String().replaceAll(':', '-')}${isAuto ? '-auto' : ''}.json',
|
'${tr('obtainiumExportHyphenatedLowercase')}-${DateTime.now().toIso8601String().replaceAll(':', '-')}${isAuto ? '-auto' : ''}.json',
|
||||||
mimeType: 'application/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) {
|
if (result == null) {
|
||||||
throw ObtainiumError(tr('unexpectedError'));
|
throw ObtainiumError(tr('unexpectedError'));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user