UNPKG

5.69 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="1.2.1">
24
25 <name>Device Motion</name>
26 <description>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 <!-- firefoxos -->
41 <platform name="firefoxos">
42 <config-file target="config.xml" parent="/*">
43 <feature name="Accelerometer">
44 <param name="firefoxos-package" value="Accelerometer" />
45 </feature>
46 </config-file>
47
48 <js-module src="src/firefoxos/accelerometer.js" name="accelerometer-impl">
49 <runs />
50 </js-module>
51 </platform>
52
53 <!-- android -->
54 <platform name="android">
55
56 <config-file target="res/xml/config.xml" parent="/*">
57 <feature name="Accelerometer">
58 <param name="android-package" value="org.apache.cordova.devicemotion.AccelListener"/>
59 </feature>
60 </config-file>
61
62 <source-file src="src/android/AccelListener.java" target-dir="src/org/apache/cordova/devicemotion" />
63
64 </platform>
65
66 <!-- amazon-fireos -->
67 <platform name="amazon-fireos">
68
69 <config-file target="res/xml/config.xml" parent="/*">
70 <feature name="Accelerometer">
71 <param name="android-package" value="org.apache.cordova.devicemotion.AccelListener"/>
72 </feature>
73 </config-file>
74
75 <source-file src="src/android/AccelListener.java" target-dir="src/org/apache/cordova/devicemotion" />
76
77 </platform>
78
79 <!-- ubuntu -->
80 <platform name="ubuntu">
81 <header-file src="src/ubuntu/accelerometer.h" />
82 <source-file src="src/ubuntu/accelerometer.cpp" />
83 </platform>
84
85 <!-- ios -->
86 <platform name="ios">
87
88 <config-file target="config.xml" parent="/*">
89 <feature name="Accelerometer">
90 <param name="ios-package" value="CDVAccelerometer"/>
91 </feature>
92 </config-file>
93
94 <header-file src="src/ios/CDVAccelerometer.h" />
95 <source-file src="src/ios/CDVAccelerometer.m" />
96
97 <framework src="CoreMotion.framework" />
98 </platform>
99
100 <!-- blackberry10 -->
101 <platform name="blackberry10">
102 <config-file target="www/config.xml" parent="/widget">
103 <feature name="Accelerometer" value="Accelerometer"/>
104 </config-file>
105 <source-file src="src/blackberry10/index.js" target-dir="Accelerometer" />
106 </platform>
107
108 <!-- wp7 -->
109 <platform name="wp7">
110 <config-file target="config.xml" parent="/*">
111 <feature name="Accelerometer">
112 <param name="wp-package" value="Accelerometer"/>
113 </feature>
114 </config-file>
115
116 <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
117 <Capability Name="ID_CAP_SENSORS" />
118 </config-file>
119
120 <source-file src="src/wp/Accelerometer.cs" />
121 </platform>
122
123 <!-- wp8 -->
124 <platform name="wp8">
125 <config-file target="config.xml" parent="/*">
126 <feature name="Accelerometer">
127 <param name="wp-package" value="Accelerometer"/>
128 </feature>
129 </config-file>
130
131 <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
132 <Capability Name="ID_CAP_SENSORS" />
133 </config-file>
134
135 <source-file src="src/wp/Accelerometer.cs" />
136 </platform>
137
138 <!-- windows8 -->
139 <platform name="windows8">
140 <js-module src="src/windows/AccelerometerProxy.js" name="AccelerometerProxy">
141 <merges target="" />
142 </js-module>
143 </platform>
144
145 <!-- windows -->
146 <platform name="windows">
147 <js-module src="src/windows/AccelerometerProxy.js" name="AccelerometerProxy">
148 <merges target="" />
149 </js-module>
150 </platform>
151
152 <!-- tizen -->
153 <platform name="tizen">
154 <js-module src="src/tizen/AccelerometerProxy.js" name="AccelerometerProxy">
155 <runs/>
156 </js-module>
157 </platform>
158
159 <!-- browser -->
160 <platform name="browser">
161 <js-module src="src/browser/AccelerometerProxy.js" name="AccelerometerProxy">
162 <runs/>
163 </js-module>
164 </platform>
165</plugin>