@revopush/expo-code-push-plugin
v1.0.1
Published
Expo plugin to configure Revopush OTA for React Native
Downloads
497
Maintainers
Readme
Expo plugin for Revopush OTA
To integrate Revopush into your Expo project, you need to modify the native part of the application. This is done using Expo Configuration Plugins.
This plugin will automatically generate all the necessary changes to integrate Revopush OTA.
Full setup guide for Revopush with Expo.
Setup Revopush SDK
Revopush SDK doesn't work with Expo Go because it requires native code changes.
| Expo SDK | Revopush SDK | Revopush Expo plugin | |-----------|--------------|----------------------| | 52+ | 1.3.0 | 1.0.0 |
Install Revopush SDK
npx expo install @revopush/react-native-code-pushInstall Revopush Expo plugin
npx expo install @revopush/expo-code-push-pluginExtend Plugin section in your Expo config with:
module.exports = ({ config }: { config: ExpoConfig }) => ({
...config,
plugins: [
["@revopush/expo-code-push-plugin", {
ios: { // [!code ++]
CodePushDeploymentKey: 'YOUR_DEPLOYMENT_KEY',
CodePushServerUrl: 'https://api.revopush.org'
},
android: {
CodePushDeploymentKey: 'YOUR_DEPLOYMENT_KEY',
CodePushServerUrl: 'https://api.revopush.org'
}
}]
],
});Run prebuild command to generate native ios and android folders
npx expo prebuild --cleanIf you faced with ios target version error, add expo-build-properties plugin and set ios deploymentTarget to 15.5
