Skip to content

Commit

Permalink
Fix iOS export
Browse files Browse the repository at this point in the history
  • Loading branch information
FauconSpartiate committed Jan 31, 2023
1 parent 3c9c7c6 commit ea85406
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/Misc/storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,13 @@ void exportData() async {

String extension = ".json";

DeviceInfoPlugin deviceInfo = DeviceInfoPlugin();
AndroidDeviceInfo androidInfo = await deviceInfo.androidInfo;
if (Platform.isAndroid) {
DeviceInfoPlugin deviceInfo = DeviceInfoPlugin();
AndroidDeviceInfo androidInfo = await deviceInfo.androidInfo;

if (Platform.isAndroid && androidInfo.version.sdkInt >= 29) {
extension = "";
if (androidInfo.version.sdkInt >= 29) {
extension = "";
}
}

String fileName = "graded-export-$formatted$extension";
Expand Down

0 comments on commit ea85406

Please sign in to comment.