1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
22 | xmlns:android="http://schemas.android.com/apk/res/android"
|
23 | id="org.apache.cordova.vibration"
|
24 | version="0.3.11">
|
25 |
|
26 | <name>Vibration</name>
|
27 | <description>Cordova Vibration Plugin</description>
|
28 | <license>Apache 2.0</license>
|
29 | <keywords>cordova,vibration</keywords>
|
30 | <repo>https://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration.git</repo>
|
31 | <issue>https://issues.apache.org/jira/browse/CB/component/12320639</issue>
|
32 |
|
33 | <js-module src="www/vibration.js" name="notification">
|
34 | <merges target="navigator.notification" />
|
35 | <merges target="navigator" />
|
36 | </js-module>
|
37 |
|
38 |
|
39 | <platform name="firefoxos">
|
40 | <config-file target="www/config.xml" parent="/*">
|
41 | <feature name="Vibration">
|
42 | <param name="firefoxos-package" value="Vibration" />
|
43 | </feature>
|
44 | </config-file>
|
45 | <js-module src="src/firefoxos/VibrationProxy.js" name="VibrationProxy">
|
46 | <runs />
|
47 | </js-module>
|
48 | </platform>
|
49 |
|
50 |
|
51 | <platform name="wp7">
|
52 | <config-file target="config.xml" parent="/*">
|
53 | <feature name="Vibration">
|
54 | <param name="wp-package" value="Vibration"/>
|
55 | </feature>
|
56 | </config-file>
|
57 |
|
58 | <source-file src="src/wp/Vibration.cs" />
|
59 | </platform>
|
60 |
|
61 |
|
62 | <platform name="wp8">
|
63 | <config-file target="config.xml" parent="/*">
|
64 | <feature name="Vibration">
|
65 | <param name="wp-package" value="Vibration"/>
|
66 | </feature>
|
67 | </config-file>
|
68 |
|
69 | <source-file src="src/wp/Vibration.cs" />
|
70 | </platform>
|
71 |
|
72 |
|
73 | <platform name="android">
|
74 | <config-file target="res/xml/config.xml" parent="/*">
|
75 | <feature name="Vibration">
|
76 | <param name="android-package" value="org.apache.cordova.vibration.Vibration"/>
|
77 | </feature>
|
78 | </config-file>
|
79 |
|
80 | <source-file src="src/android/Vibration.java" target-dir="src/org/apache/cordova/vibration" />
|
81 |
|
82 | <config-file target="AndroidManifest.xml" parent="/manifest">
|
83 | <uses-permission android:name="android.permission.VIBRATE"/>
|
84 | </config-file>
|
85 | </platform>
|
86 |
|
87 |
|
88 | <platform name="amazon-fireos">
|
89 | <config-file target="res/xml/config.xml" parent="/*">
|
90 | <feature name="Vibration">
|
91 | <param name="android-package" value="org.apache.cordova.vibration.Vibration"/>
|
92 | </feature>
|
93 | </config-file>
|
94 |
|
95 | <source-file src="src/android/Vibration.java" target-dir="src/org/apache/cordova/vibration" />
|
96 |
|
97 | <config-file target="AndroidManifest.xml" parent="/manifest">
|
98 | <uses-permission android:name="android.permission.VIBRATE"/>
|
99 | </config-file>
|
100 | </platform>
|
101 |
|
102 |
|
103 | <platform name="ubuntu">
|
104 | <header-file src="src/ubuntu/vibration.h" />
|
105 | <source-file src="src/ubuntu/vibration.cpp" />
|
106 | </platform>
|
107 |
|
108 |
|
109 | <platform name="ios">
|
110 | <config-file target="config.xml" parent="/*">
|
111 | <feature name="Vibration">
|
112 | <param name="ios-package" value="CDVVibration"/>
|
113 | </feature>
|
114 | </config-file>
|
115 | <header-file src="src/ios/CDVVibration.h" />
|
116 | <source-file src="src/ios/CDVVibration.m" />
|
117 |
|
118 | <framework src="AudioToolbox.framework" weak="true" />
|
119 | </platform>
|
120 |
|
121 |
|
122 | <platform name="blackberry10">
|
123 | <source-file src="src/blackberry10/index.js" target-dir="Vibration"/>
|
124 | <lib-file src="src/blackberry10/native/device/libVibration.so" arch="device" />
|
125 | <lib-file src="src/blackberry10/native/simulator/libVibration.so" arch="simulator" />
|
126 | <config-file target="www/config.xml" parent="/widget">
|
127 | <feature name="Vibration" value="Vibration" />
|
128 | </config-file>
|
129 | </platform>
|
130 |
|
131 |
|
132 | <platform name="tizen">
|
133 | <js-module src="src/tizen/VibrationProxy.js" name="VibrationProxy">
|
134 | <runs />
|
135 | </js-module>
|
136 | </platform>
|
137 | </plugin>
|