|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" |
3 | | - xmlns:android="http://schemas.android.com/apk/res/android" |
4 | | - id="com.tlantic.plugins.socket" |
5 | | - version="0.4.1"> |
| 2 | +<plugin xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + id="com.tlantic.plugins.socket" version="0.6.0" |
| 4 | + xmlns="http://apache.org/cordova/ns/plugins/1.0"> |
6 | 5 | <name>Socket</name> |
7 | 6 | <description>Tlantic TCP socket plugin</description> |
8 | 7 | <license>GPL</license> |
9 | 8 | <keywords>cordova, tcp, socket</keywords> |
10 | 9 |
|
11 | | - <js-module src="www/socket.js" name="Socket"> |
| 10 | + <js-module name="Socket" src="www/socket.js"> |
12 | 11 | <clobbers target="window.tlantic.plugins.socket" /> |
13 | 12 | </js-module> |
14 | 13 |
|
15 | 14 | <!-- android --> |
16 | 15 | <platform name="android"> |
17 | | - <config-file target="res/xml/config.xml" parent="/*"> |
| 16 | + <config-file parent="/*" target="res/xml/config.xml"> |
18 | 17 | <feature name="Socket"> |
19 | | - <param name="android-package" value="com.tlantic.plugins.socket.SocketPlugin"/> |
| 18 | + <param name="android-package" value="com.tlantic.plugins.socket.SocketPlugin" /> |
20 | 19 | </feature> |
21 | 20 | </config-file> |
22 | | - <config-file target="AndroidManifest.xml" parent="/manifest"> |
| 21 | + <config-file parent="/manifest" target="AndroidManifest.xml"> |
23 | 22 | <uses-permission android:name="android.permission.INTERNET" /> |
24 | | - </config-file> |
25 | | - <source-file src="src/android/SocketPlugin.java" target-dir="src/com/tlantic/plugins/socket" /> |
26 | | - <source-file src="src/android/Connection.java" target-dir="src/com/tlantic/plugins/socket" /> |
| 23 | + </config-file> |
| 24 | + <source-file src="src/android/SocketPlugin.java" |
| 25 | + target-dir="src/com/tlantic/plugins/socket" /> |
| 26 | + <source-file src="src/android/Connection.java" |
| 27 | + target-dir="src/com/tlantic/plugins/socket" /> |
27 | 28 | </platform> |
28 | 29 |
|
29 | 30 | <!-- ios --> |
30 | 31 | <platform name="ios"> |
31 | | - <config-file target="config.xml" parent="/*"> |
| 32 | + <config-file parent="/*" target="config.xml"> |
32 | 33 | <feature name="Socket"> |
33 | 34 | <param name="ios-package" value="CDVSocketPlugin" /> |
34 | 35 | </feature> |
|
38 | 39 | <header-file src="src/ios/Connection.h" /> |
39 | 40 |
|
40 | 41 | <source-file src="src/ios/CDVSocketPlugin.m" /> |
41 | | - <source-file src="src/ios/Connection.m" /> |
| 42 | + <source-file src="src/ios/Connection.m" /> |
42 | 43 | </platform> |
43 | 44 |
|
44 | | - <!-- windows8 --> |
| 45 | + <!-- windows8 --> |
45 | 46 | <platform name="windows8"> |
46 | | - <js-module src="src/windows8/Connection.js" name="Connection"> |
| 47 | + <js-module name="Connection" src="src/windows8/Connection.js"> |
47 | 48 | <merges target="" /> |
48 | | - </js-module> |
49 | | - <js-module src="src/windows8/SocketProxy.js" name="SocketProxy"> |
| 49 | + </js-module> |
| 50 | + <js-module name="SocketProxy" src="src/windows8/SocketProxy.js"> |
50 | 51 | <merges target="" /> |
51 | 52 | </js-module> |
52 | | - <config-file target="package.appxmanifest" parent="/Package/Capabilities"> |
| 53 | + <config-file parent="/Package/Capabilities" target="package.appxmanifest"> |
53 | 54 | <Capability Name="internetClientServer" /> |
54 | 55 | <Capability Name="privateNetworkClientServer" /> |
55 | 56 | <Capability Name="internetClient" /> |
56 | 57 | </config-file> |
57 | | - </platform> |
| 58 | + </platform> |
58 | 59 |
|
59 | 60 | </plugin> |
0 commit comments