@@ -404,8 +404,8 @@ firebase._registerForRemoteNotifications = function () {
404404 var notificationTypes = UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationActivationModeBackground ;
405405 var notificationSettings = UIUserNotificationSettings . settingsForTypesCategories ( notificationTypes , null ) ;
406406 invokeOnRunLoop ( ( ) => {
407- app . registerForRemoteNotifications ( ) ;
408- } ) ; // prompts the user to accept notifications
407+ app . registerForRemoteNotifications ( ) ; // prompts the user to accept notifications
408+ } ) ;
409409 app . registerUserNotificationSettings ( notificationSettings ) ;
410410 }
411411} ;
@@ -414,8 +414,7 @@ function getAppDelegate() {
414414 // Play nice with other plugins by not completely ignoring anything already added to the appdelegate
415415 if ( application . ios . delegate === undefined ) {
416416 var __extends = this . __extends || function ( d , b ) {
417- for ( var p in b )
418- if ( b . hasOwnProperty ( p ) ) d [ p ] = b [ p ] ;
417+ for ( var p in b ) if ( b . hasOwnProperty ( p ) ) d [ p ] = b [ p ] ;
419418
420419 function __ ( ) {
421420 this . constructor = d ;
@@ -486,7 +485,7 @@ firebase.toJsObject = function (objCObj) {
486485 return objCObj ;
487486 }
488487 var node , key , i , l ,
489- oKeyArr = objCObj . allKeys ;
488+ oKeyArr = objCObj . allKeys ;
490489
491490 if ( oKeyArr === undefined ) {
492491 // array
@@ -849,91 +848,35 @@ firebase.admob._getBannerType = function (size) {
849848 // see nativescript-admob's iOS sourcecode for why we're not using SDK-provided constants here
850849 if ( size == firebase . admob . AD_SIZE . BANNER ) {
851850 // return kGADAdSizeBanner;
852- return {
853- "size" : {
854- "width" : 320 ,
855- "height" : 50
856- } ,
857- "flags" : 0
858- } ;
851+ return { "size" : { "width" : 320 , "height" : 50 } , "flags" : 0 } ;
859852 } else if ( size == firebase . admob . AD_SIZE . LARGE_BANNER ) {
860853 // return kGADAdSizeLargeBanner;
861- return {
862- "size" : {
863- "width" : 320 ,
864- "height" : 100
865- } ,
866- "flags" : 0
867- } ;
854+ return { "size" : { "width" : 320 , "height" : 100 } , "flags" : 0 } ;
868855 } else if ( size == firebase . admob . AD_SIZE . MEDIUM_RECTANGLE ) {
869856 // return kGADAdSizeMediumRectangle;
870- return {
871- "size" : {
872- "width" : 300 ,
873- "height" : 250
874- } ,
875- "flags" : 0
876- } ;
857+ return { "size" : { "width" : 300 , "height" : 250 } , "flags" : 0 } ;
877858 } else if ( size == firebase . admob . AD_SIZE . FULL_BANNER ) {
878859 // return kGADAdSizeFullBanner;
879- return {
880- "size" : {
881- "width" : 468 ,
882- "height" : 60
883- } ,
884- "flags" : 0
885- } ;
860+ return { "size" : { "width" : 468 , "height" : 60 } , "flags" : 0 } ;
886861 } else if ( size == firebase . admob . AD_SIZE . LEADERBOARD ) {
887862 // return kGADAdSizeLeaderboard;
888- return {
889- "size" : {
890- "width" : 728 ,
891- "height" : 90
892- } ,
893- "flags" : 0
894- } ;
863+ return { "size" : { "width" : 728 , "height" : 90 } , "flags" : 0 } ;
895864 } else if ( size == firebase . admob . AD_SIZE . SKYSCRAPER ) {
896865 // return kGADAdSizeSkyscraper;
897- return {
898- "size" : {
899- "width" : 120 ,
900- "height" : 600
901- } ,
902- "flags" : 0
903- } ;
866+ return { "size" : { "width" : 120 , "height" : 600 } , "flags" : 0 } ;
904867 } else if ( size == firebase . admob . AD_SIZE . SMART_BANNER || size == firebase . admob . AD_SIZE . FLUID ) {
905868 var orientation = utils . ios . getter ( UIDevice , UIDevice . currentDevice ) . orientation ;
906869 var isIPad = platform . device . deviceType === DeviceType . Tablet ;
907870 if ( orientation == UIDeviceOrientation . UIDeviceOrientationPortrait || orientation == UIDeviceOrientation . UIDeviceOrientationPortraitUpsideDown ) {
908871 // return kGADAdSizeSmartBannerPortrait;
909- return {
910- "size" : {
911- "width" : 0 ,
912- "height" : 0 ,
913- "smartHeight" : isIPad ? 90 : 50
914- } ,
915- "flags" : 18
916- } ;
872+ return { "size" : { "width" : 0 , "height" : 0 , "smartHeight" : isIPad ? 90 : 50 } , "flags" : 18 } ;
917873 } else {
918874 // return kGADAdSizeSmartBannerLandscape;
919- return {
920- "size" : {
921- "width" : 0 ,
922- "height" : 0 ,
923- "smartHeight" : isIPad ? 90 : 32
924- } ,
925- "flags" : 26
926- } ;
875+ return { "size" : { "width" : 0 , "height" : 0 , "smartHeight" : isIPad ? 90 : 32 } , "flags" : 26 } ;
927876 }
928877 } else {
929878 // return kGADAdSizeInvalid;
930- return {
931- "size" : {
932- "width" : - 1 ,
933- "height" : - 1
934- } ,
935- "flags" : 0
936- } ;
879+ return { "size" : { "width" : - 1 , "height" : - 1 } , "flags" : 0 } ;
937880 }
938881} ;
939882
0 commit comments