mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-20 16:22:53 +08:00
4b9047b7d8
This unifies the config.xml used by iOS and Android. Now <feature> tags can be used to add plugins. The changes are non-intrusive so the older versions of the config.xml can still be used after this change. The value of a param named "android-package" determines the class for the plugin.
86 lines
3.0 KiB
XML
86 lines
3.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<widget xmlns = "http://www.w3.org/ns/widgets"
|
|
id = "io.cordova.helloCordova"
|
|
version = "2.0.0">
|
|
<name>Hello Cordova</name>
|
|
|
|
<description>
|
|
A sample Apache Cordova application that responds to the deviceready event.
|
|
</description>
|
|
|
|
<author href="http://cordova.io" email="callback-dev@incubator.apache.org">
|
|
Apache Cordova Team
|
|
</author>
|
|
|
|
<access origin="*"/>
|
|
|
|
|
|
<!-- <content src="http://mysite.com/myapp.html" /> for external pages -->
|
|
<content src="index.html" />
|
|
|
|
<log level="DEBUG"/>
|
|
|
|
<!-- Preferences for Android -->
|
|
<preference name="useBrowserHistory" value="true" />
|
|
<preference name="exit-on-suspend" value="false" />
|
|
|
|
<feature name="App">
|
|
<param name="android-package" value="org.apache.cordova.App"/>
|
|
</feature>
|
|
<feature name="Geolocation">
|
|
<param name="android-package" value="org.apache.cordova.GeoBroker"/>
|
|
</feature>
|
|
<feature name="Device">
|
|
<param name="android-package" value="org.apache.cordova.Device"/>
|
|
</feature>
|
|
<feature name="Accelerometer">
|
|
<param name="android-package" value="org.apache.cordova.AccelListener"/>
|
|
</feature>
|
|
<feature name="Compass">
|
|
<param name="android-package" value="org.apache.cordova.CompassListener"/>
|
|
</feature>
|
|
<feature name="Media">
|
|
<param name="android-package" value="org.apache.cordova.AudioHandler"/>
|
|
</feature>
|
|
<feature name="Camera">
|
|
<param name="android-package" value="org.apache.cordova.CameraLauncher"/>
|
|
</feature>
|
|
<feature name="Contacts">
|
|
<param name="android-package" value="org.apache.cordova.ContactManager"/>
|
|
</feature>
|
|
<feature name="File">
|
|
<param name="android-package" value="org.apache.cordova.FileUtils"/>
|
|
</feature>
|
|
<feature name="NetworkStatus">
|
|
<param name="android-package" value="org.apache.cordova.NetworkManager"/>
|
|
</feature>
|
|
<feature name="Notification">
|
|
<param name="android-package" value="org.apache.cordova.Notification"/>
|
|
</feature>
|
|
<feature name="Storage">
|
|
<param name="android-package" value="org.apache.cordova.Storage"/>
|
|
</feature>
|
|
<feature name="FileTransfer">
|
|
<param name="android-package" value="org.apache.cordova.FileTransfer"/>
|
|
</feature>
|
|
<feature name="Capture">
|
|
<param name="android-package" value="org.apache.cordova.Capture"/>
|
|
</feature>
|
|
<feature name="Battery">
|
|
<param name="android-package" value="org.apache.cordova.BatteryListener"/>
|
|
</feature>
|
|
<feature name="SplashScreen">
|
|
<param name="android-package" value="org.apache.cordova.SplashScreen"/>
|
|
</feature>
|
|
<feature name="Echo">
|
|
<param name="android-package" value="org.apache.cordova.Echo"/>
|
|
</feature>
|
|
<feature name="Globalization">
|
|
<param name="android-package" value="org.apache.cordova.Globalization"/>
|
|
</feature>
|
|
<feature name="InAppBrowser">
|
|
<param name="android-package" value="org.apache.cordova.InAppBrowser"/>
|
|
</feature>
|
|
|
|
</widget>
|