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

Commit b50c681

Browse files
author
Pierre BOULC'H
committed
2 parents 2a8745b + 5c8772c commit b50c681

35 files changed

+1311
-363
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ src/platforms/android/include.gradle
1717
!src/references.d.ts
1818
!src/analytics/analytics.d.ts
1919
!src/crashlytics/crashlytics.d.ts
20+
!src/performance/performance.d.ts
2021
!src/storage/storage.d.ts
2122
!src/admob/admob.d.ts
2223
!src/messaging/messaging.d.ts

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ android:
22
components:
33
- tools
44
- platform-tools
5-
- build-tools-26.0.2
5+
- build-tools-27.0.3
66
- android-23
77
- android-26
88
- extra-android-m2repository
9-
- sys-img-armeabi-v7a-android-21
109

1110
before_cache:
1211
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
@@ -55,15 +54,15 @@ matrix:
5554
env:
5655
- Webpack="Android"
5756
jdk: oraclejdk8
58-
before_install: nvm install 8.9.1
57+
before_install: nvm install 8.11.4
5958
script: travis_wait travis_retry tns build android --bundle
6059
- stage: "Build"
6160
env:
6261
- BuildAndroid="26"
6362
language: android
6463
os: linux
6564
jdk: oraclejdk8
66-
before_install: nvm install 8.9.1
65+
before_install: nvm install 8.11.4
6766
script:
6867
- travis_wait travis_retry tns build android
6968
- os: osx

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
[Firebase iOS SDK Changelog](https://firebase.google.com/support/release-notes/ios)
44
[Firebase Android SDK Changelog](https://firebase.google.com/support/release-notes/android)
55

6+
## 7.3.0 (2018, October 24)
7+
[Fixes & Enhancements](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/milestone/80?closed=1)
8+
9+
610
## 7.2.0 (2018, October 19)
711
[Fixes & Enhancements](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/milestone/79?closed=1)
812

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# NativeScript Firebase plugin
22

3+
[![Build Status][build-status]][build-url]
34
[![NPM version][npm-image]][npm-url]
45
[![Downloads][downloads-image]][npm-url]
56
[![Twitter Follow][twitter-image]][twitter-url]
@@ -24,6 +25,7 @@
2425
* [Crash Reporting / Crashlytics](docs/CRASHREPORTING.md)
2526
* [Invites and Dynamic Links](docs/INVITES_DYNAMICLINKS.md)
2627
* [ML Kit](docs/ML_KIT.md)
28+
* [Performance Monitoring](docs/PERFORMANCE_MONITORING.md)
2729
* [Realtime Database](docs/DATABASE.md)
2830
* [Remote Config](docs/REMOTECONFIG.md)
2931
* [Storage](docs/STORAGE.md)

demo-ng/app/tabs/firestore/firestore.component.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,14 @@ export class FirestoreComponent {
230230
}
231231

232232
arrayUnion(): void {
233-
firebase.firestore().collection("dogs").doc("fave")
233+
firestore.collection("dogs").doc("fave")
234234
.update({
235235
last: "Updated From 'arrayUnion'",
236236
fieldToDelete: firestore.FieldValue.delete(),
237237
updateTs: firebase.firestore().FieldValue().serverTimestamp(),
238-
colors: firebase.firestore().FieldValue().arrayUnion(["red", "blue"])
238+
// just fyi - both of these work:
239+
colors: firestore.FieldValue.arrayUnion("red", "blue")
240+
// colors: firebase.firestore().FieldValue().arrayUnion(["red", "blue"])
239241
})
240242
.then(() => console.log("Woofie updated from 'arrayUnion'"))
241243
.catch(err => console.log("Updating Woofie from 'arrayUnion' failed, error: " + JSON.stringify(err)));
@@ -246,7 +248,7 @@ export class FirestoreComponent {
246248
.update({
247249
last: "Updated From 'arrayRemove'",
248250
updateTs: firebase.firestore().FieldValue().serverTimestamp(),
249-
colors: firebase.firestore().FieldValue().arrayRemove(["red"])
251+
colors: firebase.firestore().FieldValue().arrayRemove("red")
250252
})
251253
.then(() => console.log("Woofie updated from 'arrayRemove'"))
252254
.catch(err => console.log("Updating Woofie from 'arrayRemove' failed, error: " + JSON.stringify(err)));

demo-ng/app/tabs/mlkit/barcodescanning/barcodescanning.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<MLKitBarcodeScanner
77
width="100%"
88
height="100%"
9-
formats="QR_CODE, EAN_8, EAN_13"
9+
formats="QR_CODE, EAN_8, EAN_13, ISBN"
1010
android:processEveryNthFrame="5"
1111
ios:processEveryNthFrame="10"
1212
[torchOn]="torchOn"

demo-ng/firebase.nativescript.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"realtimedb": false,
55
"firestore": true,
66
"remote_config": false,
7+
"performance_monitoring": true,
78
"messaging": false,
89
"crash_reporting": false,
910
"crashlytics": true,

demo-ng/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"nativescript-angular": "^6.1.0",
2626
"nativescript-camera": "^4.0.2",
2727
"nativescript-imagepicker": "~6.0.4",
28-
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-7.2.0.tgz",
28+
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-7.3.0.tgz",
2929
"nativescript-theme-core": "~1.0.4",
3030
"reflect-metadata": "~0.1.10",
3131
"rxjs": "~6.0.0 || >=6.1.0",

demo-push/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
},
1111
"dependencies": {
12-
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-7.1.6.tgz",
12+
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-7.3.0.tgz",
1313
"nativescript-theme-core": "^1.0.4",
1414
"nativescript-unit-test-runner": "^0.3.4",
1515
"tns-core-modules": "~4.2.0"

demo/app/app.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ button {
7777
background-color: #1832d5;
7878
}
7979

80+
.button-performance {
81+
background-color: #d57c13;
82+
}
83+
8084
.barcodescanner {
8185
height: 420;
8286
margin-top: 16;

0 commit comments

Comments
 (0)