UNPKG

expo-notification-service-extension-plugin

Version:

Expo plugin that expects a notification service extension file as an input and copies it to XCode binaries

34 lines (32 loc) 1.07 kB
import { NSE_TARGET_NAME } from "../iosConstants"; import { ExpoConfig } from '@expo/config-types'; export default function getEasManagedCredentialsConfigExtra(config: ExpoConfig): {[k: string]: any} { return { ...config.extra, eas: { ...config.extra?.eas, build: { ...config.extra?.eas?.build, experimental: { ...config.extra?.eas?.build?.experimental, ios: { ...config.extra?.eas?.build?.experimental?.ios, appExtensions: [ ...(config.extra?.eas?.build?.experimental?.ios?.appExtensions ?? []), { // keep in sync with native changes in NSE targetName: NSE_TARGET_NAME, bundleIdentifier: `${config?.ios?.bundleIdentifier}.${NSE_TARGET_NAME}`, entitlements: { 'com.apple.security.application-groups': [ `group.${config?.ios?.bundleIdentifier}.nse` ] }, } ] } } } } } }