| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…nd added a FirebaseOptions#setFireStoreTimestampsInSnapshotsEnabled(boolean) method. The FirestoreOptions#setTimestampsInSnapshotsEnabled(boolean) method is then called in the FirestoreClient constructor with the value passed to the FirebaseOptions#setFireStoreTimestampsInSnapshotsEnabled(boolean) method. This allows for firebase-admin-java users to adapt to the Timestamps being returned in DocumentSnapshots as added in googleapis/google-cloud-java#3317 com.google.api:gax was added as a dependency to the pom.xml file as there were "java.lang.NoClassDefFoundError: com/google/api/gax/rpc/ClientStream" errors when running "mvn test" without this dependency. A couple of tests were also added to the FirestoreClientTest class.
|
There is already some work to support this. Plan is to support passing an entire FirestoreOptions object into FirebaseOptions. |
Sorry, something went wrong.
Great! I see your recent commits on #203 . I wasn't sure if exposing the whole FirestoreOptions object was going to be accepted in the code review, so I tried just exposing only what I needed. Thanks for working on this @hiranya911 ! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
…and added a FirebaseOptions#setFireStoreTimestampsInSnapshotsEnabled(boolean) method.
The FirestoreOptions#setTimestampsInSnapshotsEnabled(boolean) method is then called in the FirestoreClient constructor with the value passed to the FirebaseOptions#setFireStoreTimestampsInSnapshotsEnabled(boolean) method.
This allows for firebase-admin-java users to adapt to the Timestamps being returned in DocumentSnapshots as added in googleapis/google-cloud-java#3317
com.google.api:gax was added as a dependency to the pom.xml file as there were "java.lang.NoClassDefFoundError: com/google/api/gax/rpc/ClientStream" errors when running "mvn test" without this dependency.
A couple of tests were also added to the FirestoreClientTest class.
See also issue #204.