2012-07-12 02:23:31 +08:00
|
|
|
<?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
|
|
|
|
regarding copyright ownership. The ASF licenses this file
|
|
|
|
to you under the Apache License, Version 2.0 (the
|
|
|
|
"License"); you may not use this file except in compliance
|
|
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
|
|
software distributed under the License is distributed on an
|
|
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
KIND, either express or implied. See the License for the
|
|
|
|
specific language governing permissions and limitations
|
|
|
|
under the License.
|
|
|
|
-->
|
2012-07-31 07:31:33 +08:00
|
|
|
<widget xmlns="http://www.w3.org/ns/widgets">
|
2012-07-12 02:23:31 +08:00
|
|
|
<!--
|
|
|
|
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=".*"/> Allow all domains, suggested development use only -->
|
|
|
|
|
|
|
|
<log level="DEBUG"/>
|
|
|
|
<preference name="useBrowserHistory" value="false" />
|
2012-07-31 07:31:33 +08:00
|
|
|
<feature name="http://example.org/api/app">
|
|
|
|
<param name="service" value="App" />
|
|
|
|
<param name="package" value="org.apache.cordova.App" />
|
|
|
|
</feature>
|
|
|
|
<feature name="http://example.org/api/geolocation">
|
|
|
|
<param name="service" value="Geolocation" />
|
|
|
|
<param name="package" value="org.apache.cordova.GeoBroker" />
|
|
|
|
</feature>
|
|
|
|
<feature name="http://example.org/api/device">
|
|
|
|
<param name="service" value="Device" />
|
|
|
|
<param name="package" value="org.apache.cordova.Device" />
|
|
|
|
</feature>
|
|
|
|
<feature name="http://example.org/api/accelerometer">
|
|
|
|
<param name="service" value="Accelerometer" />
|
|
|
|
<param name="package" value="org.apache.cordova.AccelListener" />
|
|
|
|
</feature>
|
|
|
|
<feature name="http://example.org/api/compass">
|
|
|
|
<param name="service" value="Compass" />
|
|
|
|
<param name="package" value="org.apache.cordova.CompassListener" />
|
|
|
|
</feature>
|
|
|
|
<feature name="http://example.org/api/media">
|
|
|
|
<param name="service" value="Media" />
|
|
|
|
<param name="package" value="org.apache.cordova.Media" />
|
|
|
|
</feature>
|
|
|
|
<feature name="http://example.org/api/camera">
|
|
|
|
<param name="service" value="Camera" />
|
|
|
|
<param name="package" value="org.apache.cordova.Camera" />
|
|
|
|
</feature>
|
|
|
|
<feature name="http://example.org/api/contacts">
|
|
|
|
<param name="service" value="Contacts" />
|
|
|
|
<param name="package" value="org.apache.cordova.ContactManager" />
|
|
|
|
</feature>
|
|
|
|
<feature name="http://example.org/api/file">
|
|
|
|
<param name="service" value="File" />
|
|
|
|
<param name="package" value="org.apache.cordova.FileUtils" />
|
|
|
|
</feature>
|
|
|
|
<feature name="http://example.org/api/networkstatus">
|
|
|
|
<param name="service" value="NetworkStatus" />
|
|
|
|
<param name="package" value="org.apache.cordova.NetworkManager" />
|
|
|
|
</feature>
|
|
|
|
<feature name="http://example.org/api/notification">
|
|
|
|
<param name="service" value="Notification" />
|
|
|
|
<param name="package" value="org.apache.cordova.Notification" />
|
|
|
|
</feature>
|
|
|
|
<feature name="http://example.org/api/storage">
|
|
|
|
<param name="service" value="Storage" />
|
|
|
|
<param name="package" value="org.apache.cordova.Storage" />
|
|
|
|
</feature>
|
|
|
|
<feature name="http://example.org/api/temperature">
|
|
|
|
<param name="service" value="Temperature" />
|
|
|
|
<param name="package" value="org.apache.cordova.TempListener" />
|
|
|
|
</feature>
|
|
|
|
<feature name="http://example.org/api/filetransfer">
|
|
|
|
<param name="service" value="FileTransfer" />
|
|
|
|
<param name="package" value="org.apache.cordova.FileTransfer" />
|
|
|
|
</feature>
|
|
|
|
<feature name="http://example.org/api/capture">
|
|
|
|
<param name="service" value="Capture" />
|
|
|
|
<param name="package" value="org.apache.cordova.Capture" />
|
|
|
|
</feature>
|
|
|
|
<feature name="http://example.org/api/battery">
|
|
|
|
<param name="service" value="Battery" />
|
|
|
|
<param name="package" value="org.apache.cordova.BatteryListener" />
|
|
|
|
</feature>
|
|
|
|
<feature name="http://example.org/api/splashscreen">
|
|
|
|
<param name="service" value="SpashScreen" />
|
|
|
|
<param name="package" value="org.apache.cordova.SplashScreen" />
|
|
|
|
</feature>
|
|
|
|
</widget>
|
2012-07-12 02:23:31 +08:00
|
|
|
|