-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[google_maps_flutter] Introduce Platform Interface package. #2637
Conversation
* Make the method_channel implementation private, so it can't be imported from other packages. * Fix all the problems with Future<void> functions not returning a future.
…ort from core plugin to maintain current API.
…by other toJson methods.
…port from the core plugin to preserve public API.
…Json where needed.
methods. Update MethodChannel implementation and plugin to new API.
use the appropriate classes. Move as much logic as possible to the MethodChannel.
Update the MethodChannel and core plugin implementation to the new API.
The interface can be a singleton, but implementations can still keep references to multiple different method channels.
Wire them up in the method channel. Add Event types so we can filter views of the stream later.
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
Please @cylyl, can you do this?
|
@googlebot I consent. |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
Thanks @cylyl!! Please @hterkelsen, @cyanglaz, can you take a look? This one seems ready to ship! (it's the same you've seen before, but without the changes to the core plugin) |
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 based on my review in #2577
I'm going to merge this, and post another one with the required updates to the core plugin. Thanks for the review @cyanglaz! |
…e. (flutter#2637) (#330) This package contains the platform interface (and the MethodChannel default implementation) for the Google Maps Flutter plugin, up to version 0.5.26. The most drastic change is including Streams of MapEvents for all different types of events that may come from the native side. Core types of the plugin (LatLng, Marker, Circle...) now live in this package. Co-authored-by: chung2012 <chungyl2012@gmail.com>
…e. (flutter#2637) This package contains the platform interface (and the MethodChannel default implementation) for the Google Maps Flutter plugin, up to version 0.5.26. The most drastic change is including Streams of MapEvents for all different types of events that may come from the native side. Core types of the plugin (LatLng, Marker, Circle...) now live in this package. Co-authored-by: chung2012 <chungyl2012@gmail.com>
@ditman can you please assist on this flutter/flutter#65788 ? I made a PR on So I changed
Then I did the Pull Request but on of the checks says:
I don't understand. How am I supposed to use the hosted plugin although I am modifying it This is my PR https://github.com/flutter/plugins/pull/3027/checks?check_run_id=1117524341 |
…e. (flutter#2637) This package contains the platform interface (and the MethodChannel default implementation) for the Google Maps Flutter plugin, up to version 0.5.26. The most drastic change is including Streams of MapEvents for all different types of events that may come from the native side. Core types of the plugin (LatLng, Marker, Circle...) now live in this package. Co-authored-by: chung2012 <chungyl2012@gmail.com>
…e. (flutter#2637) This package contains the platform interface (and the MethodChannel default implementation) for the Google Maps Flutter plugin, up to version 0.5.26. The most drastic change is including Streams of MapEvents for all different types of events that may come from the native side. Core types of the plugin (LatLng, Marker, Circle...) now live in this package. Co-authored-by: chung2012 <chungyl2012@gmail.com>
Description
This is the initial version of the Platform Interface package for the federation of the
google_maps_flutter
plugin.The original work happened in this other PoC PR: #2577.
This PR prepares the package to be published in pub.dev.
Related Issues
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?