-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathplugin.xml
55 lines (55 loc) · 2.97 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-secure-device" version="1.0.4" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>secureDevice</name>
<description>Stops app from running if device is not secure, i.e. it is jailbroken, rooted, or doesn't have a passcode set.</description>
<author>André Vieira</author>
<license>Apache 2.0 License</license>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="secureDevice">
<param name="android-package" value="com.outsystemscloud.andrevieira.secureDevice" />
<param name="onload" value="true" />
</feature>
</config-file>
<source-file src="src/android/secureDevice.java" target-dir="src/com/outsystemscloud/andrevieira/secureDevice/" />
<source-file src="src/android/res/values-de/strings.xml" target-dir="res/values-de" />
<source-file src="src/android/res/values-es/strings.xml" target-dir="res/values-es" />
<source-file src="src/android/res/values-fr/strings.xml" target-dir="res/values-fr" />
<source-file src="src/android/res/values-ja/strings.xml" target-dir="res/values-ja" />
<source-file src="src/android/res/values-pt/strings.xml" target-dir="res/values-pt" />
<source-file src="src/android/res/values-nl/strings.xml" target-dir="res/values-nl" />
<source-file src="src/android/res/values-pap/strings.xml" target-dir="res/values-pap" />
<config-file parent="/resources" target="res/values/strings.xml">
<string name="message">This application does not run on a device that is rooted or does not have a passcode set.</string>
<string name="label">Close</string>
</config-file>
</platform>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="secureDevice">
<param name="ios-package" value="secureDevice" />
<param name="onload" value="true" />
</feature>
</config-file>
<framework src="Security.framework" weak="true"/>
<header-file src="src/ios/secureDevice.h" />
<source-file src="src/ios/secureDevice.m" />
<header-file src="src/ios/UIDevice+PasscodeStatus.h"/>
<source-file src="src/ios/UIDevice+PasscodeStatus.m"/>
<header-file src="src/ios/UIDevice+JBDetect.h"/>
<source-file src="src/ios/UIDevice+JBDetect.m"/>
<resource-file src="src/ios/secureDevice.bundle"/>
<config-file platform="ios" target="*-Info.plist" parent="CFBundleLocalizations">
<array>
<string>fr</string>
<string>pt</string>
<string>ja</string>
<string>es</string>
<string>de</string>
<string>en</string>
<string>nl</string>
<string>pap</string>
</array>
</config-file>
</platform>
</plugin>