Skip to content

Commit 81f9bc3

Browse files
authored
fix
1 parent 4047517 commit 81f9bc3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Package.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,18 +1408,18 @@ func abseilDependency() -> Package.Dependency {
14081408
}
14091409

14101410
func grpcDependency() -> Package.Dependency {
1411-
return .package(url: "https://github.com/google/grpc-binary.git", branch: "ncooke3-patch-3")
1412-
// let packageInfo: (url: String, range: Range<Version>)
1411+
let packageInfo: (url: String, range: Range<Version>)
14131412

1414-
// // If building Firestore from source, abseil will need to be built as source
1415-
// // as the headers in the binary version of abseil are unusable.
1416-
// if Context.environment["FIREBASE_SOURCE_FIRESTORE"] != nil {
1417-
// packageInfo = ("https://github.com/grpc/grpc-ios.git", "1.69.0" ..< "1.70.0")
1418-
// } else {
1419-
// packageInfo = ("https://github.com/google/grpc-binary.git", "1.69.0" ..< "1.70.0")
1420-
// }
1413+
// If building Firestore from source, abseil will need to be built as source
1414+
// as the headers in the binary version of abseil are unusable.
1415+
if Context.environment["FIREBASE_SOURCE_FIRESTORE"] != nil {
1416+
packageInfo = ("https://github.com/grpc/grpc-ios.git", "1.69.0" ..< "1.70.0")
1417+
return .package(url: packageInfo.url, packageInfo.range)
1418+
} else {
1419+
packageInfo = ("https://github.com/google/grpc-binary.git", "1.69.0" ..< "1.70.0")
1420+
return .package(url: "https://github.com/google/grpc-binary.git", branch: "ncooke3-patch-3")
1421+
}
14211422

1422-
// return .package(url: packageInfo.url, packageInfo.range)
14231423
}
14241424

14251425
func firestoreWrapperTarget() -> Target {

0 commit comments

Comments
 (0)