This repository has been archived by the owner on Jan 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
/
plugin.xml
77 lines (65 loc) · 4.38 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
<?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=">=6.0.0" />
<engine name="cordova-ios" version=">=4.3.1" />
<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" />
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"/>
</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/" />
<source-file src="src/android/java/io/jxcore/node/WifiLocker.java" target-dir="src/io/jxcore/node/" />
<source-file src="src/android/java/io/jxcore/node/SurroundingStateObserver.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">
<hook type="before_plugin_install" src="thali/install/cordova-hooks/ios/before_plugin_install.js" />
<hook type="after_plugin_install" src="thali/install/cordova-hooks/ios/after_plugin_install.js" />
<config-file target="config.xml" parent="/*">
<feature name="ThaliPlugin">
<param name="ios-package" value="ThaliPlugin" />
</feature>
</config-file>
<source-file src="src/ios/JXcoreExtension.m" compiler-flags="-Werror"/>
<source-file src="src/ios/AppContext.swift" compiler-flags="-Werror"/>
</platform>
</plugin>