UNPKG

rn-pendo-sdk

Version:

Pendo Mobile React Native SDK

1 lines 968 B
Object.defineProperty(exports,"__esModule",{value:true});exports.withPendo=void 0;var _configPlugins=require("@expo/config-plugins");var _consts=require("./consts");var _log=require("./log");var _withPendoAndroid=require("./withPendoAndroid");var _withPendoIOS=require("./withPendoIOS");var withPendo=exports.withPendo=function withPendo(config,props){_log.PendoLog.setDebugMode(props==null?void 0:props.debugEnabled);_log.PendoLog.debug('****withPendo****');config=_configPlugins.AndroidConfig.Permissions.withPermissions(config,_consts.ANDROID_PERMISSIONS);config=(0,_withPendoAndroid.withAndroidProjectGradle)(config,props);config=(0,_withPendoAndroid.withAndroidAppGradle)(config,props);config=(0,_withPendoAndroid.withAndroidPendoActivity)(config,props);config=(0,_withPendoIOS.withPendoSchemeIOS)(config,props);config=(0,_withPendoIOS.withPendoAppDelegate)(config);config=(0,_withPendoIOS.withPendoPodfile)(config,props);return config;};module.exports=withPendo;