mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-09 22:36:01 +05:45
* Add FIRRequest * Make FIRPredicate public * Make init public * Bugfixes * Add debug print * Move to main thread * Undo "Move to main thread" * Add FirebaseStore * Add placeholder value * Treat CollectionReference as Query * Change let to var * Replace getDocuments with addSnapshotListener * Feedback from review * Add sample project * Rename folder, Rename FirebaseStore to QueryStore, Rename FIRRequest to FirestoreQuery, Rename several functions, attributes and parameter labels, Extend error handling * Update some access specifiers, Add factory methods * Add orderBy and limitTo * Update Copyright, Rename FIRPredicate to QueryPredicate, Rename QueryStore to FirestoreQueryObservable, Rename some parameters, Remove setter for wrappedValue * Rename store to firestoreQueryObservable * Add limitToLast * Move different types to different files * Add FirestoreQueryConfiguration and projectedValue to dynamically change predicates & collectionPath * Add Documentation * Update documentation * Add example app * Address feedback from review * Fix whitespace * Address feedback from review * Update data * Add error handling (Manually cherry pick from Morten's PR: https://github.com/chFlorian/firebase-ios-sdk/pull/2) * Update sample app to demonstrate error handling * Cleanup * Fix warning regarding unwrapping * Fix tvOS availability * Fix typos * Experimental: use @FirestoreQuery inside a view model (Hint: this doesn't work) * Fix platform availabilities * Update data * Improve error handling * Cleanup * Address feedback from review * Update data * Cleanup * Alternate signature for predicates * Address feedback from review * Remove trailing backtick Co-authored-by: Florian Schweizer <post.an.flo@gmail.com> Co-authored-by: Morten Bek Ditlevsen <bek@termestrup.dk>
Firestore Sample
This sample demonstrates how to use Firestore. At the moment, it only contains
code that shows how to use the @FirestoreQuery property wrapper.
How to use
- Install the Firebase emulator suite (see https://firebase.google.com/docs/emulator-suite/install_and_configure for details)
- Launch the local emulator suite by running the
run.shscript in this folder - You can now run
FirestoreSampleon a local iOS Simulator, the app will communicate with the local Firebase Emulator suite