FirebaseInitializer class

Bootstraps Firebase resources that the orchestrator depends on.

This service intentionally avoids any project-wide side effects beyond creating the default Firestore database and the default Storage bucket. All operations are idempotent: an already-existing resource is treated as success.

All shell commands are routed through ProcessRunner for testability.

Constructors

FirebaseInitializer(String projectId, {ProcessRunner? runner})

Properties

hashCode → int
The hash code for this object.
no setterinherited
projectId → String
Firebase / GCP project id.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

enableAuthProviders({required Set<AuthProvider> providers, bool interactive = true}) → Future<AuthProvidersResult>
Walk the user through enabling each requested Firebase Auth provider.
ensureFirestoreDatabase({String region = 'nam5'}) → Future<FirestoreInitResult>
Ensure the default Firestore database exists for projectId.
ensureStorageBucket({String location = 'US'}) → Future<StorageInitResult>
Ensure the default Firebase Storage bucket exists for projectId.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

apiEnableUrl(String projectId, String api) → String
Console URL that lets the user enable a single Google API on a project. Used in error messages so the wizard can render a clickable link.
authDomainsConsoleUrl(String projectId) → String
URL to the Authentication > Settings > Authorized domains tab.
authProvidersConsoleUrl(String projectId) → String
URL to the Authentication > Sign-in method tab in the Firebase Console.
firestoreConsoleUrl(String projectId) → String
URL to view Firestore in the console.
getStartedUrl(String projectId) → String
URL to enable Firebase Storage in the console.
oauthConsentUrl(String projectId) → String
URL to the Google OAuth consent screen / client configuration.