Skip to content

Commit 920c2ee

Browse files
authored
[google_sign_in] Allow GoogleSignIn-iOS 10 (flutter#13306)
Widens the `GoogleSignIn-iOS` requirement from `9.0.0..<10.0.0` to `9.0.0..<11.0.0` in both the Swift package and the podspec (`~> 9.0` to `>= 9.0, < 11.0`), so apps can resolve GoogleSignIn 10, which allows `gtm-session-fetcher` 4.x and 5.x. GoogleSignIn 10 requires iOS 15 and macOS 12, and SwiftPM rejects a package whose dependency needs a higher platform than the package declares. This raises the plugin minimums to iOS 15 / macOS 12 (matching Flutter 3.47), updates the macOS example deployment targets, and updates the `google_sign_in` README support table, following flutter#13292. Apps that also use firebase-ios-sdk 13 (no longer published to CocoaPods) need GoogleSignIn-iOS 10.1.0 or later, which includes google/GoogleSignIn-iOS#626 and widens App Check from 11.x to `11.0.0..<13.0.0`. The range here admits 10.1.0. Fixes flutter/flutter#194435 ## Pre-Review Checklist Versioning: `google_sign_in` only changes its README (support table) and macOS example, so it's listed under NEXT without a version bump, as in flutter#13292. Test exemption: manual dependency update with no plugin code changes. The existing native and integration tests run against GoogleSignIn 10 once SwiftPM or CocoaPods resolves it. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
1 parent 5b5c3b9 commit 920c2ee

10 files changed

Lines changed: 133 additions & 177 deletions

File tree

‎packages/google_sign_in/google_sign_in/CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
versions of the endorsed platform implementations.
66
* Applications built with older versions of Flutter will continue to
77
use compatible versions of the platform implementations.
8+
* Updates README to reflect that the latest version of `google_sign_in_ios`
9+
requires iOS 15 and macOS 12.
810

911
## 7.2.0
1012

‎packages/google_sign_in/google_sign_in/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A Flutter plugin for [Google Sign In](https://developers.google.com/identity/).
44

55
| | Android | iOS | macOS | Web |
66
|-------------|---------|-------|--------|-----|
7-
| **Support** | SDK 24+ | 13.0+ | 10.15+ | Any |
7+
| **Support** | SDK 24+ | 15.0+ | 12.0+ | Any |
88

99
## Setup
1010

‎packages/google_sign_in/google_sign_in/example/macos/Runner.xcodeproj/project.pbxproj‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@
355355
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
356356
GCC_WARN_UNUSED_FUNCTION = YES;
357357
GCC_WARN_UNUSED_VARIABLE = YES;
358-
MACOSX_DEPLOYMENT_TARGET = 10.15;
358+
MACOSX_DEPLOYMENT_TARGET = 12.0;
359359
MTL_ENABLE_DEBUG_INFO = NO;
360360
SDKROOT = macosx;
361361
SWIFT_COMPILATION_MODE = wholemodule;
@@ -434,7 +434,7 @@
434434
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
435435
GCC_WARN_UNUSED_FUNCTION = YES;
436436
GCC_WARN_UNUSED_VARIABLE = YES;
437-
MACOSX_DEPLOYMENT_TARGET = 10.15;
437+
MACOSX_DEPLOYMENT_TARGET = 12.0;
438438
MTL_ENABLE_DEBUG_INFO = YES;
439439
ONLY_ACTIVE_ARCH = YES;
440440
SDKROOT = macosx;
@@ -481,7 +481,7 @@
481481
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
482482
GCC_WARN_UNUSED_FUNCTION = YES;
483483
GCC_WARN_UNUSED_VARIABLE = YES;
484-
MACOSX_DEPLOYMENT_TARGET = 10.15;
484+
MACOSX_DEPLOYMENT_TARGET = 12.0;
485485
MTL_ENABLE_DEBUG_INFO = NO;
486486
SDKROOT = macosx;
487487
SWIFT_COMPILATION_MODE = wholemodule;

‎packages/google_sign_in/google_sign_in_ios/CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 6.4.0
2+
3+
* Adds support for `GoogleSignIn` 10.x.
4+
* Updates minimum supported SDK version to Flutter 3.47/Dart 3.13.
5+
* Updates minimum iOS version to 15 and minimum macOS version to 12.
6+
17
## 6.3.9
28

39
* Converts the iOS example app and UI tests to Swift.

‎packages/google_sign_in/google_sign_in_ios/darwin/google_sign_in_ios.podspec‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ Enables Google Sign-In in Flutter apps.
2222
# GTMSessionFetcher is a GoogleSignIn transitive dependency, added here as a
2323
# direct dependency to ensure a version which defines modules.
2424
s.dependency 'GTMSessionFetcher', '>= 3.4.0'
25-
s.dependency 'GoogleSignIn', '~> 9.0'
25+
s.dependency 'GoogleSignIn', '>= 9.0', '< 11.0'
2626
s.static_framework = true
2727
s.ios.dependency 'Flutter'
2828
s.osx.dependency 'FlutterMacOS'
29-
s.ios.deployment_target = '13.0'
30-
s.osx.deployment_target = '10.15'
29+
s.ios.deployment_target = '15.0'
30+
s.osx.deployment_target = '12.0'
3131
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
3232

3333
s.resource_bundles = {'google_sign_in_ios_privacy' => ['google_sign_in_ios/Sources/google_sign_in_ios/Resources/PrivacyInfo.xcprivacy']}

‎packages/google_sign_in/google_sign_in_ios/darwin/google_sign_in_ios/Package.swift‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ import PackageDescription
99
let package = Package(
1010
name: "google_sign_in_ios",
1111
platforms: [
12-
.iOS("13.0"),
13-
.macOS("10.15"),
12+
.iOS("15.0"),
13+
.macOS("12.0"),
1414
],
1515
products: [
1616
.library(name: "google-sign-in-ios", targets: ["google_sign_in_ios"])
1717
],
1818
dependencies: [
1919
.package(
2020
url: "https://github.com/google/GoogleSignIn-iOS.git",
21-
from: "9.0.0")
21+
"9.0.0"..<"11.0.0")
2222
],
2323
targets: [
2424
.target(

‎packages/google_sign_in/google_sign_in_ios/example/macos/Runner.xcodeproj/project.pbxproj‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@
476476
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
477477
GCC_WARN_UNUSED_FUNCTION = YES;
478478
GCC_WARN_UNUSED_VARIABLE = YES;
479-
MACOSX_DEPLOYMENT_TARGET = 10.15;
479+
MACOSX_DEPLOYMENT_TARGET = 12.0;
480480
MTL_ENABLE_DEBUG_INFO = NO;
481481
SDKROOT = macosx;
482482
SWIFT_COMPILATION_MODE = wholemodule;
@@ -555,7 +555,7 @@
555555
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
556556
GCC_WARN_UNUSED_FUNCTION = YES;
557557
GCC_WARN_UNUSED_VARIABLE = YES;
558-
MACOSX_DEPLOYMENT_TARGET = 10.15;
558+
MACOSX_DEPLOYMENT_TARGET = 12.0;
559559
MTL_ENABLE_DEBUG_INFO = YES;
560560
ONLY_ACTIVE_ARCH = YES;
561561
SDKROOT = macosx;
@@ -602,7 +602,7 @@
602602
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
603603
GCC_WARN_UNUSED_FUNCTION = YES;
604604
GCC_WARN_UNUSED_VARIABLE = YES;
605-
MACOSX_DEPLOYMENT_TARGET = 10.15;
605+
MACOSX_DEPLOYMENT_TARGET = 12.0;
606606
MTL_ENABLE_DEBUG_INFO = NO;
607607
SDKROOT = macosx;
608608
SWIFT_COMPILATION_MODE = wholemodule;

‎packages/google_sign_in/google_sign_in_ios/pubspec.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: google_sign_in_ios
22
description: iOS implementation of the google_sign_in plugin.
33
repository: https://github.com/flutter/packages/tree/main/packages/google_sign_in/google_sign_in_ios
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+google_sign_in%22
5-
version: 6.3.9
5+
version: 6.4.0
66

77
environment:
8-
sdk: ^3.11.0
9-
flutter: ">=3.41.0"
8+
sdk: ^3.13.0
9+
flutter: ">=3.47.0"
1010

1111
flutter:
1212
plugin:

0 commit comments

Comments
 (0)