forked from thaliproject/Thali_CordovaPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
146 lines (140 loc) · 8.23 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?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="org.thaliproject.p2p"
version="0.0.1">
<name>Thali</name>
<description>ThaliPlugin to be used on top of JXcore</description>
<license>MIT</license>
<keywords>cordova,jxcore,node.js,thali</keywords>
<engines>
<engine name="cordova-android" version=">=5.0.0" />
<engine name="cordova-ios" version=">=3.9.0" />
<engine name="android-sdk" version=">=23" />
</engines>
<!-- Android -->
<platform name="android">
<hook type="after_plugin_install" src="thali/install/cordova-hooks/android/after_plugin_install.js" />
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</config-file>
<framework src="src/android/JXcore.gradle" custom="true" type="gradleReference" />
<source-file src="src/android/java/io/jxcore/node/ConnectionData.java" target-dir="src/io/jxcore/node/" />
<source-file src="src/android/java/io/jxcore/node/ConnectionHelper.java" target-dir="src/io/jxcore/node/" />
<source-file src="src/android/java/io/jxcore/node/ConnectionModel.java" target-dir="src/io/jxcore/node/" />
<source-file src="src/android/java/io/jxcore/node/ConnectivityMonitor.java" target-dir="src/io/jxcore/node/" />
<source-file src="src/android/java/io/jxcore/node/IncomingSocketThread.java" target-dir="src/io/jxcore/node/" />
<source-file src="src/android/java/io/jxcore/node/JXcoreThaliCallback.java" target-dir="src/io/jxcore/node/" />
<source-file src="src/android/java/io/jxcore/node/LifeCycleMonitor.java" target-dir="src/io/jxcore/node/" />
<source-file src="src/android/java/io/jxcore/node/ListenerOrIncomingConnection.java" target-dir="src/io/jxcore/node/" />
<source-file src="src/android/java/io/jxcore/node/OutgoingSocketThread.java" target-dir="src/io/jxcore/node/" />
<source-file src="src/android/java/io/jxcore/node/SocketThreadBase.java" target-dir="src/io/jxcore/node/" />
<source-file src="src/android/java/io/jxcore/node/StartStopOperation.java" target-dir="src/io/jxcore/node/" />
<source-file src="src/android/java/io/jxcore/node/StartStopOperationHandler.java" target-dir="src/io/jxcore/node/" />
<source-file src="src/android/java/io/jxcore/node/StreamCopyingThread.java" target-dir="src/io/jxcore/node/" />
<source-file src="src/android/java/io/jxcore/node/TestHelper.java" target-dir="src/io/jxcore/node/" />
<!-- ThaliPermissions -->
<config-file target="config.xml" parent="/*">
<feature name="ThaliPermissions" >
<param name="android-package" value="org.thaliproject.p2p.ThaliPermissions"/>
</feature>
</config-file>
<js-module src="www/android/thaliPermissions.js" name="ThaliPermissions">
<clobbers target="window.ThaliPermissions" />
</js-module>
<source-file src="src/android/java/org/thaliproject/p2p/ThaliPermissions.java" target-dir="src/org/thaliproject/p2p/" />
</platform>
<!-- iOS -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
</config-file>
<framework src="MultipeerConnectivity.framework" />
<framework src="CoreBluetooth.framework" />
<framework src="SystemConfiguration.framework" />
<header-file src="src/ios/THEThaliEventDelegate.h"
compiler-flags="-Werror"/>
<header-file src="src/ios/THERemoteConnectionDelegate.h"
compiler-flags="-Werror"/>
<source-file src="src/ios/JXcoreExtension.m"
compiler-flags="-Werror"/>
<header-file src="src/ios/Utility/THEThreading.h"
compiler-flags="-Werror" />
<header-file src="src/ios/NPReachability/NPReachability.h"
compiler-flags="-Werror"/>
<source-file src="src/ios/NPReachability/NPReachability.m"
compiler-flags="-Werror"/>
<header-file src="src/ios/THEAppContext.h"
compiler-flags="-Werror"/>
<source-file src="src/ios/THEAppContext.m"
compiler-flags="-Werror"/>
<header-file src="src/ios/THEPeerBluetoothDelegate.h"
compiler-flags="-Werror"/>
<header-file src="src/ios/THEPeerBluetooth.h"
compiler-flags="-Werror"/>
<source-file src="src/ios/THEPeerBluetooth.m"
compiler-flags="-Werror"/>
<header-file src="src/ios/THEPeerDiscoveryDelegate.h"
compiler-flags="-Werror"/>
<header-file src="src/ios/MultipeerConnectivity/THEMultipeerServerConnectionDelegate.h"
compiler-flags="-Werror"/>
<header-file src="src/ios/MultipeerConnectivity/THEMultipeerDiscoveryDelegate.h"
compiler-flags="-Werror"/>
<header-file src="src/ios/MultipeerConnectivity/THEMultipeerSessionStateDelegate.h"
compiler-flags="-Werror"/>
<header-file src="src/ios/MultipeerConnectivity/THEMultipeerManager.h"
compiler-flags="-Werror"/>
<source-file src="src/ios/MultipeerConnectivity/THEMultipeerManager.m"
compiler-flags="-Werror"/>
<header-file src="src/ios/MultipeerConnectivity/THEMultipeerClient.h"
compiler-flags="-Werror"/>
<source-file src="src/ios/MultipeerConnectivity/THEMultipeerClient.m"
compiler-flags="-Werror"/>
<header-file src="src/ios/MultipeerConnectivity/THEMultipeerServer.h"
compiler-flags="-Werror"/>
<source-file src="src/ios/MultipeerConnectivity/THEMultipeerServer.m"
compiler-flags="-Werror"/>
<header-file src="src/ios/MultipeerConnectivity/THEMultipeerPeerSession.h"
compiler-flags="-Werror"/>
<source-file src="src/ios/MultipeerConnectivity/THEMultipeerPeerSession.m"
compiler-flags="-Werror"/>
<header-file src="src/ios/MultipeerConnectivity/THEMultipeerClientSession.h"
compiler-flags="-Werror"/>
<source-file src="src/ios/MultipeerConnectivity/THEMultipeerClientSession.m"
compiler-flags="-Werror"/>
<header-file src="src/ios/MultipeerConnectivity/THEMultipeerServerSession.h"
compiler-flags="-Werror"/>
<source-file src="src/ios/MultipeerConnectivity/THEMultipeerServerSession.m"
compiler-flags="-Werror"/>
<header-file src="src/ios/MultipeerConnectivity/THEMultipeerSocketRelay.h"
compiler-flags="-Werror"/>
<source-file src="src/ios/MultipeerConnectivity/THEMultipeerSocketRelay.m"
compiler-flags="-Werror"/>
<header-file src="src/ios/MultipeerConnectivity/THEMultipeerClientSocketRelay.h"
compiler-flags="-Werror"/>
<source-file src="src/ios/MultipeerConnectivity/THEMultipeerClientSocketRelay.m"
compiler-flags="-Werror"/>
<header-file src="src/ios/MultipeerConnectivity/THEMultipeerClientSocketRelayDelegate.h"
compiler-flags="-Werror"/>
<header-file src="src/ios/MultipeerConnectivity/THEMultipeerServerSocketRelayDelegate.h"
compiler-flags="-Werror"/>
<header-file src="src/ios/MultipeerConnectivity/THEMultipeerServerSocketRelay.h"
compiler-flags="-Werror"/>
<source-file src="src/ios/MultipeerConnectivity/THEMultipeerServerSocketRelay.m"
compiler-flags="-Werror"/>
<header-file src="src/ios/GCDAsyncSocket/GCDAsyncSocket.h"
compiler-flags="-Werror"/>
<source-file src="src/ios/GCDAsyncSocket/GCDAsyncSocket.m"
compiler-flags="-Werror"/>
<header-file src="src/ios/Utility/THEProtectedMutableDictionary.h"
compiler-flags="-Werror"/>
<source-file src="src/ios/Utility/THEProtectedMutableDictionary.m"
compiler-flags="-Werror"/>
<header-file src="src/ios/Utility/THESessionDictionary.h"
compiler-flags="-Werror"/>
<source-file src="src/ios/Utility/THESessionDictionary.m"
compiler-flags="-Werror"/>
</platform>
</plugin>