Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,7 @@ For concrete examples, see the [FireSideFuse Sample](https://github.com/skiptool
Once Firebase has been added to your project, you need to configure the `FirebaseApp` on app startup. This is typically done in the `onInit()` callback of the `*AppDelegate` in your `*App.swift` file. Here is a snippet from the FireSideFuse sample app:

```swift
#if os(Android)
import SkipFirebaseCore
#else
import FirebaseCore
#endif

...

/* SKIP @bridge */public final class FireSideFuseAppDelegate : Sendable {
Expand All @@ -132,11 +127,7 @@ imported Firebase modules. For example, the following actor uses the `Firestore`
```swift
// Sources/FireSideFuse/FireSideFuseApp.swift

#if os(Android)
import SkipFirebaseFirestore
#else
import FirebaseFirestore
#endif

...

Expand Down Expand Up @@ -187,11 +178,7 @@ After [setting up](#setup) your app to use Firebase, enabling push notifications

```swift
import SwiftFuseUI
#if os(Android)
import SkipFirebaseMessaging
#else
import FirebaseMessaging
#endif

final class NotificationDelegate : NSObject, UNUserNotificationCenterDelegate, Sendable {
public func requestPermission() {
Expand Down Expand Up @@ -242,11 +229,7 @@ final class NotificationDelegate : NSObject, UNUserNotificationCenterDelegate, S
```swift
// Sources/FireSideFuse/FireSideFuseApp.swift

#if os(Android)
import SkipFirebaseCore
#else
import FirebaseCore
#endif

...

Expand Down
4 changes: 3 additions & 1 deletion Sources/SkipFirebaseAnalytics/SkipFirebaseAnalytics.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
#if !SKIP_BRIDGE
#if SKIP
#if canImport(FirebaseAnalytics)
@_exported import FirebaseAnalytics
#elseif SKIP
import SkipFirebaseCore
import kotlinx.coroutines.tasks.await

Expand Down
4 changes: 3 additions & 1 deletion Sources/SkipFirebaseAppCheck/SkipFirebaseAppCheck.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
#if !SKIP_BRIDGE
#if SKIP
#if canImport(FirebaseAppCheck)
@_exported import FirebaseAppCheck
#elseif SKIP
import SkipFirebaseCore
import kotlinx.coroutines.tasks.await

Expand Down
4 changes: 3 additions & 1 deletion Sources/SkipFirebaseAuth/SkipFirebaseAuth.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
#if !SKIP_BRIDGE
#if SKIP
#if canImport(FirebaseAuth)
@_exported import FirebaseAuth
#elseif SKIP
import Foundation
import SkipFirebaseCore
import android.app.Activity
Expand Down
4 changes: 3 additions & 1 deletion Sources/SkipFirebaseCore/SkipFirebaseCore.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
#if !SKIP_BRIDGE
#if SKIP
#if canImport(FirebaseCore)
@_exported import FirebaseCore
#elseif SKIP
import Foundation
import OSLog

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
#if !SKIP_BRIDGE
#if SKIP
#if canImport(FirebaseCrashlytics)
@_exported import FirebaseCrashlytics
#elseif SKIP
import SkipFirebaseCore
import kotlinx.coroutines.tasks.await

Expand Down
4 changes: 3 additions & 1 deletion Sources/SkipFirebaseDatabase/SkipFirebaseDatabase.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
#if !SKIP_BRIDGE
#if SKIP
#if canImport(FirebaseDatabase)
@_exported import FirebaseDatabase
#elseif SKIP
import SkipFirebaseCore
import kotlinx.coroutines.tasks.await

Expand Down
4 changes: 3 additions & 1 deletion Sources/SkipFirebaseFirestore/SkipFirebaseFirestore.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
#if !SKIP_BRIDGE
#if SKIP
#if canImport(FirebaseFirestore)
@_exported import FirebaseFirestore
#elseif SKIP
import Foundation
import SkipFirebaseCore
import kotlinx.coroutines.tasks.await
Expand Down
4 changes: 3 additions & 1 deletion Sources/SkipFirebaseFunctions/SkipFirebaseFunctions.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
#if !SKIP_BRIDGE
#if SKIP
#if canImport(FirebaseFunctions)
@_exported import FirebaseFunctions
#elseif SKIP
import Foundation
import SkipFirebaseCore
import kotlinx.coroutines.tasks.await
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
#if !SKIP_BRIDGE
#if SKIP
#if canImport(FirebaseInstallations)
@_exported import FirebaseInstallations
#elseif SKIP
import SkipFirebaseCore
import kotlinx.coroutines.tasks.await

Expand Down
4 changes: 3 additions & 1 deletion Sources/SkipFirebaseMessaging/SkipFirebaseMessaging.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
#if !SKIP_BRIDGE
#if SKIP
#if canImport(FirebaseMessaging)
@_exported import FirebaseMessaging
#elseif SKIP
import Foundation
import OSLog
import SkipFirebaseCore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
#if !SKIP_BRIDGE
#if SKIP
#if canImport(FirebaseRemoteConfig)
@_exported import FirebaseRemoteConfig
#elseif SKIP
import SkipFirebaseCore
import kotlinx.coroutines.tasks.await

Expand Down
4 changes: 3 additions & 1 deletion Sources/SkipFirebaseStorage/SkipFirebaseStorage.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
#if !SKIP_BRIDGE
#if SKIP
#if canImport(FirebaseStorage)
@_exported import FirebaseStorage
#elseif SKIP
import Foundation
import SkipFirebaseCore
import kotlinx.coroutines.tasks.await
Expand Down
Loading