Firebase Dependencies

Firebase Dependencies is a Swift package that provides an idiomatic wrapper around Firebase’s iOS libraries. Currently, it supports Firebase Remote Configuration and Firebase Analytics, with more features coming soon.


The main motivation behind this library is supporting Dependencies. At Invia Flights, we’re big fans of Stephen and Brandon’s work, and we’re convinced that Dependencies is going to turn into the Swift de-facto standard for managing dependencies.

We also wanted to solve a specific problem: importing Firebase systematically breaks SwiftUI previews. By segregating interface and implementation —only the latter requires the original Firebase—, this library provides you with a clean workaround.


If you want to use Firebase Dependencies in a SwiftPM project, it’s as simple as adding it to your Package.swift:

dependencies: [
  .package(url: "https://github.com/invia-flights/swift-firebase-dependencies", from: "10.4.0")

And then adding the product to any target that needs access to the individual libraries:

.product(name: "FirebaseRemoteConfiguration", package: "swift-firebase-dependencies"),
.product(name: "FirebaseRemoteConfigurationLive", package: "swift-firebase-dependencies"),


This library is released under the MIT license. See LICENSE for details.