Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Firestore FieldValues and persistence #760

Merged

Conversation

pulyaevskiy
Copy link
Contributor

@pulyaevskiy pulyaevskiy commented Sep 5, 2018

  • Adds Firestore.enablePersistence
  • Adds FieldValue class with all currently supported values: arrayUnion, arrayRemove, delete, serverTimestamp
  • Adds arrayContains argument in Query.where method.

Addresses flutter/flutter#13905 and probably a bunch of other issues.

@pulyaevskiy
Copy link
Contributor Author

pulyaevskiy commented Sep 5, 2018

This requires manual pod update of Firebase/Firestore in existing projects (ios).

@kroikie
Copy link
Contributor

kroikie commented Sep 5, 2018

Looks good, thanks for this PR @pulyaevskiy, please bump the version number of the plugin and add the updates to the CHANGELOG. Would be good to make mention of the need to pod update.

@pulyaevskiy
Copy link
Contributor Author

Thanks for taking a look @kroikie ! I pushed an update with pubspec and changelog. Given nature of this update it might worth it to bump straight to 0.8.0 but I wasn't quite sure about it so put 0.7.5. Let me know if you prefer something else, I'll update accordingly.

@kroikie
Copy link
Contributor

kroikie commented Sep 5, 2018

Agree to 0.8.0.

@pulyaevskiy
Copy link
Contributor Author

Alright, done!

@kroikie kroikie merged commit b7ba85a into flutter:master Sep 5, 2018
nichtverstehen pushed a commit to nichtverstehen/plugins that referenced this pull request Sep 6, 2018
* Added support for Firestore ArrayUnion, ArrayRemove and array-contains
* Added FieldValue with support for delete and serverTimestamp values
* Added Firestore.enablePersistence
andreidiaconu pushed a commit to andreidiaconu/plugins that referenced this pull request Feb 17, 2019
* Added support for Firestore ArrayUnion, ArrayRemove and array-contains
* Added FieldValue with support for delete and serverTimestamp values
* Added Firestore.enablePersistence
andreidiaconu added a commit to andreidiaconu/plugins that referenced this pull request Feb 17, 2019
julianscheel pushed a commit to jusst-engineering/plugins that referenced this pull request Mar 11, 2020
* Added support for Firestore ArrayUnion, ArrayRemove and array-contains
* Added FieldValue with support for delete and serverTimestamp values
* Added Firestore.enablePersistence
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants