-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[image_picker] Image picker fix alert #3881
[image_picker] Image picker fix alert #3881
Conversation
Since UIAlertView is deprecated I implemented UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead.
# Conflicts: # packages/image_picker/image_picker/CHANGELOG.md # packages/image_picker/image_picker/ios/Classes/FLTImagePickerPlugin.m
f421063 to
40decd7
Compare
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 have a question regarding a double if (granted) { test in the code, and I feel the version number should not be updated as a feature but rather a patch as the functionality doesn't change but instead just use a different SDK internally.
| if (granted) { | ||
| if (granted) { |
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.
Why the double if (granted) { 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.
it is fixed.
| library, and taking new pictures with the camera. | ||
| homepage: https://github.com/flutter/plugins/tree/master/packages/image_picker/image_picker | ||
| version: 0.7.5+1 | ||
| version: 0.7.6 |
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.
Since there's no public API change, it should be 0.7.5+2
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.
done.
| @@ -1,3 +1,6 @@ | |||
| ## 0.7.6 | |||
| * Implement UIAlertController with a preferredStyle of UIAlertControllerStyleAlert since UIAlertView is deprecated. | |||
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.
nit: add back-ticks to indicate the UIAlertController, UIAlertControllerStyleAlert and UIAlertView are code constructs:
| * Implement UIAlertController with a preferredStyle of UIAlertControllerStyleAlert since UIAlertView is deprecated. | |
| * Implement `UIAlertController` with a preferredStyle of `UIAlertControllerStyleAlert` since `UIAlertView` is deprecated. |
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.
done.
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.
LGTM, I noticed that @stuartmorgan also wanted to do a review so let's wait for him before we proceed.
I was a bit to quick, the CHANGELOG.md contains the wrong version number.
stuartmorgan-g
left a comment
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.
LGTM once the CHANGELOG is fixed; sorry I forgot about this review last week, I meant to do it after the meeting.
mvanbeusekom
left a comment
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.
LGTM
# Conflicts: # packages/image_picker/image_picker/CHANGELOG.md # packages/image_picker/image_picker/pubspec.yaml
Since
UIAlertViewis deprecated I implementedUIAlertControllerwith apreferredStyleofUIAlertControllerStyleAlertinstead. I also made some small fixes.Related issues :
If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.
Pre-launch Checklist
dart format. See plugin_tool format)[shared_preferences]///).If you need help, consider asking for advice on the #hackers-new channel on Discord.