Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift Codable and Extension DocumentSnapshot #2636

Closed
wants to merge 188 commits into from

Conversation

1amageek
Copy link

@1amageek 1amageek commented Mar 26, 2019

Discussion

Continue Firestore codable after squashing #838 and #2178
#2229

Testing

Add DocumentSnapshot test

API Changes

Add toObject to DocumentSnapshot.
It is based on android sdk.

https://github.com/firebase/firebase-android-sdk/blob/29fa815997572914b02226430a70409198795669/firebase-firestore-ktx/src/main/kotlin/com/google/firebase/firestore/ktx/Firestore.kt#L118

ryanwilson and others added 30 commits January 28, 2019 18:05
* Prevent Messaging and IID singleton usage during tests.

* Remove other uses of static Messaging instance.

* Removed usages of messagingForTests.

* Remove unused imports, unify testing code.

* Use local import path instead of framework import.
* Reorder tests to match Android
* Add missing NS_ASSUME_NONNULL_BEGIN
* Add missing [self awaitExpectations]
* Port can write very large batches from Android
* Remove FSTMutationQueue
This XCode target started failing on Travis for no clear reason. This isn't reproducible locally; remove the target to unblock development.
…8) (firebase#2334)

* Log swiftformat version in non-interactive builds.
* Use a mildly-terrible regex for version check to ensure at least 0.35.0 (travis has 0.35.8).
* Include StorageViewController.swift change swiftformat 0.38 makes (but which seems to be compatible with 0.35)
* Fix new Xcode 10.2 warning
This is to remove ambiguity from other `iam` acronyms.
* FIRInAppMessagingDisplayMessage and FIRInAppMessagingDisplayDelegate refactor + downstream changes

* More downstream changes from FIRInAppMessagingDisplayDelegate, calling through to app-side delegate from default display executor

* Add delegate property on FIRInAppMessaging

* Display SDK changes to pass through in app message with callbacks

* Headless SDK unit test refactoring

* Display test app downstream changes

* Pull in headless SDK in display app, no need to have this come in as a framework anymore

* Run scripts/style.sh

* Remove WIP test

* Refactor FIRIAMDIsplayExecutor to take an InAppMessaging object for testing

* Depend on FirebaseAnalyticsInterop in UI test app

* File imports for FIRInAppMessaging files

* Remove FirebaseInAppMessaging imports
maksymmalyhin and others added 19 commits March 22, 2019 14:50
* Port FSTLocalDocumentsView to C++.
* Replace callers of FSTLocalDocumentsView
* Remove FSTLocalDocumentsView
All the various table drivers that need to navigate back must use weak
pointers to get there because the parent owns the children.
* Add nanopb::CheckedSize

Fix implicit narrowing warnings and reduce pb_size_t copypasta.

* Rename local::DocumentReference to DocumentKeyReference

This cleans up a build-time warning about a duplicate file in the Copy
Headers phase and cleans up a massive duplicate id warning during pod
install.
* Replace FSTDocumentSet's guts with immutable::SortedSet.

* Port FSTDocumentSet to C++ DocumentSet.

* Replace implementation of FSTDocumentSet with C++ DocumentSet

* Update all usages of FSTDocumentSet

* Remove FSTDocumentSet

* Add Objective-C++ guard

* Use absl::c_equal instead of hand-rolling it.

* Split SortedContainer out of SortedMapBase

... and use it

* Fix NSNotFound -> npos

* Remove = default constructors that aren't true.

These are implicitly deleted because DocumentSet is a member and isn't
default constructible.

* Fix usage of FSTQuery.limit
* Add a lint check for ostream

* Actaully #include <ostream> to undefined stream insertion operators at link time
@paulb777
Copy link
Member

@1amageek Thanks! Would you retarget the PR to the pb-codable3 branch to make it easier to see the diffs? We can retarget back to master before merging.

@1amageek 1amageek changed the base branch from master to pb-codable3 March 26, 2019 16:02
@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

ℹ️ Googlers: Go here for more info.

@1amageek
Copy link
Author

@paulb777
Thank you for your comment. I will close this PR.

@1amageek 1amageek closed this Mar 27, 2019
@firebase firebase locked and limited conversation to collaborators Oct 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.