UNPKG

expo-srcpush

Version:

Expo module for Source Push, a service for over-the-air updates in React Native applications.

13 lines (10 loc) 508 B
import { ConfigPlugin, withInfoPlist } from 'expo/config-plugins' import { PluginConfigType } from '../pluginConfig' // Pass `<string>` to specify that this plugin requires a string property. export const withIosBuildscriptDependency: ConfigPlugin<PluginConfigType> = (config: any, props: any) => { if (!props.ios.CodePushDeploymentKey) return config return withInfoPlist(config, (config: any) => { config.modResults.CodePushDeploymentKey = props.ios.CodePushDeploymentKey return config }) }