Skip to content

Instantly share code, notes, and snippets.

View victorcpereira's full-sized avatar

Victor Pereira victorcpereira

View GitHub Profile
@victorcpereira
victorcpereira / 030_update_platform_config.js
Last active August 25, 2017 06:12 — forked from marcocarnazzo/030_update_platform_config.js
Ionic/Cordova update platform config
#!/usr/bin/env node
/** This hook updates platform configuration files based on preferences and config-file data defined in config.xml.
Currently only the AndroidManifest.xml and IOS *-Info.plist file are supported.
See http://stackoverflow.com/questions/28198983/ionic-cordova-add-intent-filter-using-config-xml
Preferences:
1. Preferences defined outside of the platform element will apply to all platforms
2. Preferences defined inside a platform element will apply only to the specified platform