|
|
9 tháng trước cách đây | |
|---|---|---|
| .. | ||
| CombineSample | 4d2b60dc75 Updated to SwiftFormat 0.52.10 (#12125) | 2 năm trước cách đây |
| CombineSample.xcodeproj | a0fd16d383 [Infra] Bump podspec min. versions (#15015) | 9 tháng trước cách đây |
| CombineSample.xcworkspace | f9929d0a9a Combine: Add a sample app (#8113) | 4 năm trước cách đây |
| README.md | f9929d0a9a Combine: Add a sample app (#8113) | 4 năm trước cách đây |
This sample demonstrates how to use Firebase's Combine APIs.
GoogleServices-Info.plist and drag it into your project (it's easiest if you place it just next to Info.plist)Currently, Combine support for Firebase is still under development, which is why we haven't enabled the respective Swift Package Manager products yet. You need to do so yourself:
In Package.swift, find the following lines:
// TODO: Re-enable after API review passes.
// .library(
// name: "FirebaseCombineSwift-Beta",
// targets: ["FirebaseCombineSwift"]
// ),
// .library(
// name: "FirebaseAuthCombineSwift-Beta",
// targets: ["FirebaseAuthCombineSwift"]
// ),
// .library(
// name: "FirebaseFunctionsCombineSwift-Beta",
// targets: ["FirebaseFunctionsCombineSwift"]
// ),
// .library(
// name: "FirebaseStorageCombineSwift-Beta",
// targets: ["FirebaseStorageCombineSwift"]
// ),
and uncomment them:
// TODO: Re-enable after API review passes.
.library(
name: "FirebaseCombineSwift-Beta",
targets: ["FirebaseCombineSwift"]
),
.library(
name: "FirebaseAuthCombineSwift-Beta",
targets: ["FirebaseAuthCombineSwift"]
),
.library(
name: "FirebaseFunctionsCombineSwift-Beta",
targets: ["FirebaseFunctionsCombineSwift"]
),
.library(
name: "FirebaseStorageCombineSwift-Beta",
targets: ["FirebaseStorageCombineSwift"]
),
The app should now compile.