From 24832f07fa4e3aad017b0fbc9ae2d3d5028ea284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Le=20Goff?= Date: Fri, 20 Sep 2024 10:14:33 +0900 Subject: [PATCH 1/6] =?UTF-8?q?=F0=9F=94=96=20release=203.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- MIGRATION_GUIDE.md | 2 +- README.md | 2 +- example/pubspec.lock | 26 +++++++++++++------------- example/pubspec.yaml | 2 +- pubspec.yaml | 2 +- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ae2a29..573c83b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## 3.0.0-dev.1 +## 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..221de29 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.0.0 ``` ### ‼️ DO NOT SKIP THIS PART diff --git a/example/pubspec.lock b/example/pubspec.lock index 2b026c5..221d461 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -243,7 +243,7 @@ packages: path: ".." relative: true source: path - version: "3.0.0-dev.1" + version: "3.0.0" intl: dependency: transitive description: @@ -264,18 +264,18 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" + sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" url: "https://pub.dev" source: hosted - version: "10.0.4" + version: "10.0.5" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" + sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" url: "https://pub.dev" source: hosted - version: "3.0.3" + version: "3.0.5" leak_tracker_testing: dependency: transitive description: @@ -312,18 +312,18 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.12.0" + version: "1.15.0" mime: dependency: "direct main" description: @@ -509,10 +509,10 @@ packages: dependency: transitive description: name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" + sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" url: "https://pub.dev" source: hosted - version: "0.7.0" + version: "0.7.2" typed_data: dependency: transitive description: @@ -573,10 +573,10 @@ packages: dependency: transitive description: name: vm_service - sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" + sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" url: "https://pub.dev" source: hosted - version: "14.2.1" + version: "14.2.5" web: dependency: transitive description: diff --git a/example/pubspec.yaml b/example/pubspec.yaml index ff9b653..31e0c83 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.0.0 environment: sdk: ^3.2.0 diff --git a/pubspec.yaml b/pubspec.yaml index 0890c2d..efa4e33 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.0.0 repository: https://github.com/LeGoffMael/insta_assets_picker topics: - picker From 6d851073d5ed574e6809cb0353513cb15836ba18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Le=20Goff?= Date: Fri, 20 Sep 2024 11:27:31 +0900 Subject: [PATCH 2/6] =?UTF-8?q?=F0=9F=9A=80=20support=20picker=209.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/ios/Runner/AppDelegate.swift | 2 +- example/pubspec.lock | 12 ++++++------ lib/src/widget/crop_viewer.dart | 1 + lib/src/widget/video_player_mixin.dart | 1 + pubspec.yaml | 6 +++--- 5 files changed, 12 insertions(+), 10 deletions(-) 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 221d461..67a4356 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: @@ -589,10 +589,10 @@ packages: dependency: transitive description: name: wechat_assets_picker - sha256: f4b3eb0662f9a9f0453a591f056f5f63244586b772b62b79730a54e501b02671 + sha256: aea82a6b523e118197187c6371301de5d15ce5572f353b575b5dcdeb2d17d44a url: "https://pub.dev" source: hosted - version: "9.1.0" + version: "9.2.2" wechat_camera_picker: dependency: "direct main" description: @@ -605,10 +605,10 @@ packages: dependency: transitive description: name: wechat_picker_library - sha256: a47cdb227955f64494fe55bc42d91a76bfc626a446075d4284a070f1e1297b4e + sha256: "886cdf80a708fa955c2d7e6a2349c9b4519b322cd941e8c7334512c25294b1b1" url: "https://pub.dev" source: hosted - version: "1.0.0" + version: "1.0.2" win32: dependency: transitive description: diff --git a/lib/src/widget/crop_viewer.dart b/lib/src/widget/crop_viewer.dart index a9db8f7..97dfce5 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 898e5ab..d9a1a4d 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, ); diff --git a/pubspec.yaml b/pubspec.yaml index efa4e33..af32f7a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -18,13 +18,13 @@ dependencies: sdk: flutter insta_assets_crop: ^0.1.0-dev.2 # 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.1.0 + wechat_assets_picker: ^9.2.2 # match with wechat_assets_picker package photo_manager: ^3.0.0 - wechat_picker_library: ^1.0.0 + wechat_picker_library: ^1.0.2 extended_image: ^8.2.0 provider: ^6.0.5 video_player: ^2.7.0 From 747f6422743ef9be52205494ab9292c4c1ffc335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Le=20Goff?= Date: Fri, 20 Sep 2024 11:37:10 +0900 Subject: [PATCH 3/6] =?UTF-8?q?=F0=9F=90=9B=20fix=20android=20build=20fail?= =?UTF-8?q?ure=20on=20flutter=203.24=20#51?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example/pubspec.lock b/example/pubspec.lock index 67a4356..5e84882 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -233,10 +233,10 @@ packages: dependency: transitive description: name: insta_assets_crop - sha256: "1ad0627d0d79e695063be940ba9df34699ddbab2d80ccdddbf00666dda0022c5" + sha256: "0939bd618bdf6b7d6875411129017bf004b0e004f9bd7274c893374cf9b0aa9d" url: "https://pub.dev" source: hosted - version: "0.1.0-dev.2" + version: "0.1.0" insta_assets_picker: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index af32f7a..6f57bd1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -17,7 +17,7 @@ dependencies: flutter: sdk: flutter - insta_assets_crop: ^0.1.0-dev.2 # custom package from image_crop + insta_assets_crop: ^0.1.0 # custom package from image_crop fraction: ^5.0.3 # to show crop ratio in crop view wechat_assets_picker: ^9.2.2 From 1b0ef5ccadd4642f3abc58c9982a4ed9abff7e7c Mon Sep 17 00:00:00 2001 From: Juarez Franco Date: Thu, 19 Sep 2024 23:43:12 -0300 Subject: [PATCH 4/6] fix permission android by request type (#52) --- lib/src/assets_picker.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/src/assets_picker.dart b/lib/src/assets_picker.dart index 5728622..4574659 100644 --- a/lib/src/assets_picker.dart +++ b/lib/src/assets_picker.dart @@ -391,6 +391,12 @@ class InstaAssetPicker { return AssetPicker.pickAssetsWithDelegate( context, delegate: builder, + permissionRequestOption: PermissionRequestOption( + androidPermission: AndroidPermission( + type: requestType, + mediaLocation: false, + ), + ), useRootNavigator: useRootNavigator, pageRouteBuilder: pageRouteBuilder, ); From a20653245e3030f0f38f1b120ea9833b8fdcd498 Mon Sep 17 00:00:00 2001 From: Gabriel Perez Date: Thu, 19 Sep 2024 22:50:58 -0400 Subject: [PATCH 5/6] =?UTF-8?q?=E2=9C=A8=20exposes=20`pathNameBuilder`=20(?= =?UTF-8?q?#53)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add support to the pathNameBuilder method of WebChat * fix path name builder in path entity selector * Delete example/devtools_options.yaml --------- Co-authored-by: Gabriel Perez Co-authored-by: Maël --- lib/src/assets_picker.dart | 4 ++++ lib/src/widget/insta_asset_picker_delegate.dart | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/src/assets_picker.dart b/lib/src/assets_picker.dart index 4574659..932ac35 100644 --- a/lib/src/assets_picker.dart +++ b/lib/src/assets_picker.dart @@ -48,6 +48,7 @@ class InstaAssetPickerConfig { this.textDelegate, this.gridThumbnailSize = defaultAssetGridPreviewSize, this.previewThumbnailSize, + this.pathNameBuilder, /// [InstaAssetPickerBuilder] config @@ -102,6 +103,9 @@ class InstaAssetPickerConfig { /// Preview thumbnail size in the crop viewer. final ThumbnailSize? previewThumbnailSize; + /// {@macro wechat_assets_picker.PathNameBuilder} + final PathNameBuilder? pathNameBuilder; + /* [InstaAssetPickerBuilder] config */ /// Specifies the text title in the picker [AppBar]. diff --git a/lib/src/widget/insta_asset_picker_delegate.dart b/lib/src/widget/insta_asset_picker_delegate.dart index dd4718e..e11e18b 100644 --- a/lib/src/widget/insta_asset_picker_delegate.dart +++ b/lib/src/widget/insta_asset_picker_delegate.dart @@ -59,6 +59,7 @@ class InstaAssetPickerBuilder extends DefaultAssetPickerBuilderDelegate { textDelegate: config.textDelegate, gridThumbnailSize: config.gridThumbnailSize, previewThumbnailSize: config.previewThumbnailSize, + pathNameBuilder: config.pathNameBuilder, shouldRevertGrid: false, ); @@ -325,7 +326,7 @@ class InstaAssetPickerBuilder extends DefaultAssetPickerBuilderDelegate { child: Text( isPermissionLimited && p.path.isAll ? textDelegate.accessiblePathName - : p.path.name, + : pathNameBuilder?.call(p.path) ?? p.path.name, style: theme.textTheme.bodyLarge?.copyWith( fontSize: 16, fontWeight: FontWeight.bold, From 4229d1fff42a04922c37d12f5305dc1210881471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Le=20Goff?= Date: Fri, 20 Sep 2024 12:10:47 +0900 Subject: [PATCH 6/6] =?UTF-8?q?=F0=9F=94=96=20release=203.1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 7 +++++++ README.md | 2 +- example/pubspec.lock | 2 +- example/pubspec.yaml | 2 +- pubspec.yaml | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 573c83b..de76319 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 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/README.md b/README.md index 221de29..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 +insta_assets_picker: ^3.1.0 ``` ### ‼️ DO NOT SKIP THIS PART diff --git a/example/pubspec.lock b/example/pubspec.lock index 5e84882..2f9470c 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -243,7 +243,7 @@ packages: path: ".." relative: true source: path - version: "3.0.0" + version: "3.1.0" intl: dependency: transitive description: diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 31e0c83..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 +version: 3.1.0 environment: sdk: ^3.2.0 diff --git a/pubspec.yaml b/pubspec.yaml index 6f57bd1..05f0838 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 +version: 3.1.0 repository: https://github.com/LeGoffMael/insta_assets_picker topics: - picker