Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.19.9

* Adds attribution ID for Google Maps SDK usage.

## 2.19.8

* Updates internal implementation to use Kotlin Pigeon.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.lifecycle.Lifecycle;
import com.google.android.gms.maps.MapsApiSettings;
import io.flutter.embedding.engine.plugins.FlutterPlugin;
import io.flutter.embedding.engine.plugins.activity.ActivityAware;
import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding;
Expand Down Expand Up @@ -36,6 +37,8 @@ public void onAttachedToEngine(@NonNull FlutterPluginBinding binding) {
VIEW_TYPE,
new GoogleMapFactory(
binding.getBinaryMessenger(), binding.getApplicationContext(), () -> lifecycle));
MapsApiSettings.addInternalUsageAttributionId(
binding.getApplicationContext(), "gmp_flutter_googlemapsflutter_android");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: google_maps_flutter_android
description: Android implementation of the google_maps_flutter plugin.
repository: https://github.com/flutter/packages/tree/main/packages/google_maps_flutter/google_maps_flutter_android
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+maps%22
version: 2.19.8
version: 2.19.9

environment:
sdk: ^3.9.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.18.2

* Adds attribution ID for Google Maps SDK usage.

## 2.18.1

* Removes conditional header logic that broke add-to-app builds.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,19 @@

#import "FGMGoogleMapsPlugin.h"

@import GoogleMaps;

#pragma mark - GoogleMaps plugin implementation

// Declares a GMSServices method that was added in SDK 9.2, so that it can be
// conditionally called. It is declared on NSObject to avoid duplicate
// declaration errors when compiling with newer SDKs.
// TODO(stuartmorgan): Remove this once all packages sharing this file require
// SDK 9.2 or later.
@interface NSObject (MapsSDK92Extensions)
+ (void)addInternalUsageAttributionID:(nonnull NSString *)internalUsageAttributionID;
@end

@implementation FGMGoogleMapsPlugin

+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar> *)registrar {
Expand All @@ -14,6 +25,9 @@ + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar> *)registrar {
withId:@"plugins.flutter.dev/google_maps_ios"
gestureRecognizersBlockingPolicy:
FlutterPlatformViewGestureRecognizersBlockingPolicyWaitUntilTouchesEnded];
if ([GMSServices respondsToSelector:@selector(addInternalUsageAttributionID:)]) {
[GMSServices addInternalUsageAttributionID:@"gmp_flutter_googlemapsflutter_ios"];
}
}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -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.18.1
version: 2.18.2

environment:
sdk: ^3.10.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.18.2

* Adds attribution ID for Google Maps SDK usage.

## 2.18.1

* Removes the requirement to use static builds with Swift Package Manager.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,19 @@

#import "FGMGoogleMapsPlugin.h"

@import GoogleMaps;

#pragma mark - GoogleMaps plugin implementation

// Declares a GMSServices method that was added in SDK 9.2, so that it can be
// conditionally called. It is declared on NSObject to avoid duplicate
// declaration errors when compiling with newer SDKs.
// TODO(stuartmorgan): Remove this once all packages sharing this file require
// SDK 9.2 or later.
@interface NSObject (MapsSDK92Extensions)
+ (void)addInternalUsageAttributionID:(nonnull NSString *)internalUsageAttributionID;
@end

@implementation FGMGoogleMapsPlugin

+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar> *)registrar {
Expand All @@ -14,6 +25,9 @@ + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar> *)registrar {
withId:@"plugins.flutter.dev/google_maps_ios"
gestureRecognizersBlockingPolicy:
FlutterPlatformViewGestureRecognizersBlockingPolicyWaitUntilTouchesEnded];
if ([GMSServices respondsToSelector:@selector(addInternalUsageAttributionID:)]) {
[GMSServices addInternalUsageAttributionID:@"gmp_flutter_googlemapsflutter_ios"];
}
}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: google_maps_flutter_ios_sdk10
description: iOS implementation of the google_maps_flutter plugin using Google Maps SDK 10.
repository: https://github.com/flutter/packages/tree/main/packages/google_maps_flutter/google_maps_flutter_ios_sdk10
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+maps%22
version: 2.18.1
version: 2.18.2

environment:
sdk: ^3.10.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.18.2

* Adds attribution ID for Google Maps SDK usage.

## 2.18.1

* Removes the requirement to use static builds with Swift Package Manager.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,19 @@

#import "FGMGoogleMapsPlugin.h"

@import GoogleMaps;

#pragma mark - GoogleMaps plugin implementation

// Declares a GMSServices method that was added in SDK 9.2, so that it can be
// conditionally called. It is declared on NSObject to avoid duplicate
// declaration errors when compiling with newer SDKs.
// TODO(stuartmorgan): Remove this once all packages sharing this file require
// SDK 9.2 or later.
@interface NSObject (MapsSDK92Extensions)
+ (void)addInternalUsageAttributionID:(nonnull NSString *)internalUsageAttributionID;
@end

@implementation FGMGoogleMapsPlugin

+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar> *)registrar {
Expand All @@ -14,6 +25,9 @@ + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar> *)registrar {
withId:@"plugins.flutter.dev/google_maps_ios"
gestureRecognizersBlockingPolicy:
FlutterPlatformViewGestureRecognizersBlockingPolicyWaitUntilTouchesEnded];
if ([GMSServices respondsToSelector:@selector(addInternalUsageAttributionID:)]) {
[GMSServices addInternalUsageAttributionID:@"gmp_flutter_googlemapsflutter_ios"];
}
}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: google_maps_flutter_ios_sdk9
description: iOS implementation of the google_maps_flutter plugin using Google Maps SDK 9.
repository: https://github.com/flutter/packages/tree/main/packages/google_maps_flutter/google_maps_flutter_ios_sdk9
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+maps%22
version: 2.18.1
version: 2.18.2

environment:
sdk: ^3.10.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,19 @@

#import "FGMGoogleMapsPlugin.h"

@import GoogleMaps;

#pragma mark - GoogleMaps plugin implementation

// Declares a GMSServices method that was added in SDK 9.2, so that it can be
// conditionally called. It is declared on NSObject to avoid duplicate
// declaration errors when compiling with newer SDKs.
// TODO(stuartmorgan): Remove this once all packages sharing this file require
// SDK 9.2 or later.
@interface NSObject (MapsSDK92Extensions)
+ (void)addInternalUsageAttributionID:(nonnull NSString *)internalUsageAttributionID;
@end

@implementation FGMGoogleMapsPlugin

+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar> *)registrar {
Expand All @@ -14,6 +25,9 @@ + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar> *)registrar {
withId:@"plugins.flutter.dev/google_maps_ios"
gestureRecognizersBlockingPolicy:
FlutterPlatformViewGestureRecognizersBlockingPolicyWaitUntilTouchesEnded];
if ([GMSServices respondsToSelector:@selector(addInternalUsageAttributionID:)]) {
[GMSServices addInternalUsageAttributionID:@"gmp_flutter_googlemapsflutter_ios"];
}
}

@end
Loading