Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Gperez88 authored Nov 13, 2024
2 parents 5bbc362 + 4229d1f commit e32f59d
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 10 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import UIKit
import Flutter

@UIApplicationMain
@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
Expand Down
6 changes: 3 additions & 3 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -243,7 +243,7 @@ packages:
path: ".."
relative: true
source: path
version: "3.0.0-dev.1"
version: "3.1.0"
intl:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions lib/src/assets_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,12 @@ class InstaAssetPicker {
return AssetPicker.pickAssetsWithDelegate(
context,
delegate: builder,
permissionRequestOption: PermissionRequestOption(
androidPermission: AndroidPermission(
type: requestType,
mediaLocation: false,
),
),
useRootNavigator: useRootNavigator,
pageRouteBuilder: pageRouteBuilder,
);
Expand Down
1 change: 1 addition & 0 deletions lib/src/widget/crop_viewer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ class _InnerCropViewState extends State<InnerCropView>
LocallyAvailableBuilder(
key: ValueKey<String>(widget.asset.id),
asset: widget.asset,
isOriginal: true,
builder: (BuildContext context, AssetEntity asset) =>
insta_crop_view.Crop(
key: widget.cropKey,
Expand Down
1 change: 1 addition & 0 deletions lib/src/widget/video_player_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ mixin InstaAssetVideoPlayerMixin<T extends InstaAssetVideoPlayerStatefulWidget>
LocallyAvailableBuilder(
key: ValueKey<String>(widget.asset.id),
asset: widget.asset,
isOriginal: false,
builder: builder,
isOriginal: true,
);
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand Down

0 comments on commit e32f59d

Please sign in to comment.