Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
312d506
Fix up "double" stub (#298)
dmaclach May 19, 2023
b0bc583
Update to Swift 5 in GoogleSignInSwiftSupport.podspec (#317)
mdmathias May 26, 2023
b45a837
Clarifies that restored user is from local cache (#351)
camden-king Dec 1, 2023
aa71a74
Remove pod try from README (#372)
mdmathias Feb 29, 2024
5da488f
Add Privacy Manifest (#382)
ywsang Mar 22, 2024
a7965d1
Prepare for 7.1.0 release (#386)
ywsang Mar 26, 2024
cce5acc
Rebase and add privacy manifest from main branch
mdmathias Jul 20, 2023
408616d
Depend on AppCheckCore instead of FirebaseAppCheck (#330)
mdmathias Aug 4, 2023
150a195
Add a timed loader class (#331)
mdmathias Aug 17, 2023
b400e61
Remove unnecessary parameter used in creating GACAppAttestProvider (#…
mdmathias Aug 24, 2023
f6df40e
Remove use of GACAppCheckTokenProtocol per AppCheckCore api changes (…
mdmathias Aug 31, 2023
788411f
Update GIDSignIn to handle placeholder app check tokens (#335)
mdmathias Sep 5, 2023
d966409
Support using a debug app check provider during configuration (#336)
mdmathias Sep 8, 2023
b0f7706
Add SPM sample project for App Check (#339)
mdmathias Sep 13, 2023
c885e9b
Do not modally animate the presenting of app check loading UI (#340)
mdmathias Sep 15, 2023
230a2f2
Remove unnecessary TODO (#343)
mdmathias Oct 16, 2023
e1d6b0a
Increase the max animation delay for App Check (#347)
mdmathias Nov 3, 2023
c39641d
Update AppCheckCore dependency to 10.18 (#350)
mdmathias Nov 15, 2023
1a5eee4
Prepare for Firebase App Check EAP release (#352)
mdmathias Nov 20, 2023
677d8cc
Update SignInSample Podfile minimum iOS version (#355)
mdmathias Dec 8, 2023
f53b88b
Update AppCheckExample unit test target to pass during continuous int…
mdmathias Dec 20, 2023
aadbc59
Prepare for AppCheck beta release (#366)
mdmathias Feb 10, 2024
4502143
Check integration test for presubmit instruction (#368)
mdmathias Feb 28, 2024
fc9b1b7
Test skip integration key (#374)
mdmathias Mar 6, 2024
42e014b
Merge branch 'fac-eap' into mdmathias/add-privacy-manifest-appcheck
mdmathias Apr 10, 2024
6f2c39b
Remove duplicate dep on AppCheck
mdmathias Apr 10, 2024
5a639eb
Update Swift support podspec to match local GSI dep version
mdmathias Apr 10, 2024
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
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# 7.1.0
- Update to Swift 5.0 in `GoogleSignInSwiftSupport` pod ([#317](https://github.com/google/GoogleSignIn-iOS/pull/317))
- Documentation updates ([#351](https://github.com/google/GoogleSignIn-iOS/pull/351), [#372](https://github.com/google/GoogleSignIn-iOS/pull/372))
- Add Privacy Manifest ([#382](https://github.com/google/GoogleSignIn-iOS/pull/382))
- Internal
- Fix typo in `SFSafariViewController` ([#291](https://github.com/google/GoogleSignIn-iOS/pull/291))
- Fix `OCMock` usage in unit test ([#298](https://github.com/google/GoogleSignIn-iOS/pull/298))
- Use new [delegate protocol](https://github.com/google/GTMAppAuth/pull/224) from GTMAppAuth 4.0.0 ([#299](https://github.com/google/GoogleSignIn-iOS/pull/299))
- Ensure that `completion` is not nil before calling `-[GIDSignIn restorePreviousSignIn:]` ([#301](https://github.com/google/GoogleSignIn-iOS/pull/301))
- Removes `macos-11` runner in GitHub workflows ([#302](https://github.com/google/GoogleSignIn-iOS/pull/302))
- Updates button name reference so UI automation tests pass ([#308](https://github.com/google/GoogleSignIn-iOS/pull/308))

# 7.1.0-fac-beta-1.0.0
- Beta release supporting Firebase App Check tokens used
to establish your application's integrity while signing in with Google
Expand Down
10 changes: 5 additions & 5 deletions GoogleSignIn.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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', '~> 10.18'
s.dependency 'AppAuth', '~> 1.6'
s.dependency 'GTMAppAuth', '~> 4.0'
s.dependency 'GTMSessionFetcher/Core', '>= 1.1', '< 4.0'
s.dependency 'AppAuth', '>= 1.7.3', '< 2.0'
s.dependency 'GTMAppAuth', '>= 4.1.1', '< 5.0'
s.dependency 'GTMSessionFetcher/Core', '~> 3.3'
s.resource_bundle = {
'GoogleSignIn' => ['GoogleSignIn/Sources/{Resources,Strings}/*']
}
Expand All @@ -56,7 +56,7 @@ The Google Sign-In SDK allows users to sign in with their Google account from th
]
unit_tests.requires_app_host = true
unit_tests.dependency 'OCMock'
unit_tests.dependency 'GoogleUtilities/MethodSwizzler', '~> 7.2'
unit_tests.dependency 'GoogleUtilities/SwizzlerTestHelpers', '~> 7.2'
unit_tests.dependency 'GoogleUtilities/MethodSwizzler', '~> 7.13'
unit_tests.dependency 'GoogleUtilities/SwizzlerTestHelpers', '~> 7.13'
end
end
4 changes: 3 additions & 1 deletion GoogleSignIn/Sources/Public/GoogleSignIn/GIDSignIn.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ NS_SWIFT_NAME(configureDebugProvider(withAPIKey:completion:));
/// @return `YES` if there is a previous user sign-in saved in keychain.
- (BOOL)hasPreviousSignIn;

/// Attempts to restore a previous user sign-in without interaction.
/// Attempts to restore a previous user sign-in without interaction.
///
/// Restores user from the local cache and refreshes tokens if they have expired (>1 hour).
///
/// @param completion The block that is called on completion. This block will be called asynchronously
/// on the main queue.
Expand Down
122 changes: 122 additions & 0 deletions GoogleSignIn/Sources/Resources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeName</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeEmailAddress</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypePhoneNumber</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeOtherDataTypes</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeCoarseLocation</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeUserID</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeDeviceID</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeOtherUsageData</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
</array>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
</dict>
</array>
</dict>
</plist>
14 changes: 14 additions & 0 deletions GoogleSignInSwift/Sources/Resources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyAccessedAPITypes</key>
<array/>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyTracking</key>
<false/>
</dict>
</plist>
7 changes: 5 additions & 2 deletions GoogleSignInSwiftSupport.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'GoogleSignInSwiftSupport'
s.version = '7.0.1'
s.version = '7.1.0'
s.swift_version = '5.0'
s.summary = 'Adds Swift-focused support for Google Sign-In.'
s.description = 'Additional Swift support for the Google Sign-In SDK.'
Expand All @@ -24,7 +24,10 @@ Pod::Spec.new do |s|
'CoreGraphics',
'SwiftUI',
]
s.dependency 'GoogleSignIn', '~> 7.0'
s.dependency 'GoogleSignIn', '~> 7.1.0-fac-beta-1.0.0'
s.resource_bundles = {
'GoogleSignInSwiftSupport_Privacy' => 'GoogleSignInSwift/Sources/Resources/PrivacyInfo.xcprivacy'
}
s.test_spec 'unit' do |unit_tests|
unit_tests.platforms = {
:ios => ios_deployment_target,
Expand Down
13 changes: 8 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,27 +44,27 @@ let package = Package(
.package(
name: "AppAuth",
url: "https://github.com/openid/AppAuth-iOS.git",
"1.6.0" ..< "2.0.0"),
from: "1.7.3"),
.package(
name: "AppCheck",
url: "https://github.com/google/app-check.git",
"10.18.0" ..< "11.0.0"),
.package(
name: "GTMAppAuth",
url: "https://github.com/google/GTMAppAuth.git",
from: "4.0.0"),
from: "4.1.1"),
.package(
name: "GTMSessionFetcher",
url: "https://github.com/google/gtm-session-fetcher.git",
"1.5.0" ..< "4.0.0"),
from: "3.3.0"),
.package(
name: "OCMock",
url: "https://github.com/firebase/ocmock.git",
.revision("7291762d3551c5c7e31c49cce40a0e391a52e889")),
.package(
name: "GoogleUtilities",
url: "https://github.com/google/GoogleUtilities.git",
"7.3.0" ..< "8.0.0"),
from: "7.13.0"),
],
targets: [
.target(
Expand Down Expand Up @@ -100,7 +100,10 @@ let package = Package(
dependencies: [
"GoogleSignIn",
],
path: "GoogleSignInSwift/Sources"
path: "GoogleSignInSwift/Sources",
resources: [
.copy("Resources/PrivacyInfo.xcprivacy")
]
),
.testTarget(
name: "GoogleSignIn-UnitTests",
Expand Down
14 changes: 3 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,9 @@ service.
## Getting Started

Try either the [Objective-C](Samples/ObjC) or [Swift](Samples/Swift) sample app.
For example, to demo the Objective-C sample project, you have three options:
For example, to demo the Objective-C sample project, you have two options:

1. Using [CocoaPods](https://cocoapods.org/)'s `try` method:

```
pod try GoogleSignIn
```

Note, this will default to providing you with the Objective-C sample app.

2. Using CocoaPod's `install` method:
1. Using CocoaPod's `install` method:

```
git clone https://github.com/google/GoogleSignIn-iOS
Expand All @@ -35,7 +27,7 @@ pod install
open SignInSampleForPod.xcworkspace
```

3. Using [Swift Package Manager](https://swift.org/package-manager/):
2. Using [Swift Package Manager](https://swift.org/package-manager/):

```
git clone https://github.com/google/GoogleSignIn-iOS
Expand Down