Firebase Core for Flutter #
A Flutter plugin to use the Firebase Core API, which enables connecting to multiple Firebase apps.
For Flutter plugins for other Firebase products, see README.md.
To use this plugin, add
firebase_core as a dependency in your pubspec.yaml file.
Getting Started #
example directory for a complete sample app using Firebase Core.
Issues and feedback #
Please file Flutterfire specific issues, bugs, or feature requests in our issue tracker.
Plugin issues that are not specific to Flutterfire can be filed in the Flutter issue tracker.
Platform.isIosfor the default app name.
- Migrate to
- Update the homepage now that the package structure has changed.
- Remove deprecated firebase-core dependency.
- Remove visibleForTesting annotation from FirebaseApp constructor.
- Updated README instructions for contributing for consistency with other Flutterfire plugins.
- Remove AndroidX warning.
- Include lifecycle dependency as a compileOnly one on Android to resolve potential version conflicts with other transitive libraries.
- Support the v2 Android embedding.
- Update documentation to reflect new repository location.
- Update unit tests to call
- Update google-services Android gradle plugin to 4.3.0 in documentation and examples.
- Fix Android compilation warning.
- Automatically use version from pubspec.yaml when reporting usage to Firebase.
- Rollback of automatic plugin version retrieval.
- Automate the retrieval of the plugin's version when reporting usage to Firebase.
- Add missing template type parameter to
- Bump minimum Flutter version to 1.5.0.
- Replace invokeMethod with invokeMapMethod wherever necessary.
- Update user agent name. Set to
flutter-fire-corefor consistency with other libraries.
- Send user agent to Firebase.
- Update Android dependencies to latest.
- Updates Android firebase-core dependency to a version that is compatible with other Flutterfire plugins.
- Remove Gradle BoM to avoid Gradle version issues.
- Move Android dependency to Gradle BoM to help maintain compatability with other FlutterFire plugins.
- Add nil check on static functions to prevent crashes or unwanted behaviors.
- Remove an assertion that can interfere with hot-restart.
- Remove categories.
- Log a more detailed warning at build time about the previous AndroidX migration.
- Breaking change. Migrate from the deprecated original Android Support Library to AndroidX. This shouldn't result in any functional changes, but it requires any Android apps using this plugin to also migrate if they're using the original support library.
- Bump Android dependencies to latest.
- Bump Android and Firebase dependency versions.
- Updated Gradle tooling to match Android Studio 3.1.2.
- Updated Google Play Services dependencies to version 15.0.0.
- Simplified podspec for Cocoapods 1.5.0, avoiding link issues in app archives.
- Fix setting project ID on Android.
- Breaking change. Options API is now async to interoperate with native code that configures Firebase apps.
- Provide a getter for the default app
- Fix setting of GCM sender ID on iOS
- Fix projectID on iOS
- Fix behavior of constructor for named Firebase apps.
- Breaking change. Set SDK constraints to match the Flutter beta release.
- Fixed Dart 2 type errors.
- Enabled use in Swift projects.
- Moved to the io.flutter.plugins org.
- Fixed warnings from the Dart 2.0 analyzer.
- Simplified and upgraded Android project template to Android SDK 27.
- Updated package description.
- Breaking change. Upgraded to Gradle 4.1 and Android Studio Gradle plugin 3.0.1. Older Flutter projects need to upgrade their Gradle setup as well in order to use this version of the plugin. Instructions can be found here.
- Fixes for database URL on Android
- Make GCM sender id optional on Android
- Relax GMS dependency to 11.+
- Initial Release
Demonstrates how to use the firebase_core plugin.
Getting Started #
For help getting started with Flutter, view our online documentation.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: firebase_core: ^0.4.2+1
2. Install it
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Dec 4, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.6.1
- pana: 0.12.21
- Flutter: 1.9.1+hotfix.6
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
|Dart SDK||>=2.0.0-dev.28.0 <3.0.0|