All files / src/withPushNotifications withIosPushNotifications.constants.ts

100% Statements 9/9
100% Branches 0/0
100% Functions 0/0
100% Lines 9/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74  4x     4x     4x     4x     4x                   4x     4x           4x                                                             4x                    
/** The name of the notification service */
export const NS_TARGET_NAME = 'IterableExpoRichPush';
 
/** The filename of the notification service's main file */
export const NS_MAIN_FILE_NAME = 'NotificationService.swift';
 
/** The filename of the notification service's Info.plist */
export const NS_PLIST_FILE_NAME = `${NS_TARGET_NAME}-Info.plist`;
 
/** The filename of the notification service's entitlements */
export const NS_ENTITLEMENTS_FILE_NAME = `${NS_TARGET_NAME}.entitlements`;
 
/** The files that are added to the notification service */
export const NS_FILES = [
  NS_MAIN_FILE_NAME,
  NS_PLIST_FILE_NAME,
  NS_ENTITLEMENTS_FILE_NAME,
];
 
/**
 * The Iterable pod that is require for the notification service to process
 * Iterable push notifications.
 */
export const NS_POD = 'Iterable-iOS-AppExtensions';
 
/** The content of the notification service's main file */
export const NS_MAIN_FILE_CONTENT = `import UserNotifications
import IterableAppExtensions
 
class NotificationService: ITBNotificationServiceExtension {}`;
 
/** The content of the notification service's Info.plist */
export const NS_PLIST_CONTENT = `<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>$(DEVELOPMENT_LANGUAGE)</string>
	<key>CFBundleDisplayName</key>
	<string>${NS_TARGET_NAME}</string>
	<key>CFBundleExecutable</key>
	<string>$(EXECUTABLE_NAME)</string>
	<key>CFBundleIdentifier</key>
	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>$(PRODUCT_NAME)</string>
	<key>CFBundleShortVersionString</key>
	<string>1.0.0</string>
	<key>CFBundleVersion</key>
	<string>1</string>
	<key>NSExtension</key>
	<dict>
		<key>NSExtensionPointIdentifier</key>
		<string>com.apple.usernotifications.service</string>
		<key>NSExtensionPrincipalClass</key>
		<string>$(PRODUCT_MODULE_NAME).NotificationService</string>
	</dict>
</dict>
</plist>`;
 
/** The content of the notification service's entitlements */
export const NS_ENTITLEMENTS_CONTENT = `<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>com.apple.security.app-sandbox</key>
	<true/>
	<key>com.apple.security.network.client</key>
	<true/>
</dict>
</plist>`;