UNPKG

react-native-nitro-screen-recorder

Version:

A library to capture screen recordings with react-native powered by NitroModules.

44 lines (37 loc) 2.23 kB
"use strict"; export const IPHONEOS_DEPLOYMENT_TARGET = '11.0'; export const TARGETED_DEVICE_FAMILY = `"1,2"`; // Podfile configuration for ReplayKit (if needed for dependencies) export const BROADCAST_EXT_PODFILE_SNIPPET = ` target 'BroadcastExtension' do # ReplayKit is a system framework, no pods needed typically # Add any specific pods for broadcast extension here if needed end`; export const BROADCAST_EXT_PODFILE_REGEX = /target 'BroadcastExtension'/; // Template replacement patterns export const GROUP_IDENTIFIER_TEMPLATE_REGEX = /{{GROUP_IDENTIFIER}}/gm; export const BUNDLE_SHORT_VERSION_TEMPLATE_REGEX = /{{BUNDLE_SHORT_VERSION}}/gm; export const BUNDLE_VERSION_TEMPLATE_REGEX = /{{BUNDLE_VERSION}}/gm; export const SCHEME_TEMPLATE_REGEX = /{{SCHEME}}/gm; export const DEFAULT_BUNDLE_VERSION = '1'; export const DEFAULT_BUNDLE_SHORT_VERSION = '1.0'; // Broadcast Extension specific constants export const BROADCAST_EXT_TARGET_NAME = 'BroadcastExtension'; export const BROADCAST_EXT_SOURCE_FILES = ['SampleHandler.swift', 'BroadcastWriter.swift', 'BroadcastHelper.m']; export const BROADCAST_EXT_CONFIG_FILES = [`${BROADCAST_EXT_TARGET_NAME}-Info.plist`, `${BROADCAST_EXT_TARGET_NAME}.entitlements`, 'PrivacyInfo.xcprivacy', 'BroadcastHelper.h', 'BroadcastExtension-Bridging-Header.h']; // All extension files combined export const BROADCAST_EXT_ALL_FILES = [...BROADCAST_EXT_SOURCE_FILES, ...BROADCAST_EXT_CONFIG_FILES]; // Legacy compatibility (keeping your original constants for backward compatibility) export const BE_TARGET_NAME = BROADCAST_EXT_TARGET_NAME; export const BE_SOURCE_FILE = 'SampleHandler.swift'; // Updated from NotificationService.m export const BE_EXT_FILES = BROADCAST_EXT_ALL_FILES; export const getAppGroup = (mainAppBundleId, props) => { if (props.iosAppGroupIdentifier) return props.iosAppGroupIdentifier; return `group.${mainAppBundleId}.screen-recorder`; }; // Helper function to get broadcast extension bundle identifier export function getBroadcastExtensionBundleIdentifier(mainAppBundleId, props) { if (props.iosExtensionBundleIdentifier) return props.iosExtensionBundleIdentifier; return `${mainAppBundleId}.${BE_TARGET_NAME}`; } //# sourceMappingURL=iosConstants.js.map