Viewing version 7.1.0. Open the latest package page.

firebase_core_platform_interface

7.1.0

A common platform interface for the firebase_core plugin.

Download archive

Readme

firebase_core_platform_interface

A common platform interface for the firebase_core plugin.

This interface allows platform-specific implementations of the firebase_core plugin, as well as the plugin itself, to ensure they are supporting the same interface.

Usage

To implement a new platform-specific implementation of firebase_core, extend FirebasePlatform with an implementation that performs the platform-specific behavior, and when you register your plugin, set the default FirebasePlatform by calling FirebasePlatform.instance = MyFirebaseCore().

Note on breaking changes

Strongly prefer non-breaking changes (such as adding a method to the interface) over breaking changes for this package.

See https://flutter.dev/go/platform-interface-breaking-changes for a discussion on why a less-clean interface is preferable to a breaking change.

Changelog

7.1.0

  • FEAT(appcheck): appcheck reCAPTCHA mobile support (gradually rolling out) (#18261). (036a860a)
  • FEAT(core): Add Recaptcha Site Key to FirebaseOptions (#18334). (57be7027)

7.0.1

  • FIX(core,iOS): use namespaced iOS Pigeon header import (#18281). (7c1257e7)

7.0.0

  • Bump platform interface a major version due to pigeon dependency update

  • REFACTOR: move all packages to workspace (#18182). (6cdfcb10)

  • FEAT: upgrade pigeon to version 26.3.4 (#18205). (cb6b4aef)

6.0.3

  • REFACTOR: fix formatting and analysis issues across the repo (#18124). (ab79fd93)

6.0.2

  • FIX: a bug with the demoProjectId arg to Firebase.initializeApp() (#17703). (09d03aac)

6.0.1

  • DOCS(firebase_core): correct androidClientId docs (was incorrectly labeled iOS-only)\n\n- Clarify as Android OAuth client ID\n- Note it is used on Android only\n\nFixes firebase/flutterfire#13519 (#17720). (0b6b13d0)

6.0.0

5.4.1

5.4.0

  • Update a dependency to the latest release.

5.3.1

  • FIX(firebase_core_platform_interface): move test APIs to test.dart (#16672). (f618a3d8)

5.3.0

  • FEAT(core): support for using SPM (Swift Package Manager) (#12786). (4e28103f)

5.2.1

  • DOCS: remove reference to flutter.io and firebase.flutter.dev (#13152). (5f0874b9)

5.2.0

  • FEAT(firebase_core_platform_interface): Add copyWith to FirebaseOptions (#13084). (c7963d63)

5.1.0

5.0.0

Note: This release has breaking changes.

  • FEAT(firestore,windows): add support to Windows (#11516). (e51d2a2d)
  • BREAKING FIX: pin pigeon for firebase_auth, cloud_firestore & firebase_core (#11715). (66c158c3)

4.8.0

  • FEAT: update dependency constraints to sdk: '>=2.18.0 <4.0.0' flutter: '>=3.3.0' (#10946). (2772d10f)

4.7.0

  • FEAT(core): add support for Windows via Firebase C++ desktop SDK (#10496). (c0b8ad56)
  • FEAT: upgrade to dart 3 compatible dependencies (#10890). (4bd7e59b)

4.6.0

4.5.3

  • REFACTOR: upgrade project to remove warnings from Flutter 3.7 (#10344). (e0087c84)

4.5.2

  • REFACTOR: add verify to QueryPlatform and change internal verifyToken API to verify (#9711). (c99a842f)

4.5.1

4.5.0

4.4.3

  • FIX: bump firebase_core_platform_interface version to fix previous release. (bea70ea5)

4.4.2

  • Manual version to fix previous release.

4.4.1

  • REFACTOR: migrate from hash* to Object.hash* (#8797). (3dfc0997)
  • REFACTOR: use "firebase" instead of "FirebaseExtended" as organisation in all links for this repository (#8791). (d90b8357)

4.4.0

  • FEAT: allow initializing default Firebase apps via FirebaseOptions.fromResource on Android (#8566). (30216c4a)

4.3.0

  • FEAT: allow initializing default Firebase apps via FirebaseOptions.fromResource on Android (#8566). (30216c4a)

4.2.5

  • FIX: update all Dart SDK version constraints to Dart >= 2.16.0 (#8184). (df4a5bab)

4.2.4

  • FIX: allow secondary Firebase App initialization without duplicate app error on hot restart (#7953). (f4a2c2e6)
  • FIX: Fix FirebaseException error code bug by making default value: "unknown". (#6897). (48fed37c)

4.2.3

  • REFACTOR: fix all unnecessary_import analyzer issues introduced with Flutter 2.8. (7f0e82c9)

4.2.2

  • FIX: correctly detect not-initialized errors and provide a better error message. (0578423e)

4.2.1

  • FIX: loosen duplicate app detection checks to allow unset options not to cause a duplicate app exception (#7499).

4.2.0

  • FEAT: auto inject Firebase scripts (#7358).

4.1.0

  • FEAT: support initializing default FirebaseApp instances from Dart (#6549).

4.0.1

  • FIX: Fix FirebaseOptions hashCode (#3263).
  • DOCS: Add missing homepage/repository links (#6054).
  • CHORE: bump min Dart SDK constraint to 2.12.0 (#5430).
  • CHORE: merge all analysis_options.yaml into one (#5329).

4.0.0

  • Graduate package to a stable release. See pre-releases prior to this version for changelog entries.

4.0.0-1.0.nullsafety.1

  • REFACTOR: pubspec & dependency updates (#4932).

4.0.0-1.0.nullsafety.0

  • Bump "firebase_core_platform_interface" to 4.0.0-1.0.nullsafety.0.

4.0.0-nullsafety.0

Major bump for the null-safety version to respect the versioning convention.

3.0.2-nullsafety.0

  • REFACTOR: Migrate to non-nullable types (#4656).

3.0.1

  • DOCS: installation links updated (#4479).

3.0.0

Note: This release has breaking changes.

  • BREAKING REFACTOR: remove all currently deprecated APIs.

2.1.0

  • FEAT: add FirebaseException.stackTrace support (#4095).
  • CHORE: promote to stable version.

2.0.0

  • DEPRECATED: FirebaseApp.configure method is now deprecated in favor of the Firebase.initializeApp method.

  • DEPRECATED: FirebaseApp.allApps method is now deprecated in favor of the Firebase.apps property.

    • Previously, allApps was asynchronous where it is now synchronous.
  • DEPRECATED: FirebaseApp.appNamed method is now deprecated in favor of the Firebase.app method.

  • BREAKING: FirebaseApp.options getter is now synchronous.

  • FirebaseOptions has been reworked to better match web property names:

    • DEPRECATED: googleAppID is now deprecated in favor of appId.
    • DEPRECATED: projectID is now deprecated in favor of projectId.
    • DEPRECATED: bundleID is now deprecated in favor of bundleId.
    • DEPRECATED: clientID is now deprecated in favor of androidClientId.
    • DEPRECATED: trackingID is now deprecated in favor of trackingId.
    • DEPRECATED: gcmSenderID is now deprecated in favor of messagingSenderId.
    • Added support for authDomain.
    • Added support for trackingId.
    • Required properties are now apiKey, appId, messagingSenderId & projectId.
  • Added support for deleting Firebase app instances via the delete method on FirebaseApp.

  • Added support for returning consistent error messages from firebase-dart plugin.

    • Any FlutterFire related errors now throw a FirebaseException.
  • Added a FirebaseException class to handle all FlutterFire related errors.

    • Matching the web sdk, the exception returns a formatted "[plugin/code] message" message when thrown.
  • Added support for setAutomaticDataCollectionEnabled & isAutomaticDataCollectionEnabled on a FirebaseApp instance.

  • Added support for setAutomaticResourceManagementEnabled on a FirebaseApp instance.

1.0.5

  • Update lower bound of dart dependency to 2.0.0.

1.0.4

  • Migrate to package:plugin_platform_interface.

1.0.3

  • Make the pedantic dev_dependency explicit.

1.0.2

  • Remove the deprecated author: field from pubspec.yaml

1.0.1

  • Switch away from quiver_hashcode.

1.0.0

  • Initial open-source release.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'firebase_core_platform_interface:7.1.0'
pubspec.yaml
name: firebase_core_platform_interface
description: A common platform interface for the firebase_core plugin.
homepage: https://github.com/firebase/flutterfire/tree/main/packages/firebase_core/firebase_core_platform_interface
repository: https://github.com/firebase/flutterfire/tree/main/packages/firebase_core/firebase_core_platform_interface
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version: 7.1.0
resolution: workspace

environment:
  sdk: '^3.6.0'
  flutter: '>=3.27.0'

dependencies:
  collection: ^1.0.0
  flutter:
    sdk: flutter
  # Needed to export the mocks
  flutter_test:
    sdk: flutter
  meta: ^1.8.0
  plugin_platform_interface: ^2.1.3

dev_dependencies:
  mockito: ^5.4.0
  pigeon: 26.3.4

Version history

VersionPublishedArchiveSHA-256
1.0.0Cached · Upstream SHA-256 matchedDownload6a95a229…7c0ca8
1.0.2Cached · Upstream SHA-256 matchedDownload1dd535cb…f57eca
1.0.3Cached · Upstream SHA-256 matchedDownloadb6b6cb79…644f02
1.0.4Cached · Upstream SHA-256 matchedDownloadfc3a2f1e…2e306b
2.0.0-dev.1Cached · Upstream SHA-256 matchedDownload6b906288…da8dc9
2.0.0Cached · Upstream SHA-256 matchedDownloadfe2654dd…7c3e13
2.1.0Cached · Upstream SHA-256 matchedDownloadbd0e7855…b2c318
3.0.0Cached · Upstream SHA-256 matchedDownloadd2452011…561f96
3.0.1Cached · Upstream SHA-256 matchedDownload1d0f7883…0b5917
3.0.2-nullsafety.0Cached · Upstream SHA-256 matchedDownload5ffb74f6…b7d577
4.0.0-1.0.nullsafety.0Cached · Upstream SHA-256 matchedDownload2f953d4d…79556e
4.0.0-1.0.nullsafety.1Cached · Upstream SHA-256 matchedDownload8d2fb079…39df45
4.0.0-nullsafety.0Cached · Upstream SHA-256 matchedDownload42513479…40857b
4.0.0Cached · Upstream SHA-256 matchedDownloadc8c6d394…ce2a25
4.0.1Cached · Upstream SHA-256 matchedDownload262627ff…7cae1c
4.1.0Cached · Upstream SHA-256 matchedDownload8f0281f5…09b69f
4.2.0Cached · Upstream SHA-256 matchedDownload137818ca…7de1db
4.2.1Cached · Upstream SHA-256 matchedDownload6a46712e…bf9537
4.2.2Cached · Upstream SHA-256 matchedDownloadc3a4b063…ffbd7a
4.2.3Cached · Upstream SHA-256 matchedDownloade18d9f76…9c226d
4.2.4Cached · Upstream SHA-256 matchedDownloadf9af376a…f028a0
4.2.5Cached · Upstream SHA-256 matchedDownload3ddf8585…3539fd
4.3.0Cached · Upstream SHA-256 matchedDownload8ee24e9c…ff6b6a
4.4.0Cached · Upstream SHA-256 matchedDownload4292dfcc…cc9f1a
4.4.1Cached · Upstream SHA-256 matchedDownload3cd70171…a8ef3c
4.4.3Cached · Upstream SHA-256 matchedDownload195560ee…2fe645
4.5.0Cached · Upstream SHA-256 matchedDownloada78327f0…7ad5b4
4.5.1Cached · Upstream SHA-256 matchedDownloadb51257a8…741bdb
4.5.2Cached · Upstream SHA-256 matchedDownload5fab93f5…3accd4
4.5.3Cached · Upstream SHA-256 matchedDownload5615b30c…6cfa55
4.6.0Cached · Upstream SHA-256 matchedDownload0df0a064…d8022b
4.7.0Cached · Upstream SHA-256 matchedDownloadae79f335…ccad48
4.8.0Cached · Upstream SHA-256 matchedDownloadb63e3be6…94cba2
5.0.0Cached · Upstream SHA-256 matchedDownloadc437ae5d…a9fe63
5.1.0Cached · Upstream SHA-256 matchedDownload1003a5a0…fc32cb
5.2.0Cached · Upstream SHA-256 matchedDownload3c3a1e92…85ee02
5.2.1Cached · Upstream SHA-256 matchedDownloadf7d7180c…a66315
5.3.0Cached · Upstream SHA-256 matchedDownloade30da581…9ce810
5.3.1Cached · Upstream SHA-256 matchedDownloadb94b217e…0ad2a6
5.4.0Cached · Upstream SHA-256 matchedDownloadd7253d25…d1f0bf
5.4.1Cached · Upstream SHA-256 matchedDownload5d2ab457…26a0e0
5.4.2Cached · Upstream SHA-256 matchedDownload8bcfad6d…011bbb
6.0.0Cached · Upstream SHA-256 matchedDownload5dbc9006…c838eb
6.0.1Cached · Upstream SHA-256 matchedDownload5873a370…2f60f0
6.0.2Cached · Upstream SHA-256 matchedDownloadcccb4f57…341c64
6.0.3Cached · Upstream SHA-256 matchedDownload0ecda14c…a473ce
7.0.0Cached · Upstream SHA-256 matchedDownload7aafd426…ea5dee
7.0.1Cached · Upstream SHA-256 matchedDownload4a120366…7e555b
7.1.0Cached · Upstream SHA-256 matchedDownload913e7c96…de98b6
8.0.0Cached · Upstream SHA-256 matchedDownloadf74d1d6f…a7d938
8.1.0Cached · Upstream SHA-256 matchedDownloade28f9afd…a2089a
8.1.1Cached · Upstream SHA-256 matchedDownload9bfbc85f…1902d8

Dependencies

collection "^1.0.0"

flutter { "sdk": "flutter" }

flutter_test { "sdk": "flutter" }

meta "^1.8.0"

plugin_platform_interface "^2.1.3"