diff --git a/.gitignore b/.gitignore index e5bf0e71..ca865112 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ src/**/*.d.ts !src/index.d.ts !src/references.d.ts !src/analytics/analytics.d.ts +!src/mlkit/mlkit.d.ts !src/platforms/web/typings/firebase-webapi.d.ts !src/platforms/ios/typings/*.d.ts !src/platforms/android/typings/**/*.d.ts @@ -30,3 +31,4 @@ demo/report/report.html demo/report/stats.json !publish/scripts/*.js publish/package +/npm-debug.log diff --git a/README.md b/README.md index 7f877236..4249c2a3 100755 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ * [Analytics](docs/ANALYTICS.md) * [Invites and Dynamic Links](docs/INVITES_DYNAMICLINKS.md) * [AdMob](docs/ADMOB.md) +* [ML Kit](docs/ML_KIT.md) ## Prerequisites Head on over to [https://console.firebase.google.com/](https://console.firebase.google.com/) and sign up for a free account. diff --git a/demo-ng/firebase.nativescript.json b/demo-ng/firebase.nativescript.json index 0a8a63b2..1db16a41 100644 --- a/demo-ng/firebase.nativescript.json +++ b/demo-ng/firebase.nativescript.json @@ -1,6 +1,7 @@ { "using_ios": true, "using_android": true, + "realtimedb": false, "firestore": true, "remote_config": true, "messaging": true, @@ -10,5 +11,6 @@ "facebook_auth": true, "google_auth": true, "admob": true, - "invites": true + "invites": true, + "ml_kit": true } diff --git a/demo/app/app.css b/demo/app/app.css index 95728c85..71abcbcd 100644 --- a/demo/app/app.css +++ b/demo/app/app.css @@ -65,6 +65,10 @@ button { background-color: #BBBB77; } +.button-mlkit { + background-color: orange; +} + .button-messaging { background-color: #6d996c; } diff --git a/demo/app/app.ts b/demo/app/app.ts index f517e249..cff81d12 100644 --- a/demo/app/app.ts +++ b/demo/app/app.ts @@ -1,7 +1,13 @@ import "./bundle-config"; import * as application from 'tns-core-modules/application'; +import { UnhandledErrorEventData } from "tns-core-modules/application"; // added this here so we can do some wiring require("nativescript-plugin-firebase"); +// testing this.. we may be able to hook that up to Crashlytics. Either via docs, or automatically. +application.on(application.uncaughtErrorEvent, (args: UnhandledErrorEventData) => { + console.log("[app.js]: Uncaught NativeScript Error: " + args.error); +}); + application.run({ moduleName: "main-page" }); diff --git a/demo/app/images/EAN.jpg b/demo/app/images/EAN.jpg new file mode 100644 index 00000000..8b1cd527 Binary files /dev/null and b/demo/app/images/EAN.jpg differ diff --git a/demo/app/images/please_walk_on_the_grass.jpg b/demo/app/images/please_walk_on_the_grass.jpg new file mode 100644 index 00000000..6d17b302 Binary files /dev/null and b/demo/app/images/please_walk_on_the_grass.jpg differ diff --git a/demo/app/images/qrcode.png b/demo/app/images/qrcode.png new file mode 100644 index 00000000..e13190cb Binary files /dev/null and b/demo/app/images/qrcode.png differ diff --git a/demo/app/main-page.xml b/demo/app/main-page.xml index 664336b5..a6ca28d0 100644 --- a/demo/app/main-page.xml +++ b/demo/app/main-page.xml @@ -71,7 +71,7 @@ @@ -194,6 +194,13 @@