Skip to content

Instantly share code, notes, and snippets.

@ventaur
Created September 16, 2018 14:23
Show Gist options
  • Save ventaur/a2b568b39a3b11bf5a7b4a75bb097605 to your computer and use it in GitHub Desktop.
Save ventaur/a2b568b39a3b11bf5a7b4a75bb097605 to your computer and use it in GitHub Desktop.
Cordova config.xml and package.json always updating during restore
<?xml version='1.0' encoding='utf-8'?>
<widget id="org.something.something" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
<name>This Thing</name>
<description>
It's a cool thing (hopefully).
</description>
<author>
Us
</author>
<content src="index.html" />
<preference name="DisallowOverscroll" value="true" />
<preference name="android-minSdkVersion" value="21" />
<preference name="orientation" value="portrait" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<engine name="ios" spec="4.5.5" />
<engine name="android" spec="^7.1.1" />
<engine name="browser" spec="^5.0.4" />
<plugin name="cordova-plugin-battery-status" spec="~1.1.1" />
<plugin name="cordova-plugin-device" spec="~1.1.1" />
<plugin name="cordova-plugin-device-motion" spec="~1.2.0" />
<plugin name="cordova-plugin-device-orientation" spec="~1.0.2" />
<plugin name="cordova-plugin-dialogs" spec="~1.2.0" />
<plugin name="cordova-plugin-file" spec="~4.1.1" />
<plugin name="cordova-plugin-globalization" spec="~1.0.3" />
<plugin name="cordova-plugin-inappbrowser" spec="~1.3.0" />
<plugin name="cordova-plugin-network-information" spec="~1.2.0" />
<plugin name="cordova-plugin-statusbar" spec="~2.1.2" />
<plugin name="cordova-plugin-whitelist" spec="~1.2.1" />
</widget>
{
"name": "this-thing",
"version": "0.1.0",
"description": "It's a cool thing (hopefully).",
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "cross-env LOGGY_STACKS=true brunch build",
"watch": "cross-env LOGGY_STACKS=true brunch watch",
"start": "cross-env LOGGY_STACKS=true brunch watch --server"
},
"author": "Us",
"license": "UNLICENSED",
"repository": "",
"dependencies": {
"babel-polyfill": "^6.26.0",
"font-awesome": "^4.7.0",
"framework7": "^3.3.0",
"lodash-es": "^4.17.11",
"cordova-ios": "4.5.5",
"cordova-android": "^7.1.1",
"cordova-browser": "^5.0.4",
"cordova-plugin-battery-status": "~1.1.1",
"cordova-plugin-device": "~1.1.1",
"cordova-plugin-device-motion": "~1.2.0",
"cordova-plugin-device-orientation": "~1.0.2",
"cordova-plugin-dialogs": "~1.2.0",
"cordova-plugin-file": "~4.1.1",
"cordova-plugin-globalization": "~1.0.3",
"cordova-plugin-inappbrowser": "~1.3.0",
"cordova-plugin-network-information": "~1.2.0",
"cordova-plugin-statusbar": "~2.1.2",
"cordova-plugin-whitelist": "~1.2.1"
},
"devDependencies": {
"autoprefixer": "^8.5.0",
"babel-brunch": "^6.1.1",
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.7.0",
"brunch": "^2.10.17",
"clean-css-brunch": "^2.10.0",
"copycat-brunch": "^1.1.0",
"cross-env": "^5.1.5",
"postcss-brunch": "^2.10.1",
"sass-brunch": "^2.10.7",
"uglify-js-brunch": "^2.10.0"
},
"cordova": {
"platforms": [
"ios",
"android",
"browser"
],
"plugins": {
"cordova-plugin-battery-status": {},
"cordova-plugin-device": {},
"cordova-plugin-device-motion": {},
"cordova-plugin-device-orientation": {},
"cordova-plugin-dialogs": {},
"cordova-plugin-file": {},
"cordova-plugin-globalization": {},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-network-information": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-whitelist": {}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment