UNPKG

5.88 kBXMLView Raw
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 id="cordova-plugin-device-motion"
23 version="2.0.1">
24
25 <name>Device Motion</name>
26 <description>[DEPRECATED] Cordova Device Motion Plugin</description>
27 <license>Apache 2.0</license>
28 <keywords>cordova,device,motion</keywords>
29 <repo>https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion.git</repo>
30 <issue>https://issues.apache.org/jira/browse/CB/component/12320636</issue>
31
32 <js-module src="www/Acceleration.js" name="Acceleration">
33 <clobbers target="Acceleration" />
34 </js-module>
35
36 <js-module src="www/accelerometer.js" name="accelerometer">
37 <clobbers target="navigator.accelerometer" />
38 </js-module>
39
40 <info>
41 [DEPRECATED] - cordova-plugin-device-motion
42 With the W3C Device Motion and Orientation API now being supported on iOS, Android and Windows devices, this plugin is not needed any more. Read more about the API at https://www.w3.org/TR/2016/CR-orientation-event-20160818/
43 </info>
44
45 <!-- firefoxos -->
46 <platform name="firefoxos">
47 <config-file target="config.xml" parent="/*">
48 <feature name="Accelerometer">
49 <param name="firefoxos-package" value="Accelerometer" />
50 </feature>
51 </config-file>
52
53 <js-module src="src/firefoxos/accelerometer.js" name="accelerometer-impl">
54 <runs />
55 </js-module>
56 </platform>
57
58 <!-- android -->
59 <platform name="android">
60
61 <config-file target="res/xml/config.xml" parent="/*">
62 <feature name="Accelerometer">
63 <param name="android-package" value="org.apache.cordova.devicemotion.AccelListener"/>
64 </feature>
65 </config-file>
66
67 <source-file src="src/android/AccelListener.java" target-dir="src/org/apache/cordova/devicemotion" />
68
69 </platform>
70
71 <!-- amazon-fireos -->
72 <platform name="amazon-fireos">
73
74 <config-file target="res/xml/config.xml" parent="/*">
75 <feature name="Accelerometer">
76 <param name="android-package" value="org.apache.cordova.devicemotion.AccelListener"/>
77 </feature>
78 </config-file>
79
80 <source-file src="src/android/AccelListener.java" target-dir="src/org/apache/cordova/devicemotion" />
81
82 </platform>
83
84 <!-- ubuntu -->
85 <platform name="ubuntu">
86 <header-file src="src/ubuntu/accelerometer.h" />
87 <source-file src="src/ubuntu/accelerometer.cpp" />
88 </platform>
89
90 <!-- ios -->
91 <platform name="ios">
92
93 <config-file target="config.xml" parent="/*">
94 <feature name="Accelerometer">
95 <param name="ios-package" value="CDVAccelerometer"/>
96 </feature>
97 </config-file>
98
99 <header-file src="src/ios/CDVAccelerometer.h" />
100 <source-file src="src/ios/CDVAccelerometer.m" />
101
102 <framework src="CoreMotion.framework" />
103 </platform>
104
105 <!-- blackberry10 -->
106 <platform name="blackberry10">
107 <config-file target="www/config.xml" parent="/widget">
108 <feature name="Accelerometer" value="Accelerometer"/>
109 </config-file>
110 <source-file src="src/blackberry10/index.js" target-dir="Accelerometer" />
111 </platform>
112
113 <!-- wp7 -->
114 <platform name="wp7">
115 <config-file target="config.xml" parent="/*">
116 <feature name="Accelerometer">
117 <param name="wp-package" value="Accelerometer"/>
118 </feature>
119 </config-file>
120
121 <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
122 <Capability Name="ID_CAP_SENSORS" />
123 </config-file>
124
125 <source-file src="src/wp/Accelerometer.cs" />
126 </platform>
127
128 <!-- wp8 -->
129 <platform name="wp8">
130 <config-file target="config.xml" parent="/*">
131 <feature name="Accelerometer">
132 <param name="wp-package" value="Accelerometer"/>
133 </feature>
134 </config-file>
135
136 <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
137 <Capability Name="ID_CAP_SENSORS" />
138 </config-file>
139
140 <source-file src="src/wp/Accelerometer.cs" />
141 </platform>
142
143 <!-- windows8 -->
144 <platform name="windows8">
145 <js-module src="src/windows/AccelerometerProxy.js" name="AccelerometerProxy">
146 <runs />
147 </js-module>
148 </platform>
149
150 <!-- windows -->
151 <platform name="windows">
152 <js-module src="src/windows/AccelerometerProxy.js" name="AccelerometerProxy">
153 <runs />
154 </js-module>
155 </platform>
156
157 <!-- tizen -->
158 <platform name="tizen">
159 <js-module src="src/tizen/AccelerometerProxy.js" name="AccelerometerProxy">
160 <runs/>
161 </js-module>
162 </platform>
163
164 <!-- browser -->
165 <platform name="browser">
166 <js-module src="src/browser/AccelerometerProxy.js" name="AccelerometerProxy">
167 <runs/>
168 </js-module>
169 </platform>
170</plugin>