mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
Reverting to the previously known to work config.xml, we'll introduce the new format in 2.2
This commit is contained in:
parent
d4b248fbe3
commit
c6fa7e4aad
@ -17,7 +17,7 @@
|
|||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
<widget xmlns="http://www.w3.org/ns/widgets">
|
<cordova>
|
||||||
<!--
|
<!--
|
||||||
access elements control the Android whitelist.
|
access elements control the Android whitelist.
|
||||||
Domains are assumed blocked unless set otherwise
|
Domains are assumed blocked unless set otherwise
|
||||||
@ -27,77 +27,29 @@
|
|||||||
|
|
||||||
<!-- <access origin="https://example.com" /> allow any secure requests to example.com -->
|
<!-- <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="https://example.com" subdomains="true" /> such as above, but including subdomains, such as www -->
|
||||||
<!-- <access origin=".*"/> Allow all domains, suggested development use only -->
|
<access origin=".*"/>
|
||||||
|
|
||||||
<log level="DEBUG"/>
|
<log level="DEBUG"/>
|
||||||
<preference name="useBrowserHistory" value="false" />
|
<preference name="useBrowserHistory" value="false" />
|
||||||
<feature name="http://example.org/api/app">
|
<preference name="exit-on-suspend" value="false" />
|
||||||
<param name="service" value="App" />
|
<plugins>
|
||||||
<param name="package" value="org.apache.cordova.App" />
|
<plugin name="App" value="org.apache.cordova.App"/>
|
||||||
</feature>
|
<plugin name="Geolocation" value="org.apache.cordova.GeoBroker"/>
|
||||||
<feature name="http://example.org/api/geolocation">
|
<plugin name="Device" value="org.apache.cordova.Device"/>
|
||||||
<param name="service" value="Geolocation" />
|
<plugin name="Accelerometer" value="org.apache.cordova.AccelListener"/>
|
||||||
<param name="package" value="org.apache.cordova.GeoBroker" />
|
<plugin name="Compass" value="org.apache.cordova.CompassListener"/>
|
||||||
</feature>
|
<plugin name="Media" value="org.apache.cordova.AudioHandler"/>
|
||||||
<feature name="http://example.org/api/device">
|
<plugin name="Camera" value="org.apache.cordova.CameraLauncher"/>
|
||||||
<param name="service" value="Device" />
|
<plugin name="Contacts" value="org.apache.cordova.ContactManager"/>
|
||||||
<param name="package" value="org.apache.cordova.Device" />
|
<plugin name="File" value="org.apache.cordova.FileUtils"/>
|
||||||
</feature>
|
<plugin name="NetworkStatus" value="org.apache.cordova.NetworkManager"/>
|
||||||
<feature name="http://example.org/api/accelerometer">
|
<plugin name="Notification" value="org.apache.cordova.Notification"/>
|
||||||
<param name="service" value="Accelerometer" />
|
<plugin name="Storage" value="org.apache.cordova.Storage"/>
|
||||||
<param name="package" value="org.apache.cordova.AccelListener" />
|
<plugin name="Temperature" value="org.apache.cordova.TempListener"/>
|
||||||
</feature>
|
<plugin name="FileTransfer" value="org.apache.cordova.FileTransfer"/>
|
||||||
<feature name="http://example.org/api/compass">
|
<plugin name="Capture" value="org.apache.cordova.Capture"/>
|
||||||
<param name="service" value="Compass" />
|
<plugin name="Battery" value="org.apache.cordova.BatteryListener"/>
|
||||||
<param name="package" value="org.apache.cordova.CompassListener" />
|
<plugin name="SplashScreen" value="org.apache.cordova.SplashScreen"/>
|
||||||
</feature>
|
</plugins>
|
||||||
<feature name="http://example.org/api/media">
|
</cordova>
|
||||||
<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>
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user