smf_firebase_core 0.3.0 copy "smf_firebase_core: ^0.3.0" to clipboard
smf_firebase_core: ^0.3.0 copied to clipboard

The SMF module of Firebase for the Flutter app that SMF generates. It initializes firebase_core at start-up with the options that the FlutterFire CLI writes.

smf_firebase_core #

The SMF module of Firebase with firebase_core, which the other Firebase modules build on. It provides no role.

It adds firebase_core and lib/firebase_options.dart to the app, and bootstrap() initializes Firebase with these options. Until flutterfire configure of the FlutterFire CLI writes the options, the file is a placeholder, and the app stops at start-up.

Before generation, SMF checks what flutterfire configure needs: the Firebase CLI, a login that Google still accepts, flutterfire_cli 1.4.1 or a later 1.x, and on macOS the Ruby gem xcodeproj. In a terminal, it offers to set up what it can, asking first, and to log in again when the login has expired. After generation, it asks whether to run flutterfire configure, and prints the command to run later when the run cannot. On macOS, it then fixes the build phase that flutterfire adds for Crashlytics, so that flutter build ipa finds the upload script. An app with Crashlytics that flutterfire_cli 1.4.0 configured fails to build for iOS with Swift Package Manager until it is configured again with 1.4.1; see Firebase.

Use with the SMF CLI #

smf create asks which infrastructure modules the app has, and offers this one. It also comes with the other Firebase modules. To choose it without the question:

smf create my_app -m firebase_core

You don't add this package to an app yourself: smf create of the SMF CLI puts what the module generates into the app.

SMF generates apps for Flutter 3.44 or newer and Dart 3.12 or newer. It is tested on macOS, Linux and Windows.

Documentation #

0
likes
0
points
741
downloads

Documentation

Documentation

Publisher

verified publishersaymyframe.com

Weekly Downloads

The SMF module of Firebase for the Flutter app that SMF generates. It initializes firebase_core at start-up with the options that the FlutterFire CLI writes.

Homepage
Repository (GitHub)
View/report issues

Topics

#flutter #firebase #flutterfire

License

unknown (license)

Dependencies

mason, smf_contracts

More

Packages that depend on smf_firebase_core