Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(commonConfiguration: AnalyticsProviderConfiguration,
configuration: LeanplumProviderConfiguration) {
super(commonConfiguration);
// Leanplum accepts by default 'Purchase' as event name for revenue metrics. Confirm with
// the client if they are using the default or a custom one.
// Reference: https://www.leanplum.com/docs/ios/events#tracking-purchase-or-monetization-events
this.monetizationEventName = configuration.monetizationEventName || 'Purchase';
this.client = new RNLeanplum(configuration.appId, configuration.key);
this.client.start();
// TODO: Enable 'trackAllAppScreens'
}