| 15747 |
anikendra |
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
2 |
<!--
|
|
|
3 |
Licensed to the Apache Software Foundation (ASF) under one
|
|
|
4 |
or more contributor license agreements. See the NOTICE file
|
|
|
5 |
distributed with this work for additional information
|
|
|
6 |
regarding copyright ownership. The ASF licenses this file
|
|
|
7 |
to you under the Apache License, Version 2.0 (the
|
|
|
8 |
"License"); you may not use this file except in compliance
|
|
|
9 |
with the License. You may obtain a copy of the License at
|
|
|
10 |
|
|
|
11 |
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
12 |
|
|
|
13 |
Unless required by applicable law or agreed to in writing,
|
|
|
14 |
software distributed under the License is distributed on an
|
|
|
15 |
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
16 |
KIND, either express or implied. See the License for the
|
|
|
17 |
specific language governing permissions and limitations
|
|
|
18 |
under the License.
|
|
|
19 |
-->
|
|
|
20 |
|
|
|
21 |
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
|
|
22 |
xmlns:rim="http://www.blackberry.com/ns/widgets"
|
|
|
23 |
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
24 |
id="org.apache.cordova.device"
|
|
|
25 |
version="0.3.0">
|
|
|
26 |
<name>Device</name>
|
|
|
27 |
<description>Cordova Device Plugin</description>
|
|
|
28 |
<license>Apache 2.0</license>
|
|
|
29 |
<keywords>cordova,device</keywords>
|
|
|
30 |
<repo>https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git</repo>
|
|
|
31 |
<issue>https://issues.apache.org/jira/browse/CB/component/12320648</issue>
|
|
|
32 |
|
|
|
33 |
<js-module src="www/device.js" name="device">
|
|
|
34 |
<clobbers target="device" />
|
|
|
35 |
</js-module>
|
|
|
36 |
|
|
|
37 |
<!-- firefoxos -->
|
|
|
38 |
<platform name="firefoxos">
|
|
|
39 |
<config-file target="config.xml" parent="/*">
|
|
|
40 |
<feature name="Device">
|
|
|
41 |
<param name="firefoxos-package" value="Device" />
|
|
|
42 |
</feature>
|
|
|
43 |
</config-file>
|
|
|
44 |
|
|
|
45 |
<js-module src="src/firefoxos/DeviceProxy.js" name="DeviceProxy">
|
|
|
46 |
<runs />
|
|
|
47 |
</js-module>
|
|
|
48 |
</platform>
|
|
|
49 |
|
|
|
50 |
<!-- tizen -->
|
|
|
51 |
<platform name="tizen">
|
|
|
52 |
<js-module src="src/tizen/DeviceProxy.js" name="DeviceProxy">
|
|
|
53 |
<runs />
|
|
|
54 |
</js-module>
|
|
|
55 |
</platform>
|
|
|
56 |
|
|
|
57 |
<!-- android -->
|
|
|
58 |
<platform name="android">
|
|
|
59 |
<config-file target="res/xml/config.xml" parent="/*">
|
|
|
60 |
<feature name="Device" >
|
|
|
61 |
<param name="android-package" value="org.apache.cordova.device.Device"/>
|
|
|
62 |
</feature>
|
|
|
63 |
</config-file>
|
|
|
64 |
|
|
|
65 |
<source-file src="src/android/Device.java" target-dir="src/org/apache/cordova/device" />
|
|
|
66 |
</platform>
|
|
|
67 |
|
|
|
68 |
<!-- amazon-fireos -->
|
|
|
69 |
<platform name="amazon-fireos">
|
|
|
70 |
<config-file target="res/xml/config.xml" parent="/*">
|
|
|
71 |
<feature name="Device" >
|
|
|
72 |
<param name="android-package" value="org.apache.cordova.device.Device"/>
|
|
|
73 |
</feature>
|
|
|
74 |
</config-file>
|
|
|
75 |
|
|
|
76 |
<source-file src="src/android/Device.java" target-dir="src/org/apache/cordova/device" />
|
|
|
77 |
</platform>
|
|
|
78 |
|
|
|
79 |
<!-- ubuntu -->
|
|
|
80 |
<platform name="ubuntu">
|
|
|
81 |
<header-file src="src/ubuntu/device.h" />
|
|
|
82 |
<source-file src="src/ubuntu/device.cpp" />
|
|
|
83 |
<js-module src="src/ubuntu/device.js" name="DeviceProxy">
|
|
|
84 |
<merges target="device" />
|
|
|
85 |
</js-module>
|
|
|
86 |
</platform>
|
|
|
87 |
|
|
|
88 |
<!-- ios -->
|
|
|
89 |
<platform name="ios">
|
|
|
90 |
<config-file target="config.xml" parent="/*">
|
|
|
91 |
<feature name="Device">
|
|
|
92 |
<param name="ios-package" value="CDVDevice"/>
|
|
|
93 |
</feature>
|
|
|
94 |
</config-file>
|
|
|
95 |
|
|
|
96 |
<header-file src="src/ios/CDVDevice.h" />
|
|
|
97 |
<source-file src="src/ios/CDVDevice.m" />
|
|
|
98 |
</platform>
|
|
|
99 |
|
|
|
100 |
<!-- blackberry10 -->
|
|
|
101 |
<platform name="blackberry10">
|
|
|
102 |
<source-file src="src/blackberry10/index.js" target-dir="Device" />
|
|
|
103 |
<config-file target="www/config.xml" parent="/widget">
|
|
|
104 |
<feature name="Device" value="Device"/>
|
|
|
105 |
</config-file>
|
|
|
106 |
<config-file target="www/config.xml" parent="/widget/rim:permissions">
|
|
|
107 |
<rim:permit>read_device_identifying_information</rim:permit>
|
|
|
108 |
</config-file>
|
|
|
109 |
</platform>
|
|
|
110 |
|
|
|
111 |
<!-- wp7 -->
|
|
|
112 |
<platform name="wp7">
|
|
|
113 |
<config-file target="config.xml" parent="/*">
|
|
|
114 |
<feature name="Device">
|
|
|
115 |
<param name="wp-package" value="Device"/>
|
|
|
116 |
</feature>
|
|
|
117 |
</config-file>
|
|
|
118 |
|
|
|
119 |
<config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
|
|
|
120 |
<Capability Name="ID_CAP_IDENTITY_DEVICE" />
|
|
|
121 |
</config-file>
|
|
|
122 |
|
|
|
123 |
<source-file src="src/wp/Device.cs" />
|
|
|
124 |
</platform>
|
|
|
125 |
|
|
|
126 |
<!-- wp8 -->
|
|
|
127 |
<platform name="wp8">
|
|
|
128 |
<config-file target="config.xml" parent="/*">
|
|
|
129 |
<feature name="Device">
|
|
|
130 |
<param name="wp-package" value="Device"/>
|
|
|
131 |
</feature>
|
|
|
132 |
</config-file>
|
|
|
133 |
|
|
|
134 |
<config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
|
|
|
135 |
<Capability Name="ID_CAP_IDENTITY_DEVICE" />
|
|
|
136 |
</config-file>
|
|
|
137 |
|
|
|
138 |
<source-file src="src/wp/Device.cs" />
|
|
|
139 |
</platform>
|
|
|
140 |
|
|
|
141 |
<!-- windows8 -->
|
|
|
142 |
<platform name="windows8">
|
|
|
143 |
<js-module src="src/windows8/DeviceProxy.js" name="DeviceProxy">
|
|
|
144 |
<merges target="" />
|
|
|
145 |
</js-module>
|
|
|
146 |
</platform>
|
|
|
147 |
|
|
|
148 |
<!-- windows -->
|
|
|
149 |
<platform name="windows">
|
|
|
150 |
<js-module src="src/windows/DeviceProxy.js" name="DeviceProxy">
|
|
|
151 |
<merges target="" />
|
|
|
152 |
</js-module>
|
|
|
153 |
</platform>
|
|
|
154 |
|
|
|
155 |
<!-- browser -->
|
|
|
156 |
<platform name="browser">
|
|
|
157 |
<config-file target="config.xml" parent="/*">
|
|
|
158 |
<feature name="Device">
|
|
|
159 |
<param name="browser-package" value="Device" />
|
|
|
160 |
</feature>
|
|
|
161 |
</config-file>
|
|
|
162 |
|
|
|
163 |
<js-module src="src/browser/DeviceProxy.js" name="DeviceProxy">
|
|
|
164 |
<runs />
|
|
|
165 |
</js-module>
|
|
|
166 |
</platform>
|
|
|
167 |
|
|
|
168 |
</plugin>
|