-
Notifications
You must be signed in to change notification settings - Fork 43
/
plugin.xml
59 lines (52 loc) · 2.25 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
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.tlantic.plugins.socket"
version="0.3.2">
<name>Socket</name>
<description>Tlantic TCP socket plugin</description>
<license>GPL</license>
<keywords>cordova, tcp, socket</keywords>
<js-module src="www/socket.js" name="Socket">
<clobbers target="window.tlantic.plugins.socket" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="Socket">
<param name="android-package" value="com.tlantic.plugins.socket.SocketPlugin"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET" />
</config-file>
<source-file src="src/android/SocketPlugin.java" target-dir="src/com/tlantic/plugins/socket" />
<source-file src="src/android/Connection.java" target-dir="src/com/tlantic/plugins/socket" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="Socket">
<param name="ios-package" value="CDVSocketPlugin" />
</feature>
</config-file>
<header-file src="src/ios/CDVSocketPlugin.h" />
<header-file src="src/ios/Connection.h" />
<source-file src="src/ios/CDVSocketPlugin.m" />
<source-file src="src/ios/Connection.m" />
</platform>
<!-- windows8 -->
<platform name="windows8">
<js-module src="src/windows8/Connection.js" name="Connection">
<merges target="" />
</js-module>
<js-module src="src/windows8/SocketProxy.js" name="SocketProxy">
<merges target="" />
</js-module>
<config-file target="package.appxmanifest" parent="/Package/Capabilities">
<Capability Name="internetClientServer" />
<Capability Name="privateNetworkClientServer" />
<Capability Name="internetClient" />
</config-file>
</platform>
</plugin>