cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [1/5] spec commit: Add url-policy plugin for Android so that network requests pass again.
Date Wed, 04 Mar 2015 18:42:29 GMT
Repository: cordova-mobile-spec
Updated Branches:
  refs/heads/master 4a125d63c -> 7ad3e7572


Add url-policy plugin for Android so that network requests pass again.


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/54d6641b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/54d6641b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/54d6641b

Branch: refs/heads/master
Commit: 54d6641b3b9b4504a481ecbf7df41457bed45930
Parents: 4a125d6
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Fri Feb 27 15:51:12 2015 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Mar 3 09:59:51 2015 -0500

----------------------------------------------------------------------
 config.xml                           | 4 ++++
 createmobilespec/createmobilespec.js | 3 +++
 2 files changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/54d6641b/config.xml
----------------------------------------------------------------------
diff --git a/config.xml b/config.xml
index ae531cc..5fcfe86 100644
--- a/config.xml
+++ b/config.xml
@@ -34,6 +34,10 @@
     <access origin="https://www.google.co.uk" />
     <access origin="http://techslides.com" />
     <access origin="httpssss://example.com" />
+    <allow-intent href="sms:*" />
+    <allow-intent href="mailto:*" />
+    <allow-intent href="tel:*" />
+    <allow-intent href="www.google.com" />
     <platform name="blackberry10">
         <access origin="file:///" />
         <access origin="https://www.apache.org" />

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/54d6641b/createmobilespec/createmobilespec.js
----------------------------------------------------------------------
diff --git a/createmobilespec/createmobilespec.js b/createmobilespec/createmobilespec.js
index b3a21c7..dbc1bcd 100755
--- a/createmobilespec/createmobilespec.js
+++ b/createmobilespec/createmobilespec.js
@@ -493,6 +493,9 @@ function installPlugins() {
         var linkPluginsFlag = (argv.link || argv.linkplugins) ? ' --link' : '';
         shelljs.exec(cli + " plugin add org.apache.cordova.test.whitelist org.apache.cordova.test.echo
--searchpath " + mobile_spec_git_dir + linkPluginsFlag + browserifyFlag);
         shelljs.exec(cli + " plugin add org.apache.cordova.test-framework --searchpath "
+ top_dir + linkPluginsFlag + browserifyFlag);
+        if (argv.android) {
+            shelljs.exec(cli + " plugin add " + path.join(top_dir, 'cordova-plugins', 'url-policy')
+ linkPluginsFlag + browserifyFlag);
+        }
 
         if (argv.webview == 'crosswalk') {
             var xwalkPluginId = fs.existsSync('cordova-crosswalk-engine') ? 'org.crosswalk.engine'
: 'https://github.com/MobileChromeApps/cordova-crosswalk-engine.git';


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message