-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[image_picker] fix crash when aar from 'flutter build aar' #2120
[image_picker] fix crash when aar from 'flutter build aar' #2120
Conversation
|
Why this task still running |
cyanglaz
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.
The fix LGTM! Can we add some tests for this change?
done. |
cyanglaz
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!
.../example/android/app/src/test/java/io/flutter/plugins/imagepicker/ImagePickerPluginTest.java
Outdated
Show resolved
Hide resolved
|
Hi @cyanglaz ,Can I know what else I need to do to help the PR merge into the master branch? |
|
@liujingtech Could you update pubspec.ymal with the new version |
Sorry, I forgot to update pubspec.yaml |
Hi @cyanglaz , What else I can do ? |
Description
Use context cast application in ImagePickerPlugin#onCreate,when depend module context type is application, but depend on aar context type is acitivity, finally cause ClassCastException.
Related Issues
flutter/flutter#41558
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?