Upgrading cloud_firestore 4 to 5
Breaking4.17.5 → 5.6.12Platform2New4Changed3Fixed14Other2
BreakingUpgrade verdict
2 platform requirement changes.
In plain terms
- On Apple platforms, the Firestore plugin can now be installed using Swift Package Manager instead of only CocoaPods.
- Android apps must now target at least Android 5.0 (API 21), or Android 6.0 (API 23) when using auth, to work with the upcoming Firebase Android BOM 33.0.0 and later.
Must act 2 items need code or config changes
Dart SDK requirement changed in 5.1.0: >=2.18.0 <4.0.0 → >=3.2.0 <4.0.0.
What you must change
Platform2
Adds Swift Package Manager support for Firestore.
Android plugins now require
minSdk 21, and auth requires minSdk 23, ahead of Android BOM >=33.0.0.minSdkAPI changes
Generated by DepDelta from published Dart source. Not mixed with prose notes.
- added:
class PersistentCacheIndexManager - added:
method FirebaseFirestore.persistentCacheIndexManager(): PersistentCacheIndexManager? - added:
method PersistentCacheIndexManager.deleteAllIndexes(): Future<void> - added:
method PersistentCacheIndexManager.disableIndexAutoCreation(): Future<void> - added:
method PersistentCacheIndexManager.enableIndexAutoCreation(): Future<void>