import * as application from 'application' ; /**
 * The following function is part of the NativeScript plugin: nativescript-plugin-firebase
 * It is licensed under the MIT license. The license can be found at the bottom of this file.
 * Copyright (c) EddyVerbruggen
 *
 * This function is an unmodified copy of the original function that can be found at:
 * https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/78f60f55be30b022690722006e1080b1685548fa/src/firebase.ios.ts#L469
 */ export function getAppDelegate ( ) { if ( application . ios . delegate === undefined ) { class UIApplicationDelegateImpl extends UIResponder implements UIApplicationDelegate { public static ObjCProtocols = [ UIApplicationDelegate ] ; static new ( ) { return < UIApplicationDelegateImpl > super . new ( ) ; } } application . ios . delegate = UIApplicationDelegateImpl ; } return application . ios . delegate ; }