cloud_firestore_tvos 0.0.2
cloud_firestore_tvos: ^0.0.2 copied to clipboard
tvOS (Apple TV) implementation of the cloud_firestore Flutter plugin, bringing Cloud Firestore to Apple TV apps via the flutter-tvos toolchain.
cloud_firestore_tvos #
The tvOS (Apple TV) implementation of cloud_firestore,
provided by the flutter-tvos toolchain.
Generated by
flutter-tvos plugin portfromcloud_firestore, then completed by hand. SeePORTING_REPORT.mdfor the full list of what was changed.
Usage #
This is a federated plugin implementation. An app that already depends on
cloud_firestore and targets Apple TV only needs to add this package alongside
it:
dependencies:
cloud_firestore: ^6.6.0
cloud_firestore_tvos: ^0.0.2
The native plugin registers automatically through flutter-tvos' plugin
registrant — no extra imports or setup in app code. Use the normal
cloud_firestore API; it routes to the Apple TV native side.
tvOS support #
The Firebase Apple SDK exposes the full Firestore surface on tvOS, so no Firestore features are disabled here:
| Capability | tvOS |
|---|---|
| Reads / writes / queries / filters | ✅ |
| Real-time snapshot listeners | ✅ |
| Transactions & batched writes | ✅ |
Aggregate queries (count, sum, average) |
✅ |
| Offline persistence | ✅ |
| Bundles & the Pipeline API | ✅ (see note) |
The newest parts of the SDK surface (the Pipeline API) compile and link on tvOS but have had the least real-device verification — exercise them on actual Apple TV hardware before relying on them. See
PORTING_REPORT.md.
Requirements #
- Apple TV running tvOS 15.0 or later (the Firebase Apple SDK's minimum).
firebase_core_tvos(pulled in automatically).
Swift Package Manager #
This package ships a tvos/Package.swift. flutter-tvos links a plugin that
ships tvos/Package.swift through Swift Package Manager and leaves it out of
the Podfile. No manual setup is needed. It depends on firebase_core_tvos
0.0.4, which ships one too, and takes firebase-ios-sdk ~> 12.15.0, as in the
podspec.
Needs flutter-tvos 1.3.0 or later, the first release that links plugins through
SwiftPM, places them side by side (so ../firebase_core_tvos and
../FlutterFramework resolve) and leaves them out of the Podfile.
License #
fluttertv, under a BSD-3-Clause license. See LICENSE for the full text.