forked from scottdermott/cordova-plugin-discovery
-
Notifications
You must be signed in to change notification settings - Fork 4
/
plugin.xml
47 lines (35 loc) · 1.35 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="com.scott.serviceDiscovery"
version="1.1.0">
<name>serviceDiscovery</name>
<engines>
<engine name="cordova" version=">=3.4.0"/>
</engines>
<asset src="www/serviceDiscovery.js" target="js/serviceDiscovery.js"/>
<js-module src="www/serviceDiscovery.js" name="serviceDiscovery">
<clobbers target="serviceDiscovery" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="ServiceDiscovery">
<param name="android-package" value="com.scott.plugin.ServiceDiscovery"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
</config-file>
<source-file src="src/android/ServiceDiscovery.java" target-dir="src/com/scott/plugin/"/>
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="serviceDiscovery">
<param name="ios-package" value="ServiceDiscovery" onload="true" />
</feature>
</config-file>
<header-file src="src/ios/ServiceDiscovery.h" />
<source-file src="src/ios/ServiceDiscovery.m" />
</platform>
</plugin>