aboutsummaryrefslogtreecommitdiffstats
path: root/phonegap/Android/res/xml
diff options
context:
space:
mode:
Diffstat (limited to 'phonegap/Android/res/xml')
-rw-r--r--phonegap/Android/res/xml/config.xml (renamed from phonegap/Android/res/xml/plugins.xml)20
-rw-r--r--phonegap/Android/res/xml/cordova.xml5
2 files changed, 19 insertions, 6 deletions
diff --git a/phonegap/Android/res/xml/plugins.xml b/phonegap/Android/res/xml/config.xml
index 76879a1ce..4a6fffccb 100644
--- a/phonegap/Android/res/xml/plugins.xml
+++ b/phonegap/Android/res/xml/config.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!--
+<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
@@ -17,6 +17,21 @@
specific language governing permissions and limitations
under the License.
-->
+<cordova>
+ <!--
+ access elements control the Android whitelist.
+ Domains are assumed blocked unless set otherwise
+ -->
+
+ <access origin="http://127.0.0.1*"/> <!-- allow local pages -->
+
+ <!-- <access origin="https://example.com" /> allow any secure requests to example.com -->
+ <!-- <access origin="https://example.com" subdomains="true" /> such as above, but including subdomains, such as www -->
+ <access origin=".*"/>
+
+ <log level="DEBUG"/>
+ <preference name="useBrowserHistory" value="false" />
+ <preference name="exit-on-suspend" value="false" />
<plugins>
<plugin name="App" value="org.apache.cordova.App"/>
<plugin name="Geolocation" value="org.apache.cordova.GeoBroker"/>
@@ -35,4 +50,7 @@
<plugin name="Capture" value="org.apache.cordova.Capture"/>
<plugin name="Battery" value="org.apache.cordova.BatteryListener"/>
<plugin name="SplashScreen" value="org.apache.cordova.SplashScreen"/>
+ <plugin name="Echo" value="org.apache.cordova.Echo" />
</plugins>
+</cordova>
+
diff --git a/phonegap/Android/res/xml/cordova.xml b/phonegap/Android/res/xml/cordova.xml
deleted file mode 100644
index c7b500003..000000000
--- a/phonegap/Android/res/xml/cordova.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<cordova>
- <access origin="http://127.0.0.1*"/>
- <log level="DEBUG"/>
-</cordova>