diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/CHANGELOG.md b/packages/google_maps_flutter/google_maps_flutter_ios/CHANGELOG.md index e2c910bdea1..0dd8ec3faca 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/CHANGELOG.md +++ b/packages/google_maps_flutter/google_maps_flutter_ios/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.3.2 + +* Fixes an issue where the onDragEnd callback for marker is not called. + ## 2.3.1 * Adds pub topics to package metadata. diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/ios13/ios/Runner.xcodeproj/project.pbxproj b/packages/google_maps_flutter/google_maps_flutter_ios/example/ios13/ios/Runner.xcodeproj/project.pbxproj index afca0c57171..d01a17f6b3a 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/example/ios13/ios/Runner.xcodeproj/project.pbxproj +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/ios13/ios/Runner.xcodeproj/project.pbxproj @@ -10,6 +10,7 @@ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 4510D964F3B1259FEDD3ABA6 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7755F8F4BABC3D6A0BD4048B /* libPods-Runner.a */; }; + 68C9D7F72AD0A84100DF9D79 /* RunnerUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 68C9D7F62AD0A84100DF9D79 /* RunnerUITests.m */; }; 68E4726A2836FF0C00BDDDAC /* MapKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 68E472692836FF0C00BDDDAC /* MapKit.framework */; }; 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; @@ -22,6 +23,13 @@ /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ + 68C9D7FA2AD0A84100DF9D79 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 97C146E61CF9000F007C117D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 97C146ED1CF9000F007C117D; + remoteInfo = Runner; + }; F7151F15265D7ED70028CB91 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 97C146E61CF9000F007C117D /* Project object */; @@ -48,6 +56,8 @@ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 68C9D7F42AD0A84100DF9D79 /* RunnerUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 68C9D7F62AD0A84100DF9D79 /* RunnerUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RunnerUITests.m; sourceTree = ""; }; 68E472692836FF0C00BDDDAC /* MapKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MapKit.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/System/iOSSupport/System/Library/Frameworks/MapKit.framework; sourceTree = DEVELOPER_DIR; }; 733AFAB37683A9DA7512F09C /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; 7755F8F4BABC3D6A0BD4048B /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -74,6 +84,13 @@ /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ + 68C9D7F12AD0A84100DF9D79 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; 97C146EB1CF9000F007C117D /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -104,6 +121,14 @@ name = Frameworks; sourceTree = ""; }; + 68C9D7F52AD0A84100DF9D79 /* RunnerUITests */ = { + isa = PBXGroup; + children = ( + 68C9D7F62AD0A84100DF9D79 /* RunnerUITests.m */, + ); + path = RunnerUITests; + sourceTree = ""; + }; 9740EEB11CF90186004384FC /* Flutter */ = { isa = PBXGroup; children = ( @@ -121,6 +146,7 @@ 9740EEB11CF90186004384FC /* Flutter */, 97C146F01CF9000F007C117D /* Runner */, F7151F11265D7ED70028CB91 /* RunnerTests */, + 68C9D7F52AD0A84100DF9D79 /* RunnerUITests */, 97C146EF1CF9000F007C117D /* Products */, A189CFE5474BF8A07908B2E0 /* Pods */, 1E7CF0857EFC88FC263CF3B2 /* Frameworks */, @@ -132,6 +158,7 @@ children = ( 97C146EE1CF9000F007C117D /* Runner.app */, F7151F10265D7ED70028CB91 /* RunnerTests.xctest */, + 68C9D7F42AD0A84100DF9D79 /* RunnerUITests.xctest */, ); name = Products; sourceTree = ""; @@ -185,6 +212,24 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ + 68C9D7F32AD0A84100DF9D79 /* RunnerUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 68C9D7FE2AD0A84100DF9D79 /* Build configuration list for PBXNativeTarget "RunnerUITests" */; + buildPhases = ( + 68C9D7F02AD0A84100DF9D79 /* Sources */, + 68C9D7F12AD0A84100DF9D79 /* Frameworks */, + 68C9D7F22AD0A84100DF9D79 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 68C9D7FB2AD0A84100DF9D79 /* PBXTargetDependency */, + ); + name = RunnerUITests; + productName = RunnerUITests; + productReference = 68C9D7F42AD0A84100DF9D79 /* RunnerUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; 97C146ED1CF9000F007C117D /* Runner */ = { isa = PBXNativeTarget; buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; @@ -232,9 +277,13 @@ 97C146E61CF9000F007C117D /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1300; + LastUpgradeCheck = 1430; ORGANIZATIONNAME = "The Flutter Authors"; TargetAttributes = { + 68C9D7F32AD0A84100DF9D79 = { + CreatedOnToolsVersion = 15.0; + TestTargetID = 97C146ED1CF9000F007C117D; + }; 97C146ED1CF9000F007C117D = { CreatedOnToolsVersion = 7.3.1; }; @@ -260,11 +309,19 @@ targets = ( 97C146ED1CF9000F007C117D /* Runner */, F7151F0F265D7ED70028CB91 /* RunnerTests */, + 68C9D7F32AD0A84100DF9D79 /* RunnerUITests */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ + 68C9D7F22AD0A84100DF9D79 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; 97C146EC1CF9000F007C117D /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -379,6 +436,14 @@ /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ + 68C9D7F02AD0A84100DF9D79 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 68C9D7F72AD0A84100DF9D79 /* RunnerUITests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 97C146EA1CF9000F007C117D /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -401,6 +466,11 @@ /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ + 68C9D7FB2AD0A84100DF9D79 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 97C146ED1CF9000F007C117D /* Runner */; + targetProxy = 68C9D7FA2AD0A84100DF9D79 /* PBXContainerItemProxy */; + }; F7151F16265D7ED70028CB91 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 97C146ED1CF9000F007C117D /* Runner */; @@ -428,6 +498,44 @@ /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ + 68C9D7FC2AD0A84100DF9D79 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GENERATE_INFOPLIST_FILE = YES; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.RunnerUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = Runner; + }; + name = Debug; + }; + 68C9D7FD2AD0A84100DF9D79 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GENERATE_INFOPLIST_FILE = YES; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.RunnerUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = Runner; + }; + name = Release; + }; 97C147031CF9000F007C117D /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -541,6 +649,8 @@ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + DEVELOPMENT_TEAM = ""; ENABLE_BITCODE = NO; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "i386 arm64"; FRAMEWORK_SEARCH_PATHS = ( @@ -566,6 +676,8 @@ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + DEVELOPMENT_TEAM = ""; ENABLE_BITCODE = NO; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "i386 arm64"; FRAMEWORK_SEARCH_PATHS = ( @@ -591,6 +703,7 @@ baseConfigurationReference = E52C6A6210A56F027C582EF9 /* Pods-RunnerTests.debug.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; + CLANG_ENABLE_MODULES = YES; CODE_SIGN_STYLE = Automatic; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "i386 arm64"; INFOPLIST_FILE = RunnerTests/Info.plist; @@ -599,7 +712,6 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = dev.flutter.plugins.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/Runner"; @@ -611,6 +723,7 @@ baseConfigurationReference = 733AFAB37683A9DA7512F09C /* Pods-RunnerTests.release.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; + CLANG_ENABLE_MODULES = YES; CODE_SIGN_STYLE = Automatic; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "i386 arm64"; INFOPLIST_FILE = RunnerTests/Info.plist; @@ -619,7 +732,6 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = dev.flutter.plugins.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/Runner"; @@ -629,6 +741,15 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ + 68C9D7FE2AD0A84100DF9D79 /* Build configuration list for PBXNativeTarget "RunnerUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 68C9D7FC2AD0A84100DF9D79 /* Debug */, + 68C9D7FD2AD0A84100DF9D79 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/ios13/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/packages/google_maps_flutter/google_maps_flutter_ios/example/ios13/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index a60a46be23c..e271ffe8da9 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/example/ios13/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/ios13/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ + CADisableMinimumFrameDurationOnPhone + CFBundleDevelopmentRegion en CFBundleExecutable @@ -24,6 +26,8 @@ NSLocationWhenInUseUsageDescription This app needs your location to test the location feature of the Google Maps plugin. + UIApplicationSupportsIndirectInputEvents + UILaunchStoryboardName LaunchScreen UIMainStoryboardFile @@ -45,9 +49,5 @@ UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight - CADisableMinimumFrameDurationOnPhone - - UIApplicationSupportsIndirectInputEvents - diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/ios13/ios/RunnerUITests/RunnerUITests.m b/packages/google_maps_flutter/google_maps_flutter_ios/example/ios13/ios/RunnerUITests/RunnerUITests.m new file mode 100644 index 00000000000..550ed9f5e4c --- /dev/null +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/ios13/ios/RunnerUITests/RunnerUITests.m @@ -0,0 +1,78 @@ +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import + +static const NSTimeInterval kWaitTime = 60; + +@interface RunnerUITests : XCTestCase + +@end + +@implementation RunnerUITests + +- (void)testMarkerDraggingCallbacks { + XCUIApplication *application = [[XCUIApplication alloc] init]; + [application launch]; + XCUIElement *placeMarkerButton = application.staticTexts[@"Place marker"]; + if (![placeMarkerButton waitForExistenceWithTimeout:kWaitTime]) { + NSLog(@"application.debugDescription: %@", application.debugDescription); + XCTFail(@"Failed to find the Place marker button."); + } + [placeMarkerButton tap]; + + XCUIElement *Add = application.buttons[@"Add"]; + if (![Add waitForExistenceWithTimeout:kWaitTime]) { + NSLog(@"application.debugDescription: %@", application.debugDescription); + XCTFail(@"Failed to find the Add button."); + } + [Add tap]; + + XCUIElement *marker = application.buttons[@"marker_id_1"]; + if (![marker waitForExistenceWithTimeout:kWaitTime]) { + NSLog(@"application.debugDescription: %@", application.debugDescription); + XCTFail(@"Failed to find the marker."); + } + [marker tap]; + + XCUIElement *toggleDraggable = application.buttons[@"toggle draggable"]; + if (![toggleDraggable waitForExistenceWithTimeout:kWaitTime]) { + NSLog(@"application.debugDescription: %@", application.debugDescription); + XCTFail(@"Failed to find the toggle draggable."); + } + [toggleDraggable tap]; + + // Drag marker to center + [marker pressForDuration:5 thenDragToElement:application]; + + NSPredicate *predicateDragStart = + [NSPredicate predicateWithFormat:@"label CONTAINS[c] %@", @"_onMarkerDragStart"]; + NSPredicate *predicateDrag = + [NSPredicate predicateWithFormat:@"label CONTAINS[c] %@", @"_onMarkerDrag called"]; + NSPredicate *predicateDragEnd = + [NSPredicate predicateWithFormat:@"label CONTAINS[c] %@", @"_onMarkerDragEnd"]; + + XCUIElement *dragStart = [application.staticTexts matchingPredicate:predicateDragStart].element; + if (![dragStart waitForExistenceWithTimeout:kWaitTime]) { + NSLog(@"application.debugDescription: %@", application.debugDescription); + XCTFail(@"Failed to find the _onMarkerDragStart."); + } + XCTAssertTrue(dragStart.exists); + + XCUIElement *drag = [application.staticTexts matchingPredicate:predicateDrag].element; + if (![drag waitForExistenceWithTimeout:kWaitTime]) { + NSLog(@"application.debugDescription: %@", application.debugDescription); + XCTFail(@"Failed to find the _onMarkerDrag."); + } + XCTAssertTrue(drag.exists); + + XCUIElement *dragEnd = [application.staticTexts matchingPredicate:predicateDragEnd].element; + if (![dragEnd waitForExistenceWithTimeout:kWaitTime]) { + NSLog(@"application.debugDescription: %@", application.debugDescription); + XCTFail(@"Failed to find the _onMarkerDragEnd."); + } + XCTAssertTrue(dragEnd.exists); +} + +@end diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/shared/maps_example_dart/lib/place_marker.dart b/packages/google_maps_flutter/google_maps_flutter_ios/example/shared/maps_example_dart/lib/place_marker.dart index 9cba4975d40..1dd1f6f35dd 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/example/shared/maps_example_dart/lib/place_marker.dart +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/shared/maps_example_dart/lib/place_marker.dart @@ -43,6 +43,8 @@ class PlaceMarkerBodyState extends State { MarkerId? selectedMarker; int _markerIdCounter = 1; LatLng? markerPosition; + // A helper text for Xcode UITests. + String _onDragXcodeUITestHelperText = ''; // ignore: use_setters_to_change_properties void _onMapCreated(ExampleGoogleMapController controller) { @@ -80,6 +82,17 @@ class PlaceMarkerBodyState extends State { Future _onMarkerDrag(MarkerId markerId, LatLng newPosition) async { setState(() { markerPosition = newPosition; + if (!_onDragXcodeUITestHelperText.contains('\n_onMarkerDrag called')) { + // _onMarkerDrag can be called multiple times during a single drag. + // Only log _onMarkerDrag once per dragging action to reduce noises in UI. + _onDragXcodeUITestHelperText += '\n_onMarkerDrag called'; + } + }); + } + + Future _onMarkerDragStart(MarkerId markerId, LatLng newPosition) async { + setState(() { + _onDragXcodeUITestHelperText += '\n_onMarkerDragStart'; }); } @@ -87,6 +100,7 @@ class PlaceMarkerBodyState extends State { final Marker? tappedMarker = markers[markerId]; if (tappedMarker != null) { setState(() { + _onDragXcodeUITestHelperText += '\n_onMarkerDragEnd'; markerPosition = null; }); await showDialog( @@ -95,15 +109,19 @@ class PlaceMarkerBodyState extends State { return AlertDialog( actions: [ TextButton( - child: const Text('OK'), - onPressed: () => Navigator.of(context).pop(), - ) + child: const Text('OK'), + onPressed: () { + _onDragXcodeUITestHelperText = ''; + Navigator.of(context).pop(); + }) ], content: Padding( padding: const EdgeInsets.symmetric(vertical: 66), child: Column( mainAxisSize: MainAxisSize.min, children: [ + Text( + 'iOS delegate called: \n $_onDragXcodeUITestHelperText'), Text('Old position: ${tappedMarker.position}'), Text('New position: $newPosition'), ], @@ -131,6 +149,7 @@ class PlaceMarkerBodyState extends State { ), infoWindow: InfoWindow(title: markerIdVal, snippet: '*'), onTap: () => _onMarkerTapped(markerId), + onDragStart: (LatLng position) => _onMarkerDragStart(markerId, position), onDragEnd: (LatLng position) => _onMarkerDragEnd(markerId, position), onDrag: (LatLng position) => _onMarkerDrag(markerId, position), ); diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/ios/Classes/GoogleMapController.m b/packages/google_maps_flutter/google_maps_flutter_ios/ios/Classes/GoogleMapController.m index b85ffc3fd7c..904020e3fc1 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/ios/Classes/GoogleMapController.m +++ b/packages/google_maps_flutter/google_maps_flutter_ios/ios/Classes/GoogleMapController.m @@ -543,7 +543,7 @@ - (void)mapView:(GMSMapView *)mapView didEndDraggingMarker:(GMSMarker *)marker { [self.markersController didEndDraggingMarkerWithIdentifier:markerId location:marker.position]; } -- (void)mapView:(GMSMapView *)mapView didStartDraggingMarker:(GMSMarker *)marker { +- (void)mapView:(GMSMapView *)mapView didBeginDraggingMarker:(GMSMarker *)marker { NSString *markerId = marker.userData[0]; [self.markersController didStartDraggingMarkerWithIdentifier:markerId location:marker.position]; } diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter_ios/pubspec.yaml index f7c0d4e3c9d..eace652386e 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter_ios/pubspec.yaml @@ -2,7 +2,7 @@ name: google_maps_flutter_ios description: iOS implementation of the google_maps_flutter plugin. repository: https://github.com/flutter/packages/tree/main/packages/google_maps_flutter/google_maps_flutter_ios issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+maps%22 -version: 2.3.1 +version: 2.3.2 environment: sdk: ">=2.19.0 <4.0.0"