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

Commit 4669bf5

Browse files
cleanup
1 parent b849a14 commit 4669bf5

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/firebase.ios.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ios as iOSUtils } from "tns-core-modules/utils/utils";
44
import { getClass } from "tns-core-modules/utils/types";
55
import { device } from "tns-core-modules/platform";
66
import { DeviceType } from "tns-core-modules/ui/enums";
7-
import { firestore } from "./firebase";
7+
import { admob, firestore } from "./firebase";
88

99
firebase._messagingConnected = null;
1010
firebase._pendingNotifications = [];
@@ -16,11 +16,6 @@ firebase._configured = false;
1616

1717
// Note that FIRApp.configure must be called only once, but not here (see https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/564)
1818

19-
/**
20-
* Workaround function to call the `dispatch_get_main_queue(...)` for iOS
21-
* thanks to Alexander Ziskind found on:
22-
* http://nuvious.com/Blog/2016/7/5/calling-dispatch_async-in-nativescript
23-
*/
2419
const invokeOnRunLoop = (() => {
2520
const runloop = CFRunLoopGetMain();
2621
return func => {
@@ -852,7 +847,7 @@ firebase.admob.showBanner = arg => {
852847

853848
view.addSubview(firebase.admob.adView);
854849

855-
// support rotation events
850+
// support rotation events
856851
// tear down first if this had been called already to avoid multiple event bindings
857852
application.off(application.orientationChangedEvent, firebase.admob.orientationHandler);
858853
application.on(application.orientationChangedEvent, firebase.admob.orientationHandler);

0 commit comments

Comments
 (0)