This repository was archived by the owner on Apr 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +8
-23
lines changed Expand file tree Collapse file tree 4 files changed +8
-23
lines changed Original file line number Diff line number Diff line change 11import { firebase } from "./firebase-common" ;
22import * as appModule from "tns-core-modules/application" ;
33import * as utils from "tns-core-modules/utils/utils" ;
4+ import lazy from "tns-core-modules/utils/lazy" ;
45import * as frame from "tns-core-modules/ui/frame" ;
56import * as fs from "tns-core-modules/file-system" ;
67import { AndroidActivityResultEventData } from "tns-core-modules/application" ;
@@ -18,26 +19,9 @@ let fbCallbackManager = null;
1819const GOOGLE_SIGNIN_INTENT_ID = 123 ;
1920const REQUEST_INVITE_INTENT_ID = 48 ;
2021
21- function lazy ( action ) {
22- let _value ;
23- const that = this ;
24-
25- return function ( ) {
26- return that . _value || ( that . _value = action ( ) ) ;
27- } ;
28- }
29-
30- const gson = new lazy ( function ( ) {
31- return typeof ( com . google . gson ) === "undefined" ? null : new com . google . gson . Gson ( ) ;
32- } ) ;
33-
34- const messagingEnabled = new lazy ( function ( ) {
35- return typeof ( com . google . firebase . messaging ) !== "undefined" ;
36- } ) ;
37-
38- const dynamicLinksEnabled = new lazy ( function ( ) {
39- return typeof ( com . google . android . gms . appinvite ) !== "undefined" ;
40- } ) ;
22+ const gson = lazy ( ( ) => typeof ( com . google . gson ) === "undefined" ? null : new com . google . gson . Gson ( ) ) ;
23+ const messagingEnabled = lazy ( ( ) => typeof ( com . google . firebase . messaging ) !== "undefined" ) ;
24+ const dynamicLinksEnabled = lazy ( ( ) => typeof ( com . google . android . gms . appinvite ) !== "undefined" ) ;
4125
4226( function ( ) {
4327 appModule . on ( "launch" , function ( args ) {
Original file line number Diff line number Diff line change @@ -700,7 +700,7 @@ firebase.analytics.logEvent = function (arg) {
700700 return ;
701701 }
702702
703- const dic : NSMutableDictionary < string , any > = NSMutableDictionary . new ( ) ;
703+ const dic : any = NSMutableDictionary . new ( ) ;
704704 if ( arg . parameters !== undefined ) {
705705 for ( let p in arg . parameters ) {
706706 const param = arg . parameters [ p ] ;
@@ -951,7 +951,7 @@ firebase.getRemoteConfig = function (arg) {
951951 // Enable developer mode to allow for frequent refreshes of the cache
952952 firebaseRemoteConfig . configSettings = new FIRRemoteConfigSettings ( { developerModeEnabled : arg . developerMode || false } ) ;
953953
954- const dic : NSMutableDictionary < string , any > = NSMutableDictionary . new ( ) ;
954+ const dic : any = NSMutableDictionary . new ( ) ;
955955 for ( let p in arg . properties ) {
956956 const prop = arg . properties [ p ] ;
957957 if ( prop . default !== undefined ) {
Original file line number Diff line number Diff line change 3535 "preuninstall" : " node preuninstall-hooks.js" ,
3636 "setup" : " node scripts/postinstall.js setup" ,
3737 "config" : " node scripts/postinstall.js config" ,
38- "build" : " npm i && tsc" ,
38+ "build" : " tsc" ,
3939 "demo.ios" : " npm run preparedemo && cd ../demo && tns run ios --emulator" ,
4040 "demo.ios.device" : " npm run preparedemo && cd ../demo && tns platform remove ios && tns run ios" ,
4141 "demo.android" : " npm run preparedemo && cd ../demo && tns platform remove android && tns run android --justlaunch" ,
Original file line number Diff line number Diff line change 77 "noLib" : false ,
88 "emitDecoratorMetadata" : true ,
99 "experimentalDecorators" : true ,
10+ "skipLibCheck" : true ,
1011 "lib" : [
1112 " es6" ,
1213 " dom"
You can’t perform that action at this time.
0 commit comments