cordova-plugin-liveupdate
Version:
Ionic Cordova Live Update SDK
65 lines (39 loc) • 1.39 kB
Markdown
Ionic Cordova SDK
======
Supported platforms: iOS, Android
## Setup
```bash
cordova plugin add cordova-plugin-liveupdate
```
The plugin will be available on `window` as `IonicCordova`
## Live Updates
### Preferences
* `DisableDeploy` - Default value is `false`.
Allows to disable deploy updates by adding this preference in the config.xml
```
<preference name="DisableDeploy" value="true" />
```
## API Docs
* [IonicCordova](docs/interfaces/_ioniccordova_d_.ipluginbaseapi.md)
* [IonicCordova.deploy](docs/interfaces/_ioniccordova_d_.ideploypluginapi.md)
### External modules
---
## Contributing to this plugin
```bash
npm install
npm run create-dev
```
This will create a blank Ionic app in a local `tmp` directory with the plugin and dependencies installed, and the iOS platform added. Native plugin code is installed with `--link` and any changes to the typescript in `www` will be copied over into the app's `platforms/ios` and `platforms/android` directories.
### Some other helpful dev commands
```bash
npm run apply-dev
```
Updates the linked plugin in the `tmp` test app with your JavaScript changes
```bash
npm run watch
```
Watches for Typescript changes
```bash
npm run watch-dev
```
Watches for Typescript changes, then runs the `apply-dev` script to propogate them to the testing app.