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

Commit 9bbd507

Browse files
authored
replace deprecated currentContext with context
1 parent 5faed73 commit 9bbd507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/analytics/analytics.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function logEvent(options: LogEventOptions): Promise<void> {
2828
}
2929

3030
com.google.firebase.analytics.FirebaseAnalytics.getInstance(
31-
appModule.android.currentContext || com.tns.NativeScriptApplication.getInstance()
31+
appModule.android.context || com.tns.NativeScriptApplication.getInstance()
3232
).logEvent(options.key, bundle);
3333

3434
resolve();

0 commit comments

Comments
 (0)