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

Commit

Permalink
Nested GeoPoint gets saved as object in Firestore on iOS #947
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Oct 9, 2018
1 parent e763c41 commit f95aeb9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions demo-ng/app/tabs/firestore/firestore.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ export class FirestoreComponent {
.update({
name: "Woofieupdate",
last: "updatedwoofie!",
nested: {
nestedFoo: "bar",
nestedUpdateTs: firestore.FieldValue.serverTimestamp(),
nestedLastKnownLocation: firebase.firestore().GeoPoint(4.34, 5.67),
nestedLastKnownLocation2: firestore.GeoPoint(4.34, 5.67)
},
city: sfDocRef,
updateTs: firestore.FieldValue.serverTimestamp(),
updateTsAlt: firebase.firestore().FieldValue().serverTimestamp(),
Expand Down
2 changes: 1 addition & 1 deletion demo-ng/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"nativescript-angular": "^6.1.0",
"nativescript-camera": "^4.0.2",
"nativescript-imagepicker": "~6.0.4",
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-7.1.2.tgz",
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-7.1.4.tgz",
"nativescript-theme-core": "~1.0.4",
"reflect-metadata": "~0.1.10",
"rxjs": "~6.0.0 || >=6.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nativescript-plugin-firebase",
"version": "7.1.3",
"version": "7.1.4",
"description": "Fire. Base. Firebase!",
"main": "firebase",
"typings": "index.d.ts",
Expand Down

0 comments on commit f95aeb9

Please sign in to comment.