From 4baa357419055718e1163eb96249b9e2169c329b Mon Sep 17 00:00:00 2001 From: BerkeleyDude Date: Sat, 21 Feb 2026 10:21:30 -0600 Subject: [PATCH] Fix Package.swift deprecation warnings: use package(url:from:) and revision Co-authored-by: Cursor --- Package.swift | 44 +++++++++++++------------------------------- 1 file changed, 13 insertions(+), 31 deletions(-) diff --git a/Package.swift b/Package.swift index 6ab67d27..1be9614e 100644 --- a/Package.swift +++ b/Package.swift @@ -41,40 +41,22 @@ 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")), - .package( - name: "GoogleUtilities", - url: "https://github.com/google/GoogleUtilities.git", - from: "8.0.0"), + .package(url: "https://github.com/openid/AppAuth-iOS.git", from: "2.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"), + .package(url: "https://github.com/google/gtm-session-fetcher.git", from: "3.3.0"), + .package(url: "https://github.com/firebase/ocmock.git", revision: "7291762d3551c5c7e31c49cce40a0e391a52e889"), + .package(url: "https://github.com/google/GoogleUtilities.git", from: "8.0.0"), ], targets: [ .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: [ @@ -111,10 +93,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"), ],