-
Notifications
You must be signed in to change notification settings - Fork 23
/
plugin.xml
102 lines (78 loc) · 4.03 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="com.aquto.cordova.VPNManager"
version="0.0.1">
<name>VPN Manager</name>
<description>
Allows users to provision, enable and disable a vpn
</description>
<license>MIT</license>
<keywords>cordova,vpn</keywords>
<preference name="ALLOWWIFI" />
<js-module src="www/VPNManager.js" name="VPNManager">
<clobbers target="window.plugins.VPNManager" />
</js-module>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="VPNManager">
<param name="ios-package" value="VPNManager" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="*-Info.plist" parent="AllowWiFi">
<string>$ALLOWWIFI</string>
</config-file>
<framework src="NetworkExtension.framework" />
<framework src="Security.framework" />
<framework src="SystemConfiguration.framework" />
<header-file src="src/ios/UICKeyChainStore.h" />
<header-file src="src/ios/VPNManager.h" />
<header-file src="src/ios/Reachability.h" />
<source-file src="src/ios/UICKeyChainStore.m" />
<source-file src="src/ios/VPNManager.m" />
<source-file src="src/ios/Reachability.m" />
</platform>
<!-- android -->
<platform name="android">
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service
android:name="org.strongswan.android.logic.VpnStateService"
android:exported="false" >
</service>
<service
android:name="org.strongswan.android.logic.CharonVpnService"
android:exported="false"
android:permission="android.permission.BIND_VPN_SERVICE" >
<intent-filter>
<action android:name="android.net.VpnService" />
</intent-filter>
</service>
<meta-data android:name="allowWiFi" android:value="$ALLOWWIFI" />
</config-file>
<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.READ_EXTERNAL_STORAGE" />
</config-file>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="VPNManager">
<param name="android-package" value="org.aquto.cordova.vpn.VPNManager"/>
<param name="onload" value="true" />
</feature>
</config-file>
<lib-file src="src/android/libs/AQStrongSwan.jar" />
<source-file src="src/android/VPNManager.java" target-dir="src/com/plugin/VPNManager" />
<source-file src="src/android/CordovaVPNStateListener.java" target-dir="src/com/plugin/VPNManager" />
<source-file src="src/android/ConnectionValidityChecker.java" target-dir="src/com/plugin/VPNManager" />
<source-file src="src/android/StateConversion.java" target-dir="src/com/plugin/VPNManager" />
<source-file src="src/android/libs/armeabi/libstrongswan.so" target-dir="libs/armeabi" />
<source-file src="src/android/libs/armeabi/libhydra.so" target-dir="libs/armeabi" />
<source-file src="src/android/libs/armeabi/libcharon.so" target-dir="libs/armeabi" />
<source-file src="src/android/libs/armeabi/libipsec.so" target-dir="libs/armeabi" />
<source-file src="src/android/libs/armeabi/libandroidbridge.so" target-dir="libs/armeabi" />
<source-file src="src/android/libs/armeabi/libtncif.so" target-dir="libs/armeabi" />
<source-file src="src/android/libs/armeabi/libtnccs.so" target-dir="libs/armeabi" />
<source-file src="src/android/libs/armeabi/libimcv.so" target-dir="libs/armeabi" />
</platform>
</plugin>