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