Skip to content

Commit

Permalink
prepare v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TesteurManiak committed Jun 9, 2022
1 parent e295780 commit 332ee95
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 24 deletions.
5 changes: 5 additions & 0 deletions flutter_file_saver/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.6.0

* Upgraded `flutter_file_manager_android` to `1.2.0+1` to save file using the native dialog
* Updated documentation

## 0.5.1

* Upgraded `flutter_file_manager_android` to `1.1.1` to save file in download folder
Expand Down
30 changes: 9 additions & 21 deletions flutter_file_saver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,17 @@ dependencies:
flutter_file_saver: any
```

### Android (Only for Android 10 and above)

In your `android/app/src/main/AndroidManifest.xml`, add:
* `WRITE_EXTERNAL_STORAGE`,
* `MANAGE_EXTERNAL_STORAGE`,
* `android:requestLegacyExternalStorage="true"`

```xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.my_app">
<!-- ... -->

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />

<application android:requestLegacyExternalStorage="true" android:label="MyApp" android:name="${applicationName}">
<!-- ... -->
</application>
</manifest>
### Android

```gradle
android {
defaultConfig {
minSdkVersion 19
}
}
```

[Check example](https://github.com/TesteurManiak/flutter_file_saver/blob/main/flutter_file_saver/example/android/app/src/main/AndroidManifest.xml)

**Permission request is managed by the package.**
[Check example](https://github.com/TesteurManiak/flutter_file_saver/blob/main/flutter_file_saver/example/android/app/build.gradle)

### iOS

Expand Down
2 changes: 1 addition & 1 deletion flutter_file_saver/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ android {
applicationId "com.example.example"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion flutter.minSdkVersion
minSdkVersion 19
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down
2 changes: 1 addition & 1 deletion flutter_file_saver/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ packages:
name: flutter_file_manager_android
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.2.0+1"
flutter_file_manager_ios:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion flutter_file_saver/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ environment:
dependencies:
flutter:
sdk: flutter
flutter_file_manager_android: ^1.2.0
flutter_file_manager_android: ^1.2.0+1
flutter_file_manager_ios: ^1.1.0
flutter_file_manager_macos: ^1.1.0
flutter_file_manager_platform_interface: ^1.1.0
Expand Down

0 comments on commit 332ee95

Please sign in to comment.