You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2019/11/22 11:47:06 UTC
[cordova-app-hello-world] branch master updated: fix: move default
plugin to package.json (#56)
This is an automated email from the ASF dual-hosted git repository.
raphinesse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-app-hello-world.git
The following commit(s) were added to refs/heads/master by this push:
new 5e59246 fix: move default plugin to package.json (#56)
5e59246 is described below
commit 5e59246d1902e329d4db1b599a5e636e3932d47d
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Fri Nov 22 12:46:54 2019 +0100
fix: move default plugin to package.json (#56)
Current versions of Cordova expect dependencies to be defined in
package.json. This updates the sample app to adhere to that practice.
Fixes #39
---
template_src/config.xml | 1 -
template_src/package.json | 10 +++++++++-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/template_src/config.xml b/template_src/config.xml
index ad14b62..997ac90 100644
--- a/template_src/config.xml
+++ b/template_src/config.xml
@@ -27,7 +27,6 @@
</author>
<content src="index.html" />
<!-- Whitelist configuration. Refer to https://cordova.apache.org/docs/en/edge/guide_appdev_whitelist_index.md.html -->
- <plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
diff --git a/template_src/package.json b/template_src/package.json
index 2938f5a..d1ab3e0 100644
--- a/template_src/package.json
+++ b/template_src/package.json
@@ -11,5 +11,13 @@
"ecosystem:cordova"
],
"author": "Apache Cordova Team",
- "license": "Apache-2.0"
+ "license": "Apache-2.0",
+ "devDependencies": {
+ "cordova-plugin-whitelist": "^1.3.4"
+ },
+ "cordova": {
+ "plugins": {
+ "cordova-plugin-whitelist": {}
+ }
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org