Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[google_maps_flutter] Migrate plugin to platform_interface API. #2674

Merged
merged 39 commits into from
Apr 24, 2020

Conversation

ditman
Copy link
Member

@ditman ditman commented Apr 20, 2020

Description

This change migrates the core google_maps_flutter plugin to use the APIs provided by the google_maps_flutter_platform_interface package.

Related Issues

Tests

google_maps_flutter/test$ flutter test
google_maps_flutter/test$ flutter test
Changing current working directory to: /usr/local/google/home/dit/github/plugins/packages/google_maps_flutter/google_maps_flutter
00:07 +57: All tests passed!                                                                                                                            
google_maps_flutter/example$ flutter drive -t test_driver/google_maps_e2e.dart -d emu
Starting application: test_driver/google_maps_e2e.dart
Installing build/app/outputs/flutter-apk/app.apk...                 1.4s
Running Gradle task 'assembleDebug'...                                  
Running Gradle task 'assembleDebug'... Done                        10.1s
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk...                 1.1s
I/flutter ( 8891): Observatory listening on http://127.0.0.1:50104/B5CuhNrIsxM=/
VMServiceFlutterDriver: Connecting to Flutter application at http://127.0.0.1:44035/B5CuhNrIsxM=/
VMServiceFlutterDriver: Isolate found with number: 2589919006602223
VMServiceFlutterDriver: Isolate is paused at start.
VMServiceFlutterDriver: Attempting to resume isolate
VMServiceFlutterDriver: Waiting for service extension
I/flutter ( 8891): 00:00 +0: testCompassToggle
VMServiceFlutterDriver: Connected to Flutter application.
I/flutter ( 8891): 00:00 +1: testMapToolbarToggle
I/flutter ( 8891): 00:01 +2: updateMinMaxZoomLevels
I/flutter ( 8891): 00:02 +3: testZoomGesturesEnabled
I/flutter ( 8891): 00:02 +4: testZoomControlsEnabled
I/flutter ( 8891): 00:03 +5: testRotateGesturesEnabled
I/flutter ( 8891): 00:03 +6: testTiltGesturesEnabled
I/flutter ( 8891): 00:04 +7: testScrollGesturesEnabled
I/flutter ( 8891): 00:05 +8: testGetVisibleRegion
I/flutter ( 8891): 00:11 +9: testTraffic
I/flutter ( 8891): 00:11 +10: testBuildings
I/flutter ( 8891): 00:12 +11: testMyLocationButtonToggle
I/flutter ( 8891): 00:12 +11 ~1: testMyLocationButton initial value false
I/flutter ( 8891): 00:12 +11 ~2: testMyLocationButton initial value true
I/flutter ( 8891): 00:12 +11 ~3: testSetMapStyle valid Json String
I/flutter ( 8891): 00:12 +12 ~3: testSetMapStyle invalid Json String
I/flutter ( 8891): 00:12 +13 ~3: testSetMapStyle null string
I/flutter ( 8891): 00:13 +14 ~3: testGetLatLng
I/flutter ( 8891): 00:16 +15 ~3: testGetZoomLevel
I/flutter ( 8891): 00:19 +16 ~3: testScreenCoordinate
I/flutter ( 8891): 00:22 +17 ~3: testResizeWidget
I/flutter ( 8891): 00:26 +18 ~3: testToggleInfoWindow
I/flutter ( 8891): 00:26 +19 ~3: fromAssetImage
I/flutter ( 8891): 00:26 +20 ~3: testTakeSnapshot
I/flutter ( 8891): 00:30 +21 ~3: (tearDownAll)
I/flutter ( 8891): 00:30 +22 ~3: All tests passed!
Stopping application instance.

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.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (flutter analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
  • I updated CHANGELOG.md to add a description of the change.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • No, this is not a breaking change.

This should not be a breaking change, but the change is significant, so the major version has been bumped to 0.6.0.

@ditman ditman self-assigned this Apr 20, 2020
@googlebot
Copy link

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 @googlebot I consent. in this pull request.

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 cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@ditman ditman changed the title [google_maps_flutter] Migrate plugin to platform_interface API. [google_maps_flutter] [WIP] Migrate plugin to platform_interface API. Apr 21, 2020
@cylyl
Copy link
Contributor

cylyl commented Apr 21, 2020

I consent.

@brockmcblockchain
Copy link

I consent.

I think you left off the googlebot part.

@ditman ditman force-pushed the gmaps_core_plugin branch from 0874a5c to fcdc7b1 Compare April 21, 2020 19:19
@ditman ditman changed the title [google_maps_flutter] [WIP] Migrate plugin to platform_interface API. [google_maps_flutter] Migrate plugin to platform_interface API. Apr 21, 2020
@ditman
Copy link
Member Author

ditman commented Apr 21, 2020

All tests pass, awaiting for @cylyl to consent (mentioning the googlebot :P)

@cylyl
Copy link
Contributor

cylyl commented Apr 23, 2020

@googlebot I consent.

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@ditman ditman merged commit 1a9d51d into flutter:master Apr 24, 2020
@ditman ditman deleted the gmaps_core_plugin branch April 24, 2020 19:04
EdwinRomelta pushed a commit to EdwinRomelta/plugins that referenced this pull request Jun 11, 2020
…ter#2674)

This change migrates the core `google_maps_flutter` plugin to use the APIs provided by the `google_maps_flutter_platform_interface` package.

This allows for federated implementations for other platforms to be made.
jorgefspereira pushed a commit to jorgefspereira/plugins_flutter that referenced this pull request Oct 10, 2020
…ter#2674)

This change migrates the core `google_maps_flutter` plugin to use the APIs provided by the `google_maps_flutter_platform_interface` package.

This allows for federated implementations for other platforms to be made.
FlutterSu pushed a commit to FlutterSu/flutter-plugins that referenced this pull request Nov 20, 2020
…ter#2674)

This change migrates the core `google_maps_flutter` plugin to use the APIs provided by the `google_maps_flutter_platform_interface` package.

This allows for federated implementations for other platforms to be made.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants