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.10">
|
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 | </js-module>
|
36 |
|
37 |
|
38 | <platform name="firefoxos">
|
39 | <config-file target="www/config.xml" parent="/*">
|
40 | <feature name="Vibration">
|
41 | <param name="firefoxos-package" value="Vibration" />
|
42 | </feature>
|
43 | </config-file>
|
44 | <js-module src="src/firefoxos/VibrationProxy.js" name="VibrationProxy">
|
45 | <runs />
|
46 | </js-module>
|
47 | </platform>
|
48 |
|
49 |
|
50 | <platform name="wp7">
|
51 | <config-file target="config.xml" parent="/*">
|
52 | <feature name="Vibration">
|
53 | <param name="wp-package" value="Vibration"/>
|
54 | </feature>
|
55 | </config-file>
|
56 |
|
57 | <source-file src="src/wp/Vibration.cs" />
|
58 | </platform>
|
59 |
|
60 |
|
61 | <platform name="wp8">
|
62 | <config-file target="config.xml" parent="/*">
|
63 | <feature name="Vibration">
|
64 | <param name="wp-package" value="Vibration"/>
|
65 | </feature>
|
66 | </config-file>
|
67 |
|
68 | <source-file src="src/wp/Vibration.cs" />
|
69 | </platform>
|
70 |
|
71 |
|
72 | <platform name="android">
|
73 | <config-file target="res/xml/config.xml" parent="/*">
|
74 | <feature name="Vibration">
|
75 | <param name="android-package" value="org.apache.cordova.vibration.Vibration"/>
|
76 | </feature>
|
77 | </config-file>
|
78 |
|
79 | <source-file src="src/android/Vibration.java" target-dir="src/org/apache/cordova/vibration" />
|
80 |
|
81 | <config-file target="AndroidManifest.xml" parent="/manifest">
|
82 | <uses-permission android:name="android.permission.VIBRATE"/>
|
83 | </config-file>
|
84 | </platform>
|
85 |
|
86 |
|
87 | <platform name="amazon-fireos">
|
88 | <config-file target="res/xml/config.xml" parent="/*">
|
89 | <feature name="Vibration">
|
90 | <param name="android-package" value="org.apache.cordova.vibration.Vibration"/>
|
91 | </feature>
|
92 | </config-file>
|
93 |
|
94 | <source-file src="src/android/Vibration.java" target-dir="src/org/apache/cordova/vibration" />
|
95 |
|
96 | <config-file target="AndroidManifest.xml" parent="/manifest">
|
97 | <uses-permission android:name="android.permission.VIBRATE"/>
|
98 | </config-file>
|
99 | </platform>
|
100 |
|
101 |
|
102 | <platform name="ubuntu">
|
103 | <header-file src="src/ubuntu/vibration.h" />
|
104 | <source-file src="src/ubuntu/vibration.cpp" />
|
105 | </platform>
|
106 |
|
107 |
|
108 | <platform name="ios">
|
109 | <config-file target="config.xml" parent="/*">
|
110 | <feature name="Vibration">
|
111 | <param name="ios-package" value="CDVVibration"/>
|
112 | </feature>
|
113 | </config-file>
|
114 | <header-file src="src/ios/CDVVibration.h" />
|
115 | <source-file src="src/ios/CDVVibration.m" />
|
116 |
|
117 | <framework src="AudioToolbox.framework" weak="true" />
|
118 | </platform>
|
119 |
|
120 |
|
121 | <platform name="blackberry10">
|
122 | <source-file src="src/blackberry10/index.js" target-dir="Vibration"/>
|
123 | <lib-file src="src/blackberry10/native/device/libVibration.so" arch="device" />
|
124 | <lib-file src="src/blackberry10/native/simulator/libVibration.so" arch="simulator" />
|
125 | <config-file target="www/config.xml" parent="/widget">
|
126 | <feature name="Vibration" value="Vibration" />
|
127 | </config-file>
|
128 | </platform>
|
129 |
|
130 |
|
131 | <platform name="tizen">
|
132 | <js-module src="src/tizen/VibrationProxy.js" name="VibrationProxy">
|
133 | <runs />
|
134 | </js-module>
|
135 | </platform>
|
136 | </plugin>
|