UNPKG

react-native-expo-moengage

Version:

MoEngage Expo plugin for integrating MoEngage React-Native SDK

48 lines (47 loc) 2.56 kB
"use strict"; /** * Constants used in the MoEngage iOS implementation * * This file contains all the constants needed for configuring the MoEngage SDK for iOS, * including target names, file lists, and pod dependencies. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.MOENGAGE_IOS_LIVE_ACTIVITY_POD = exports.MOENGAGE_IOS_DEVICE_TRIGGER_POD = exports.MOENGAGE_IOS_PUSH_TEMPLATE_POD = exports.MOENGAGE_IOS_NOTIFICATION_SERVICE_POD = exports.MOENGAGE_IOS_PUSH_TEMPLATE_FILES = exports.MOENGAGE_IOS_RICH_PUSH_FILES = exports.MOENGAGE_IOS_LIVE_ACTIVITY_TARGET = exports.MOENGAGE_IOS_PUSH_TEMPLATE_TARGET = exports.MOENGAGE_IOS_RICH_PUSH_TARGET = void 0; /** * Target names for the extension targets in Xcode * These names are used when creating extension targets in the Xcode project * and must match the names used in entitlements and Info.plist files */ exports.MOENGAGE_IOS_RICH_PUSH_TARGET = 'MoEngageExpoRichPush'; exports.MOENGAGE_IOS_PUSH_TEMPLATE_TARGET = 'MoEngageExpoPushTemplates'; exports.MOENGAGE_IOS_LIVE_ACTIVITY_TARGET = 'MoEngageExpoLiveActivity'; /** * Files required for the Rich Push Notification Service Extension * These files are copied from the plugin's resources to the Xcode project * and added to the Rich Push target */ exports.MOENGAGE_IOS_RICH_PUSH_FILES = [ 'NotificationService.swift', `${exports.MOENGAGE_IOS_RICH_PUSH_TARGET}-Info.plist`, `${exports.MOENGAGE_IOS_RICH_PUSH_TARGET}.entitlements` ]; /** * Files required for the Push Templates Notification Content Extension * These files are copied from the plugin's resources to the Xcode project * and added to the Push Templates target */ exports.MOENGAGE_IOS_PUSH_TEMPLATE_FILES = [ 'MainInterface.storyboard', 'NotificationViewController.swift', `${exports.MOENGAGE_IOS_PUSH_TEMPLATE_TARGET}-Info.plist`, `${exports.MOENGAGE_IOS_PUSH_TEMPLATE_TARGET}.entitlements` ]; /** * CocoaPods dependencies for each feature * These pod specifications are added to the Podfile for each target * that requires the functionality */ exports.MOENGAGE_IOS_NOTIFICATION_SERVICE_POD = 'MoEngage-iOS-SDK/RichNotification'; // For Rich Push Notification Service Extension exports.MOENGAGE_IOS_PUSH_TEMPLATE_POD = 'MoEngage-iOS-SDK/RichNotification'; // For Push Templates Notification Content Extension exports.MOENGAGE_IOS_DEVICE_TRIGGER_POD = 'MoEngage-iOS-SDK/RealTimeTrigger'; // For Device-based campaign triggers exports.MOENGAGE_IOS_LIVE_ACTIVITY_POD = 'MoEngage-iOS-SDK/LiveActivity'; // For LiveActivity support