This repository was archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[image_picker] add requestFullMetadata for iOS (optional permissions) - iOS changes #5713
Merged
auto-submit
merged 18 commits into
flutter:main
from
PiotrMitkowski:ios-optional-permissions-ios-changes
Aug 31, 2022
Merged
Changes from 15 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
c705774
Moved iOS specific changes to a separate branch
PiotrMitkowski bf73c73
Fixed line formatting
PiotrMitkowski d48e642
Merge branch 'main' of github.com:flutter/plugins into ios-optional-p…
PiotrMitkowski 3b3435f
PR remarks
PiotrMitkowski 420a4c4
PR remarks
PiotrMitkowski ca15f9e
Merge branch 'main' of github.com:flutter/plugins into ios-optional-p…
PiotrMitkowski dff7042
Merge branch 'main' of github.com:flutter/plugins into ios-optional-p…
PiotrMitkowski b9c4cef
Updated iOS package with new interface method implementation
PiotrMitkowski b3d81e3
Implemented native part of picking multi images without full metadata
PiotrMitkowski d95b117
Merge branch 'main' of github.com:flutter/plugins into ios-optional-p…
PiotrMitkowski 4a41df1
Updated versions of the platform interface in iOS implementation
PiotrMitkowski 932ae7c
Fixed import for generated messages file
PiotrMitkowski 2424828
Restored accidentally removed comments from generated test API file
PiotrMitkowski 5685468
Merge branch 'main' of github.com:flutter/plugins into ios-optional-p…
PiotrMitkowski 2464c13
PR remarks
PiotrMitkowski 9252583
Merge branch 'main' of github.com:flutter/plugins into ios-optional-p…
PiotrMitkowski 09a264a
PR remarks
PiotrMitkowski 6aaa4b0
Merge branch 'main' into ios-optional-permissions-ios-changes
stuartmorgan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this need the same
@available
check and fallback?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just realized that this change for picking a video can't be used with the current platform interface. It doesn't allow passing
requestFullMetadata
for both multi-image and videos. I can either improve the interface or remove this change for video picking (depending on what you think is better).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any reason we wouldn't want support for this in the multi-image case, so updating that interface makes sense.
Looking at the result callback, is this change even relevant for video? It looks like the parameter is only used in a non-video codepath.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I'll update the interface and create a PR soon. I'll also remove usage of
requestFullMetadata
for the video path, since it it isn't used, as you've noticed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is still missing the iOS 11
@available
check.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed usage of
requestFullMetadata
from here since it isn't supported in the video picking.