Skip to content

Commit

Permalink
Fix errors and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mabe committed Jun 29, 2024
1 parent 6d08a9b commit d4a39b8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.2
1.4.0
2 changes: 1 addition & 1 deletion ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>11.0</string>
<string>12.0</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 2 additions & 0 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
</array>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>NSPhotoLibraryUsageDescription</key>
<string>Photo Library Access Warning due to use of Filepicker package.</string>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
Expand Down
4 changes: 3 additions & 1 deletion lib/import_export/local_file_util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class LocalFileUtil {
try {
String? outputFile = await FilePicker.platform.saveFile(
fileName: fileTitle,
allowedExtensions: ["json"],
allowedExtensions: ["json", "txt"],
type: FileType.custom,
bytes: utf8.encode(jsonEncode(workoutsToExport)),
);
Expand All @@ -108,6 +108,8 @@ class LocalFileUtil {
File(outputFile)
.writeAsBytes(utf8.encode(jsonEncode(workoutsToExport)));
}

return true;
} on Exception catch (e) {
logger.e("Error saving file to device: $e");
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.

version: 1.3.2+24
version: 1.4.0+25

environment:
sdk: '>=3.3.0 <4.0.0'
Expand Down

0 comments on commit d4a39b8

Please sign in to comment.