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

Commit b6c66e4

Browse files
typo
1 parent 4a71913 commit b6c66e4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

demo/app/main-page.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159

160160
<Label row="30" colSpan="2" text="Analytics" class="subtitle"/>
161161

162-
<Button row="31" col="0" text="log event" tap="{{ doLogAnayticsEvent }}" class="button button-analytics"/>
162+
<Button row="31" col="0" text="log event" tap="{{ doLogAnalyticsEvent }}" class="button button-analytics"/>
163163
<Button row="31" col="1" text="set user property" tap="{{ doSetAnalyticsUserProperty }}" class="button button-analytics"/>
164164

165165
<Button row="32" col="0" text="set Screen A" tap="{{ doSetScreenNameA }}" class="button button-analytics"/>

demo/app/main-view-model.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as fs from "tns-core-modules/file-system";
88
const firebase = require("nativescript-plugin-firebase");
99
const firebaseWebApi = require("nativescript-plugin-firebase/app");
1010

11-
declare const assert: any;
11+
declare const Crashlytics: any;
1212

1313
const getCircularReplacer = () => {
1414
const seen = new WeakSet;
@@ -363,7 +363,7 @@ export class HelloWorldModel extends Observable {
363363
);
364364
}
365365

366-
public doLogAnayticsEvent(): void {
366+
public doLogAnalyticsEvent(): void {
367367
firebase.analytics.logEvent({
368368
// see https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event.html
369369
key: "add_to_cart",
@@ -1557,7 +1557,7 @@ export class HelloWorldModel extends Observable {
15571557
}
15581558

15591559
public doForceCrashIOS(): void {
1560-
assert(false);
1560+
Crashlytics.sharedInstance().crash();
15611561
}
15621562

15631563
public doForceCrashAndroid(): void {

0 commit comments

Comments
 (0)