diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ae2a29..de76319 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Changelog -## 3.0.0-dev.1 +## 3.1.0 + +- bump `wechat_assets_picker` to 9.2.2 & fix an issue with wechat_picker_library 1.0.3 +- exposes `pathNameBuilder` parameter to picker [#53](https://github.com/LeGoffMael/insta_assets_picker/pull/53) +- fix permission issue on Android [#52](https://github.com/LeGoffMael/insta_assets_picker/pull/52) +- fix android APK build error [#51](https://github.com/LeGoffMael/insta_assets_picker/pull/51) + +## 3.0.0 ### Features diff --git a/MIGRATION_GUIDE.md b/MIGRATION_GUIDE.md index 6835f06..c4ba16f 100644 --- a/MIGRATION_GUIDE.md +++ b/MIGRATION_GUIDE.md @@ -2,7 +2,7 @@ This document gathered all breaking changes and migrations requirement between major versions. -## 3.0.0-dev.1 +## 3.0.0 ### InstaAssetPickerConfig diff --git a/README.md b/README.md index d76f8f3..b2b233b 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ package to handle the picker and a custom version of [image_crop](https://pub.de Add this package to the `pubspec.yaml` ```yaml -insta_assets_picker: ^3.0.0-dev.1 +insta_assets_picker: ^3.1.0 ``` ### ‼️ DO NOT SKIP THIS PART diff --git a/example/ios/Runner/AppDelegate.swift b/example/ios/Runner/AppDelegate.swift index 70693e4..b636303 100644 --- a/example/ios/Runner/AppDelegate.swift +++ b/example/ios/Runner/AppDelegate.swift @@ -1,7 +1,7 @@ import UIKit import Flutter -@UIApplicationMain +@main @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, diff --git a/example/pubspec.lock b/example/pubspec.lock index dbdd7e9..e108e65 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -193,10 +193,10 @@ packages: dependency: transitive description: name: fraction - sha256: "09e9504c9177bbd77df56e5d147abfbb3b43360e64bf61510059c14d6a82d524" + sha256: ac0d9904bb8211eb28606bdf623ff9f222c53240d8e9b927a07c149d356eddc2 url: "https://pub.dev" source: hosted - version: "5.0.2" + version: "5.0.3" html: dependency: transitive description: @@ -243,7 +243,7 @@ packages: path: ".." relative: true source: path - version: "3.0.0-dev.1" + version: "3.1.0" intl: dependency: transitive description: diff --git a/example/pubspec.yaml b/example/pubspec.yaml index ff9b653..faf9190 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -1,7 +1,7 @@ name: insta_assets_picker_demo description: The demo project for the insta_assets_picker package. publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 3.0.0-dev.1 +version: 3.1.0 environment: sdk: ^3.2.0 diff --git a/lib/src/assets_picker.dart b/lib/src/assets_picker.dart index 43df632..932ac35 100644 --- a/lib/src/assets_picker.dart +++ b/lib/src/assets_picker.dart @@ -395,6 +395,12 @@ class InstaAssetPicker { return AssetPicker.pickAssetsWithDelegate( context, delegate: builder, + permissionRequestOption: PermissionRequestOption( + androidPermission: AndroidPermission( + type: requestType, + mediaLocation: false, + ), + ), useRootNavigator: useRootNavigator, pageRouteBuilder: pageRouteBuilder, ); diff --git a/lib/src/widget/crop_viewer.dart b/lib/src/widget/crop_viewer.dart index 3fb5b58..596c562 100644 --- a/lib/src/widget/crop_viewer.dart +++ b/lib/src/widget/crop_viewer.dart @@ -220,6 +220,7 @@ class _InnerCropViewState extends State LocallyAvailableBuilder( key: ValueKey(widget.asset.id), asset: widget.asset, + isOriginal: true, builder: (BuildContext context, AssetEntity asset) => insta_crop_view.Crop( key: widget.cropKey, diff --git a/lib/src/widget/video_player_mixin.dart b/lib/src/widget/video_player_mixin.dart index a39e85a..3485cd4 100644 --- a/lib/src/widget/video_player_mixin.dart +++ b/lib/src/widget/video_player_mixin.dart @@ -155,6 +155,7 @@ mixin InstaAssetVideoPlayerMixin LocallyAvailableBuilder( key: ValueKey(widget.asset.id), asset: widget.asset, + isOriginal: false, builder: builder, isOriginal: true, ); diff --git a/pubspec.yaml b/pubspec.yaml index be720fb..98299a3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: insta_assets_picker description: An image (and videos) picker similar with Instagram, supports multi picking, crop and aspect ratio. -version: 3.0.0-dev.1 +version: 3.1.0 repository: https://github.com/LeGoffMael/insta_assets_picker topics: - picker @@ -18,7 +18,7 @@ dependencies: sdk: flutter insta_assets_crop: ^0.1.0 # custom package from image_crop - fraction: ^5.0.2 # to show crop ratio in crop view + fraction: ^5.0.3 # to show crop ratio in crop view wechat_assets_picker: ^9.4.0