From 273e32ce4a06b2932f0cd27c9b0cabc8d4cce1de Mon Sep 17 00:00:00 2001 From: Hjalmar Karlsen Date: Fri, 6 Feb 2026 07:17:43 +0000 Subject: [PATCH 1/2] Fix Swift Package Manager deprecation warnings Remove explicit name parameters from package declarations and update OCMock to use modern revision API syntax. --- Package.swift | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Package.swift b/Package.swift index 6ab67d27..ce066258 100644 --- a/Package.swift +++ b/Package.swift @@ -42,27 +42,21 @@ let package = Package( ], dependencies: [ .package( - name: "AppAuth", url: "https://github.com/openid/AppAuth-iOS.git", from: "2.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"), .package( - name: "GTMSessionFetcher", url: "https://github.com/google/gtm-session-fetcher.git", from: "3.3.0"), .package( - name: "OCMock", url: "https://github.com/firebase/ocmock.git", - .revision("7291762d3551c5c7e31c49cce40a0e391a52e889")), + revision: "7291762d3551c5c7e31c49cce40a0e391a52e889"), .package( - name: "GoogleUtilities", url: "https://github.com/google/GoogleUtilities.git", from: "8.0.0"), ], From 189f30671ca45dc6b655fb53028f8081b540e302 Mon Sep 17 00:00:00 2001 From: Hjalmar Karlsen Date: Fri, 6 Feb 2026 11:52:39 +0100 Subject: [PATCH 2/2] Fix SPM package identity references in Package.swift The package: parameter must match the SPM package identity derived from the repository URL, not the old-style package name. --- Package.swift | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Package.swift b/Package.swift index ce066258..27f38cf6 100644 --- a/Package.swift +++ b/Package.swift @@ -64,11 +64,11 @@ let package = Package( .target( name: "GoogleSignIn", dependencies: [ - .product(name: "AppAuth", package: "AppAuth"), - .product(name: "AppAuthCore", package: "AppAuth"), - .product(name: "AppCheckCore", package: "AppCheck"), + .product(name: "AppAuth", package: "AppAuth-iOS"), + .product(name: "AppAuthCore", package: "AppAuth-iOS"), + .product(name: "AppCheckCore", package: "app-check"), .product(name: "GTMAppAuth", package: "GTMAppAuth"), - .product(name: "GTMSessionFetcherCore", package: "GTMSessionFetcher"), + .product(name: "GTMSessionFetcherCore", package: "gtm-session-fetcher"), ], path: "GoogleSignIn/Sources", resources: [ @@ -105,10 +105,10 @@ let package = Package( dependencies: [ "GoogleSignIn", "OCMock", - .product(name: "AppAuth", package: "AppAuth"), - .product(name: "AppCheckCore", package: "AppCheck"), + .product(name: "AppAuth", package: "AppAuth-iOS"), + .product(name: "AppCheckCore", package: "app-check"), .product(name: "GTMAppAuth", package: "GTMAppAuth"), - .product(name: "GTMSessionFetcherCore", package: "GTMSessionFetcher"), + .product(name: "GTMSessionFetcherCore", package: "gtm-session-fetcher"), .product(name: "GULMethodSwizzler", package: "GoogleUtilities"), .product(name: "GULSwizzlerTestHelpers", package: "GoogleUtilities"), ],