Skip to content
Merged
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ Podfile.lock
# Swift Build
.build/
Package.resolved
.swiftpm/
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Unreleased
- **BREAKING**: Updated the AppAuth dependency to 3.0.0 and the GTMAppAuth dependency to 6.0.0.
- **BREAKING**: Raised the minimum deployment targets to iOS 15.0 and macOS 12.0, matching the new floor set by AppAuth 3.0.0. Projects that must keep supporting earlier OS versions should stay on GoogleSignIn 9.2.0.
- Renamed the version-specific Swift Package Manager manifest from `Package@swift-5.5.swift` to `Package@swift-5.7.swift`, since AppAuth 3.0.0 requires `swift-tools-version` 5.7 or later.
- Widened the GTMSessionFetcher dependency to allow 4.x and 5.x, matching GTMAppAuth 6.0.0.
- Add `GIDSignIn.wrapperIdentifier` so SDKs that embed Google Sign-In can self-identify in Google's diagnostic logs via a new `gidwrapper` parameter. It is opt-in and default behavior is unchanged.
- Pinned the Swift names of the `GIDClaim` factory methods with explicit `NS_SWIFT_NAME` annotations. The imported Swift names are unchanged (`authTime()`, `essentialAuthTime()`, `amr()` and `essentialAMR()`); they no longer depend on the Objective-C importer's implicit renaming heuristics.

Expand Down
10 changes: 5 additions & 5 deletions GoogleSignIn.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ The Google Sign-In SDK allows users to sign in with their Google account from th
:tag => s.version.to_s
}
s.swift_version = '4.0'
ios_deployment_target = '12.0'
osx_deployment_target = '10.15'
ios_deployment_target = '15.0'
osx_deployment_target = '12.0'
s.ios.deployment_target = ios_deployment_target
s.osx.deployment_target = osx_deployment_target
s.prefix_header_file = false
Expand All @@ -34,9 +34,9 @@ The Google Sign-In SDK allows users to sign in with their Google account from th
s.ios.framework = 'UIKit'
s.osx.framework = 'AppKit'
s.dependency 'AppCheckCore', '~> 11.0'
s.dependency 'AppAuth', '~> 2.1'
s.dependency 'GTMAppAuth', '~> 5.0'
s.dependency 'GTMSessionFetcher/Core', '~> 3.3'
s.dependency 'AppAuth', '~> 3.0'
s.dependency 'GTMAppAuth', '~> 6.0'
s.dependency 'GTMSessionFetcher/Core', '>= 3.3', '< 6.0'
s.resource_bundle = {
'GoogleSignIn' => ['GoogleSignIn/Sources/{Resources,Strings}/*']
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,8 @@ - (void)viewDidLoad {
// Medium gray with transparency
self.view.backgroundColor = [UIColor colorWithRed:0.1 green:0.1 blue:0.1 alpha:0.25];

UIActivityIndicatorViewStyle style;
if (@available(iOS 13.0, *)) {
style = UIActivityIndicatorViewStyleLarge;
} else {
style = UIActivityIndicatorViewStyleGray;
}
_activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:style];
_activityIndicator = [[UIActivityIndicatorView alloc]
initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleLarge];
_activityIndicator.color = UIColor.whiteColor;
self.activityIndicator.translatesAutoresizingMaskIntoConstraints = NO;
[self.activityIndicator startAnimating];
Expand Down
4 changes: 2 additions & 2 deletions GoogleSignInSwiftSupport.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Pod::Spec.new do |s|
:git => 'https://github.com/google/GoogleSignIn-iOS.git',
:tag => s.version.to_s
}
ios_deployment_target = '13.0'
macos_deployment_target = '10.15'
ios_deployment_target = '15.0'
macos_deployment_target = '12.0'
s.ios.deployment_target = ios_deployment_target
s.osx.deployment_target = macos_deployment_target
s.module_name = 'GoogleSignInSwift'
Expand Down
10 changes: 5 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ let package = Package(
name: "GoogleSignIn",
defaultLocalization: "en",
platforms: [
.macOS(.v10_15),
.iOS(.v12)
.macOS(.v12),
.iOS(.v15)
],
products: [
.library(
Expand All @@ -43,16 +43,16 @@ let package = Package(
dependencies: [
.package(
url: "https://github.com/openid/AppAuth-iOS.git",
from: "2.1.0"),
from: "3.0.0"),
.package(
url: "https://github.com/google/app-check.git",
from: "11.0.0"),
.package(
url: "https://github.com/google/GTMAppAuth.git",
from: "5.0.0"),
from: "6.0.0"),
.package(
url: "https://github.com/google/gtm-session-fetcher.git",
from: "3.3.0"),
"3.3.0" ..< "6.0.0"),
.package(
url: "https://github.com/firebase/ocmock.git",
revision: "7291762d3551c5c7e31c49cce40a0e391a52e889"),
Expand Down
12 changes: 6 additions & 6 deletions Package@swift-5.5.swift → Package@swift-5.7.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.5
// swift-tools-version:5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

// Copyright 2021 Google LLC
Expand All @@ -23,8 +23,8 @@ let package = Package(
name: "GoogleSignIn",
defaultLocalization: "en",
platforms: [
.macOS(.v10_15),
.iOS(.v12)
.macOS(.v12),
.iOS(.v15)
],
products: [
.library(
Expand All @@ -44,19 +44,19 @@ let package = Package(
.package(
name: "AppAuth",
url: "https://github.com/openid/AppAuth-iOS.git",
from: "2.1.0"),
from: "3.0.0"),
.package(
name: "AppCheck",
url: "https://github.com/google/app-check.git",
from: "11.0.0"),
.package(
name: "GTMAppAuth",
url: "https://github.com/google/GTMAppAuth.git",
from: "5.0.0"),
from: "6.0.0"),
.package(
name: "GTMSessionFetcher",
url: "https://github.com/google/gtm-session-fetcher.git",
from: "3.3.0"),
"3.3.0" ..< "6.0.0"),
.package(
name: "OCMock",
url: "https://github.com/firebase/ocmock.git",
Expand Down
2 changes: 1 addition & 1 deletion Samples/ObjC/SignInSample/Podfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
platform :ios, '12.0'
platform :ios, '15.0'
use_frameworks!

target 'SampleForPod' do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "-ObjC";
Expand Down Expand Up @@ -441,7 +441,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = NO;
OTHER_LDFLAGS = "-ObjC";
SDKROOT = iphoneos;
Expand All @@ -459,7 +459,7 @@
..,
);
INFOPLIST_FILE = "$(SRCROOT)/SignInSample-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -478,7 +478,7 @@
..,
);
INFOPLIST_FILE = "$(SRCROOT)/SignInSample-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -494,7 +494,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -510,7 +510,7 @@
CLANG_ENABLE_MODULES = YES;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = "$(SRCROOT)/SignInSample-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.google.SignInSample;
PRODUCT_NAME = SignInSample;
Expand All @@ -527,7 +527,7 @@
CLANG_ENABLE_MODULES = YES;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = "$(SRCROOT)/SignInSample-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.google.SignInSample;
PRODUCT_NAME = SignInSample;
Expand Down
2 changes: 1 addition & 1 deletion Samples/Swift/AppAttestExample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ use_frameworks! :linkage => :static

target 'AppAttestExampleForPod' do
pod 'AppCheckCore'
platform :ios, '14.0'
platform :ios, '15.0'
end
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.5;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -546,7 +546,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.5;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand All @@ -567,7 +567,7 @@
DEVELOPMENT_TEAM = "";
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = iOS/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -591,7 +591,7 @@
DEVELOPMENT_TEAM = "";
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = iOS/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.5;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -565,7 +565,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.5;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand All @@ -585,7 +585,7 @@
DEVELOPMENT_ASSET_PATHS = "\"iOS/Preview Content\"";
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = iOS/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -607,7 +607,7 @@
DEVELOPMENT_ASSET_PATHS = "\"iOS/Preview Content\"";
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = iOS/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -639,7 +639,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.0;
MACOSX_DEPLOYMENT_TARGET = 12.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = Google.DaysUntilBirthdayOnMac;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -669,7 +669,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.0;
MACOSX_DEPLOYMENT_TARGET = 12.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = Google.DaysUntilBirthdayOnMac;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
4 changes: 2 additions & 2 deletions Samples/Swift/DaysUntilBirthday/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ project 'DaysUntilBirthdayForPod.xcodeproj'
use_frameworks! :linkage => :static

target 'DaysUntilBirthdayForPod (iOS)' do
platform :ios, '14.0'
platform :ios, '15.0'
end

target 'DaysUntilBirthdayForPod (macOS)' do
platform :osx, '11.0'
platform :osx, '12.0'
end
Loading