瀏覽代碼

Merge branch 'main' into pin-keychainHandler

pinlu 3 年之前
父節點
當前提交
e730b3a37d
共有 5 個文件被更改,包括 12 次插入7 次删除
  1. 5 0
      .github/workflows/builds.yml
  2. 1 1
      GoogleSignIn.podspec
  3. 3 3
      GoogleSignIn/Sources/GIDGoogleUser.m
  4. 2 2
      GoogleSignInSwiftSupport.podspec
  5. 1 1
      Package.swift

+ 5 - 0
.github/workflows/builds.yml

@@ -1,6 +1,11 @@
 name: Build GSI for Valid Architectures	
 
 on:
+  push:
+    branches:
+      - main
+  pull_request:
+  workflow_dispatch:
   schedule:
     - cron: '0 8 * * *' # Cron uses UTC; run at nightly at midnight PST
 

+ 1 - 1
GoogleSignIn.podspec

@@ -1,6 +1,6 @@
 Pod::Spec.new do |s|
   s.name             = 'GoogleSignIn'
-  s.version          = '6.2.4'
+  s.version          = '7.0.0'
   s.summary          = 'Enables iOS apps to sign in with Google.'
   s.description      = <<-DESC
 The Google Sign-In SDK allows users to sign in with their Google account from third-party apps.

+ 3 - 3
GoogleSignIn/Sources/GIDGoogleUser.m

@@ -204,11 +204,11 @@ static NSTimeInterval const kMinimalTimeToExpire = 60.0;
   }
   
   [GIDSignIn.sharedInstance addScopes:scopes
-#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST
+#if TARGET_OS_IOS || TARGET_OS_MACCATALYST
              presentingViewController:presentingViewController
-#elif TARGET_OS_OSX || TARGET_OS_MACCATALYST
+#elif TARGET_OS_OSX
                      presentingWindow:presentingWindow
-#endif // TARGET_OS_IOS && !TARGET_OS_MACCATALYST
+#endif // TARGET_OS_IOS || TARGET_OS_MACCATALYST
                            completion:completion];
 }
 

+ 2 - 2
GoogleSignInSwiftSupport.podspec

@@ -1,6 +1,6 @@
 Pod::Spec.new do |s|
   s.name = 'GoogleSignInSwiftSupport'
-  s.version = '6.2.4'
+  s.version = '7.0.0'
   s.swift_version = '4.0'
   s.summary = 'Adds Swift-focused support for Google Sign-In.'
   s.description = 'Additional Swift support for the Google Sign-In SDK.'
@@ -24,7 +24,7 @@ Pod::Spec.new do |s|
     'CoreGraphics',
     'SwiftUI',
   ]
-  s.dependency 'GoogleSignIn', '~> 6.2'
+  s.dependency 'GoogleSignIn', '~> 7.0'
   s.test_spec 'unit' do |unit_tests|
     unit_tests.platforms = {
       :ios => ios_deployment_target,

+ 1 - 1
Package.swift

@@ -17,7 +17,7 @@
 
 import PackageDescription
 
-let googleSignInVersion = "6.2.4"
+let googleSignInVersion = "7.0.0"
 
 let package = Package(
   name: "GoogleSignIn",