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

Commit 86ab820

Browse files
currentContext has been removed in NativeScript 6
1 parent 08e81b1 commit 86ab820

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/crashlytics/crashlytics.android.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import * as appModule from "tns-core-modules/application";
2-
31
declare const com: any;
42

53
export function sendCrashLog(exception: any /* java.lang.Exception */): void {
@@ -63,7 +61,7 @@ export function crash(): void {
6361
export function setCrashlyticsCollectionEnabled(enabled: boolean): void {
6462
if (isCrashlyticsAvailable()) {
6563
io.fabric.sdk.android.Fabric.with(
66-
appModule.android.currentContext || com.tns.NativeScriptApplication.getInstance(),
64+
com.tns.NativeScriptApplication.getInstance(),
6765
[new com.crashlytics.android.Crashlytics()]);
6866
}
6967
}

0 commit comments

Comments
 (0)