Firebase
Single access point to all Firebase SDKs, mirroring com.google.firebase.Firebase from the Firebase Android SDK.
The com.google.firebase packages in this library mirror the Firebase Android SDK API (including Task return types) so that Android code compiles unchanged on every platform; the dev.gitlive.firebase packages offer the Kotlin-first (suspending) API built on top of them. On Android and the JVM these declarations are only compiled against and never shipped: the real Firebase Android SDK classes are used.
Properties
Returns the default FirebaseApp instance.
Returns the FirebaseOptions of the default FirebaseApp.
Functions
Returns the FirebaseApp instance with the given name.
The options from GoogleService-Info.plist, or null when the bundle has none; the context is ignored.
The default FirebaseOptions of the platform's configuration, mirroring FirebaseOptions.fromResource(Context) from the Firebase Android SDK as a top-level function with the Context widened to Any? so that common code can call it. On Android they come from the resources generated by the Google Services Gradle plugin from google-services.json, on Apple platforms from GoogleService-Info.plist (the context is ignored); JS has no default configuration and returns null, as Android does when the resources are missing.
Always null: JS has no default configuration to read options from.
All initialized apps; the context is ignored.
The initialized apps, mirroring FirebaseApp.getApps(Context) from the Firebase Android SDK as a top-level function with the Context widened to Any? so that common code can call it (the static member itself cannot be given an Any? overload). On Android context must be an android.content.Context; on Apple platforms and JS it is ignored.
All initialized apps; the context is ignored.
Configures the default app from GoogleService-Info.plist; the context is ignored.
Initializes the default FirebaseApp, mirroring Firebase.initialize(Context) from the Firebase Android SDK with the Context widened to Any? so that common code can pass the platform context through.
Initializes the default FirebaseApp with options; see initialize.
Initializes the FirebaseApp called name with options; see initialize.
Not supported on JS, where the options cannot be read from a default configuration: always throws.