Skip to content
Merged
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
32 changes: 20 additions & 12 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ let package = Package(
.product(name: "SkipModel", package: "skip-model"),
// we would like to use "FirebaseCore", but it is not exposed as a product;
// "FirebaseInstallations" is the next best thing, since it has few depencencies
.product(name: "FirebaseInstallations", package: "firebase-ios-sdk"),
.product(name: "FirebaseInstallations", package: "firebase-ios-sdk", condition: .when(platforms: [.macOS, .iOS, .tvOS, .watchOS, .macCatalyst])),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseCoreTests", dependencies: [
"SkipFirebaseCore",
Expand All @@ -48,7 +48,7 @@ let package = Package(

.target(name: "SkipFirebaseFirestore", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseFirestore", package: "firebase-ios-sdk"),
.product(name: "FirebaseFirestore", package: "firebase-ios-sdk", condition: .when(platforms: [.macOS, .iOS, .tvOS, .watchOS, .macCatalyst])),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseFirestoreTests", dependencies: [
"SkipFirebaseFirestore",
Expand All @@ -57,7 +57,7 @@ let package = Package(

.target(name: "SkipFirebaseAuth", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseAuth", package: "firebase-ios-sdk"),
.product(name: "FirebaseAuth", package: "firebase-ios-sdk", condition: .when(platforms: [.macOS, .iOS, .tvOS, .watchOS, .macCatalyst])),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseAuthTests", dependencies: [
"SkipFirebaseAuth",
Expand All @@ -66,7 +66,7 @@ let package = Package(

.target(name: "SkipFirebaseAppCheck", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseAppCheck", package: "firebase-ios-sdk"),
.product(name: "FirebaseAppCheck", package: "firebase-ios-sdk", condition: .when(platforms: [.macOS, .iOS, .tvOS, .watchOS, .macCatalyst])),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseAppCheckTests", dependencies: [
"SkipFirebaseAppCheck",
Expand All @@ -76,7 +76,7 @@ let package = Package(
.target(name: "SkipFirebaseMessaging", dependencies: [
"SkipFirebaseCore",
.product(name: "SkipUI", package: "skip-ui"),
.product(name: "FirebaseMessaging", package: "firebase-ios-sdk"),
.product(name: "FirebaseMessaging", package: "firebase-ios-sdk", condition: .when(platforms: [.macOS, .iOS, .tvOS, .watchOS, .macCatalyst])),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseMessagingTests", dependencies: [
"SkipFirebaseMessaging",
Expand All @@ -85,7 +85,7 @@ let package = Package(

.target(name: "SkipFirebaseCrashlytics", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseCrashlytics", package: "firebase-ios-sdk"),
.product(name: "FirebaseCrashlytics", package: "firebase-ios-sdk", condition: .when(platforms: [.macOS, .iOS, .tvOS, .watchOS, .macCatalyst])),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseCrashlyticsTests", dependencies: [
"SkipFirebaseCrashlytics",
Expand All @@ -94,7 +94,7 @@ let package = Package(

.target(name: "SkipFirebaseAnalytics", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseAnalytics", package: "firebase-ios-sdk"),
.product(name: "FirebaseAnalytics", package: "firebase-ios-sdk", condition: .when(platforms: [.macOS, .iOS, .tvOS, .watchOS, .macCatalyst])),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseAnalyticsTests", dependencies: [
"SkipFirebaseAnalytics",
Expand All @@ -103,7 +103,7 @@ let package = Package(

.target(name: "SkipFirebaseRemoteConfig", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseRemoteConfig", package: "firebase-ios-sdk"),
.product(name: "FirebaseRemoteConfig", package: "firebase-ios-sdk", condition: .when(platforms: [.macOS, .iOS, .tvOS, .watchOS, .macCatalyst])),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseRemoteConfigTests", dependencies: [
"SkipFirebaseRemoteConfig",
Expand All @@ -112,7 +112,7 @@ let package = Package(

.target(name: "SkipFirebaseDatabase", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseDatabase", package: "firebase-ios-sdk"),
.product(name: "FirebaseDatabase", package: "firebase-ios-sdk", condition: .when(platforms: [.macOS, .iOS, .tvOS, .watchOS, .macCatalyst])),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseDatabaseTests", dependencies: [
"SkipFirebaseDatabase",
Expand All @@ -121,7 +121,7 @@ let package = Package(

.target(name: "SkipFirebaseFunctions", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseFunctions", package: "firebase-ios-sdk"),
.product(name: "FirebaseFunctions", package: "firebase-ios-sdk", condition: .when(platforms: [.macOS, .iOS, .tvOS, .watchOS, .macCatalyst])),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseFunctionsTests", dependencies: [
"SkipFirebaseFunctions",
Expand All @@ -130,7 +130,7 @@ let package = Package(

.target(name: "SkipFirebaseInstallations", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseInstallations", package: "firebase-ios-sdk"),
.product(name: "FirebaseInstallations", package: "firebase-ios-sdk", condition: .when(platforms: [.macOS, .iOS, .tvOS, .watchOS, .macCatalyst])),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseInstallationsTests", dependencies: [
"SkipFirebaseInstallations",
Expand All @@ -139,11 +139,19 @@ let package = Package(

.target(name: "SkipFirebaseStorage", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseStorage", package: "firebase-ios-sdk"),
.product(name: "FirebaseStorage", package: "firebase-ios-sdk", condition: .when(platforms: [.macOS, .iOS, .tvOS, .watchOS, .macCatalyst])),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseStorageTests", dependencies: [
"SkipFirebaseStorage",
.product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: skipstone),
]
)

if ProcessInfo.processInfo.environment["SKIP_BRIDGE"] ?? "0" != "0" {
package.dependencies += [.package(url: "https://source.skip.tools/skip-bridge.git", "0.0.0"..<"2.0.0")]
package.targets.forEach({ target in
target.dependencies += [.product(name: "SkipBridge", package: "skip-bridge")]
})
}

2 changes: 2 additions & 0 deletions Sources/SkipFirebaseAnalytics/SkipFirebaseAnalytics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// under the terms of the GNU Lesser General Public License 3.0
// as published by the Free Software Foundation https://fsf.org

#if !SKIP_BRIDGE
#if SKIP
import SkipFirebaseCore
import kotlinx.coroutines.tasks.await
Expand All @@ -27,3 +28,4 @@ public final class Analytics {
}
}
#endif
#endif
2 changes: 2 additions & 0 deletions Sources/SkipFirebaseAppCheck/SkipFirebaseAppCheck.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// under the terms of the GNU Lesser General Public License 3.0
// as published by the Free Software Foundation https://fsf.org

#if !SKIP_BRIDGE
#if SKIP
import SkipFirebaseCore
import kotlinx.coroutines.tasks.await
Expand All @@ -25,3 +26,4 @@ public final class AppCheck {
}
}
#endif
#endif
2 changes: 2 additions & 0 deletions Sources/SkipFirebaseAuth/SkipFirebaseAuth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// under the terms of the GNU Lesser General Public License 3.0
// as published by the Free Software Foundation https://fsf.org

#if !SKIP_BRIDGE
#if SKIP
import SkipFoundation
import SkipFirebaseCore
Expand Down Expand Up @@ -226,3 +227,4 @@ public class UserProfileChangeRequest/*: KotlinConverting<com.google.firebase.au
}

#endif
#endif
2 changes: 2 additions & 0 deletions Sources/SkipFirebaseCore/SkipFirebaseCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// under the terms of the GNU Lesser General Public License 3.0
// as published by the Free Software Foundation https://fsf.org

#if !SKIP_BRIDGE
#if SKIP
import Foundation
import OSLog
Expand Down Expand Up @@ -142,3 +143,4 @@ public final class FirebaseOptions {
}

#endif
#endif
2 changes: 2 additions & 0 deletions Sources/SkipFirebaseCrashlytics/SkipFirebaseCrashlytics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// under the terms of the GNU Lesser General Public License 3.0
// as published by the Free Software Foundation https://fsf.org

#if !SKIP_BRIDGE
#if SKIP
import SkipFirebaseCore
import kotlinx.coroutines.tasks.await
Expand All @@ -25,3 +26,4 @@ public final class Crashlytics {
// }
}
#endif
#endif
2 changes: 2 additions & 0 deletions Sources/SkipFirebaseDatabase/SkipFirebaseDatabase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// under the terms of the GNU Lesser General Public License 3.0
// as published by the Free Software Foundation https://fsf.org

#if !SKIP_BRIDGE
#if SKIP
import SkipFirebaseCore
import kotlinx.coroutines.tasks.await
Expand All @@ -25,3 +26,4 @@ public final class Database {
}
}
#endif
#endif
2 changes: 2 additions & 0 deletions Sources/SkipFirebaseFirestore/SkipFirebaseFirestore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// under the terms of the GNU Lesser General Public License 3.0
// as published by the Free Software Foundation https://fsf.org

#if !SKIP_BRIDGE
#if SKIP
import Foundation
import SkipFirebaseCore
Expand Down Expand Up @@ -1117,3 +1118,4 @@ fileprivate func deepSwift(collection: kotlin.collections.Collection<Any>) -> Ar
}

#endif
#endif
2 changes: 2 additions & 0 deletions Sources/SkipFirebaseFunctions/SkipFirebaseFunctions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// under the terms of the GNU Lesser General Public License 3.0
// as published by the Free Software Foundation https://fsf.org

#if !SKIP_BRIDGE
#if SKIP
import SkipFoundation
import SkipFirebaseCore
Expand Down Expand Up @@ -95,3 +96,4 @@ public class HTTPSCallableResult: KotlinConverting<com.google.firebase.functions
}

#endif
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// under the terms of the GNU Lesser General Public License 3.0
// as published by the Free Software Foundation https://fsf.org

#if !SKIP_BRIDGE
#if SKIP
import SkipFirebaseCore
import kotlinx.coroutines.tasks.await
Expand All @@ -22,3 +23,4 @@ public final class Installations {
}
}
#endif
#endif
2 changes: 2 additions & 0 deletions Sources/SkipFirebaseMessaging/SkipFirebaseMessaging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// under the terms of the GNU Lesser General Public License 3.0
// as published by the Free Software Foundation https://fsf.org

#if !SKIP_BRIDGE
#if SKIP
import OSLog
import SkipFirebaseCore
Expand Down Expand Up @@ -263,3 +264,4 @@ public class MessagingMessageInfo {
}
}
#endif
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// under the terms of the GNU Lesser General Public License 3.0
// as published by the Free Software Foundation https://fsf.org

#if !SKIP_BRIDGE
#if SKIP
import SkipFirebaseCore
import kotlinx.coroutines.tasks.await
Expand All @@ -22,3 +23,4 @@ public final class RemoteConfig {
}
}
#endif
#endif
2 changes: 2 additions & 0 deletions Sources/SkipFirebaseStorage/SkipFirebaseStorage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// under the terms of the GNU Lesser General Public License 3.0
// as published by the Free Software Foundation https://fsf.org

#if !SKIP_BRIDGE
#if SKIP
import SkipFoundation
import SkipFirebaseCore
Expand Down Expand Up @@ -442,3 +443,4 @@ public final class StorageFileDownloadTask : StorageDownloadTask, StorageTaskMan
}

#endif
#endif