cordova-plugin-mserviceinterface-2.0 1.0.21 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +28 -28
- package/plugin.xml +153 -153
- package/src/android/CallbackProgressDialog.java +53 -53
- package/src/android/FileProvider.java +7 -7
- package/src/android/backgroundNotification.java +120 -120
- package/src/android/doubleogradle.gradle +5 -5
- package/src/android/mInterface.java +2087 -2066
- package/src/android/mInterfaceReceiver.java +59 -59
- package/src/android/mInterfaceService.java +749 -749
- package/src/android/mInterfaceUtil.java +1686 -1688
- package/src/android/res/xml/network_security_config.xml +8 -8
- package/src/android/res/xml/opener_paths.xml +16 -16
- package/src/ios/InternetConnection.h +64 -64
- package/src/ios/InternetConnection.m +242 -242
- package/src/ios/SSZipArchive.h +146 -146
- package/src/ios/SSZipArchive.m +1180 -1180
- package/src/ios/SSZipCommon.h +66 -66
- package/src/ios/UICKeyChainStore.h +64 -64
- package/src/ios/UICKeyChainStore.m +434 -434
- package/src/ios/XMLConverter.h +61 -61
- package/src/ios/XMLConverter.m +243 -243
- package/src/ios/ZipArchive.h +19 -19
- package/src/ios/aes/aes.h +270 -270
- package/src/ios/aes/aes_ni.c +687 -687
- package/src/ios/aes/aes_ni.h +59 -59
- package/src/ios/aes/aescrypt.c +301 -301
- package/src/ios/aes/aeskey.c +554 -554
- package/src/ios/aes/aesopt.h +776 -776
- package/src/ios/aes/aestab.c +418 -418
- package/src/ios/aes/aestab.h +173 -173
- package/src/ios/aes/brg_endian.h +127 -127
- package/src/ios/aes/brg_types.h +191 -191
- package/src/ios/aes/fileenc.c +145 -145
- package/src/ios/aes/fileenc.h +121 -121
- package/src/ios/aes/hmac.c +209 -209
- package/src/ios/aes/hmac.h +119 -119
- package/src/ios/aes/prng.c +155 -155
- package/src/ios/aes/prng.h +82 -82
- package/src/ios/aes/pwd2key.c +181 -181
- package/src/ios/aes/pwd2key.h +45 -45
- package/src/ios/aes/sha1.c +283 -283
- package/src/ios/aes/sha1.h +72 -72
- package/src/ios/mInterface.h +2 -0
- package/src/ios/mInterface.m +18 -1
- package/src/ios/minizip/crypt.c +146 -146
- package/src/ios/minizip/crypt.h +66 -66
- package/src/ios/minizip/ioapi.c +353 -353
- package/src/ios/minizip/ioapi.h +154 -154
- package/src/ios/minizip/ioapi_buf.c +452 -452
- package/src/ios/minizip/ioapi_buf.h +52 -52
- package/src/ios/minizip/ioapi_mem.c +167 -167
- package/src/ios/minizip/ioapi_mem.h +52 -52
- package/src/ios/minizip/minishared.c +292 -292
- package/src/ios/minizip/minishared.h +50 -50
- package/src/ios/minizip/unzip.c +2007 -2007
- package/src/ios/minizip/unzip.h +254 -254
- package/src/ios/minizip/zip.c +2007 -2007
- package/src/ios/minizip/zip.h +215 -215
- package/www/mInterface.js +3 -3
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cordova-plugin-mserviceinterface-2.0",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "This plugin establishes the connection to the native interface and performs the requested task.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "test"
|
|
8
|
-
},
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/selfservit/cordova-plugin-mserviceinterface-2.0.git"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [
|
|
14
|
-
"mserviceinterface-2.0"
|
|
15
|
-
],
|
|
16
|
-
"author": "selfservit@gmail.com",
|
|
17
|
-
"license": "ISC",
|
|
18
|
-
"bugs": {
|
|
19
|
-
"url": "https://github.com/selfservit/cordova-plugin-mserviceinterface-2.0/issues"
|
|
20
|
-
},
|
|
21
|
-
"homepage": "https://github.com/selfservit/cordova-plugin-mserviceinterface-2.0#readme",
|
|
22
|
-
"engines": [
|
|
23
|
-
{
|
|
24
|
-
"name": "cordova",
|
|
25
|
-
"version": ">=5.0.0"
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "cordova-plugin-mserviceinterface-2.0",
|
|
3
|
+
"version": "1.0.25",
|
|
4
|
+
"description": "This plugin establishes the connection to the native interface and performs the requested task.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "test"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/selfservit/cordova-plugin-mserviceinterface-2.0.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"mserviceinterface-2.0"
|
|
15
|
+
],
|
|
16
|
+
"author": "selfservit@gmail.com",
|
|
17
|
+
"license": "ISC",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/selfservit/cordova-plugin-mserviceinterface-2.0/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://github.com/selfservit/cordova-plugin-mserviceinterface-2.0#readme",
|
|
22
|
+
"engines": [
|
|
23
|
+
{
|
|
24
|
+
"name": "cordova",
|
|
25
|
+
"version": ">=5.0.0"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
package/plugin.xml
CHANGED
|
@@ -1,153 +1,153 @@
|
|
|
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="cordova-plugin-mserviceinterface-2.0"
|
|
5
|
-
version="1.0.
|
|
6
|
-
<name>mserviceinterface-2.0</name>
|
|
7
|
-
<description>This plugin establishes the connection to the native interface and performs the requested task.</description>
|
|
8
|
-
<author>selfservit@gmail.com</author>
|
|
9
|
-
<engines>
|
|
10
|
-
<engine name="cordova" version=">=5.0.0" />
|
|
11
|
-
</engines>
|
|
12
|
-
<keywords>mserviceinterface-2.0</keywords>
|
|
13
|
-
<license>Apache 2.0 License</license>
|
|
14
|
-
<repo></repo>
|
|
15
|
-
<issue></issue>
|
|
16
|
-
<asset src="www/mInterface.js" target="js/mInterface.js"/>
|
|
17
|
-
<js-module src="www/mInterface.js" name="mInterface">
|
|
18
|
-
<clobbers target="mInterface" />
|
|
19
|
-
</js-module>
|
|
20
|
-
<platform name="android">
|
|
21
|
-
<framework src="src/android/doubleogradle.gradle" custom="true" type="gradleReference"/>
|
|
22
|
-
<framework src="com.google.android.gms:play-services:11.0.+" />
|
|
23
|
-
<framework src="com.google.android.gms:play-services-location:11.0.+" />
|
|
24
|
-
<framework src="com.android.support:support-v4:26.0.1" />
|
|
25
|
-
<framework src="com.google.zxing:core:3.2.1" />
|
|
26
|
-
<framework src="com.journeyapps:zxing-android-embedded:3.2.0@aar" />
|
|
27
|
-
<edit-config xmlns:android="http://schemas.android.com/apk/res/android" file="AndroidManifest.xml" mode="merge" target="/manifest/application">
|
|
28
|
-
<application android:networkSecurityConfig="@xml/network_security_config" />
|
|
29
|
-
<application android:requestLegacyExternalStorage="true" />
|
|
30
|
-
</edit-config>
|
|
31
|
-
<config-file target="res/xml/config.xml" parent="/*">
|
|
32
|
-
<feature name="mInterface" >
|
|
33
|
-
<param name="android-package" value="com.selfservit.util.mInterface"/>
|
|
34
|
-
</feature>
|
|
35
|
-
</config-file>
|
|
36
|
-
<config-file target="AndroidManifest.xml" parent="/manifest">
|
|
37
|
-
<uses-feature android:name="android.hardware.camera" android:required="true" />
|
|
38
|
-
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
39
|
-
<uses-permission android:name="android.permission.INTERNET" />
|
|
40
|
-
<uses-permission android:name="android.permission.CAMERA" />
|
|
41
|
-
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
|
42
|
-
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
43
|
-
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
|
44
|
-
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
|
45
|
-
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
|
46
|
-
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
|
47
|
-
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
|
48
|
-
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
|
49
|
-
</config-file>
|
|
50
|
-
<config-file target="AndroidManifest.xml" parent="/manifest/application">
|
|
51
|
-
<service android:name="com.selfservit.util.mInterfaceService" android:enabled="true" android:exported="true"/>
|
|
52
|
-
<service
|
|
53
|
-
android:name="com.selfservit.util.backgroundNotification"
|
|
54
|
-
android:permission="android.permission.BIND_JOB_SERVICE"
|
|
55
|
-
android:exported="false">
|
|
56
|
-
<intent-filter>
|
|
57
|
-
<action android:name="com.onesignal.NotificationExtender" />
|
|
58
|
-
</intent-filter>
|
|
59
|
-
</service>
|
|
60
|
-
<receiver android:name="com.selfservit.util.mInterfaceReceiver" android:enabled="true" android:exported="true">
|
|
61
|
-
<intent-filter>
|
|
62
|
-
<action android:name="android.intent.action.BOOT_COMPLETED"/>
|
|
63
|
-
<action android:name="com.example.checkservice" />
|
|
64
|
-
</intent-filter>
|
|
65
|
-
</receiver>
|
|
66
|
-
<provider android:name="com.selfservit.util.FileProvider" android:authorities="${applicationId}.provider" android:exported="false" android:grantUriPermissions="true">
|
|
67
|
-
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/opener_paths" />
|
|
68
|
-
</provider>
|
|
69
|
-
</config-file>
|
|
70
|
-
<source-file src="src/android/mInterfaceService.java" target-dir="src/com/selfservit/util/" />
|
|
71
|
-
<source-file src="src/android/backgroundNotification.java" target-dir="src/com/selfservit/util/" />
|
|
72
|
-
<source-file src="src/android/mInterfaceReceiver.java" target-dir="src/com/selfservit/util/" />
|
|
73
|
-
<source-file src="src/android/mInterface.java" target-dir="src/com/selfservit/util/" />
|
|
74
|
-
<source-file src="src/android/mInterfaceUtil.java" target-dir="src/com/selfservit/util/" />
|
|
75
|
-
<source-file src="src/android/CallbackProgressDialog.java" target-dir="src/com/selfservit/util/" />
|
|
76
|
-
<source-file src="src/android/FileProvider.java" target-dir="src/com/selfservit/util/" />
|
|
77
|
-
<source-file src="src/android/res/xml/opener_paths.xml" target-dir="res/xml" />
|
|
78
|
-
<source-file src="src/android/res/xml/network_security_config.xml" target-dir="res/xml" />
|
|
79
|
-
</platform>
|
|
80
|
-
<platform name="ios">
|
|
81
|
-
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
|
|
82
|
-
<string>Equipcare wants to access your camera and gallery to attach the images for service reports and photo proofs.</string>
|
|
83
|
-
</config-file>
|
|
84
|
-
|
|
85
|
-
<config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
|
|
86
|
-
<string>Equipcare wants to access your camera and gallery to attach the images for service reports and photo proofs.</string>
|
|
87
|
-
</config-file>
|
|
88
|
-
<preference name="CAMERA_USAGE_DESCRIPTION" default="Allow use camera from your device" />
|
|
89
|
-
<preference name="PHOTOLIBRARY_USAGE_DESCRIPTION" default="Allow access your photos from gallery" />
|
|
90
|
-
<config-file target="config.xml" parent="/widget">
|
|
91
|
-
<feature name="mInterface">
|
|
92
|
-
<param name="ios-package" value="mInterface" />
|
|
93
|
-
</feature>
|
|
94
|
-
</config-file>
|
|
95
|
-
<header-file src="src/ios/mInterface.h"/>
|
|
96
|
-
<source-file src="src/ios/mInterface.m"/>
|
|
97
|
-
<header-file src="src/ios/InternetConnection.h"/>
|
|
98
|
-
<source-file src="src/ios/InternetConnection.m"/>
|
|
99
|
-
<header-file src="src/ios/XMLConverter.h"/>
|
|
100
|
-
<source-file src="src/ios/XMLConverter.m"/>
|
|
101
|
-
<header-file src="src/ios/UICKeyChainStore.h" />
|
|
102
|
-
<source-file src="src/ios/UICKeyChainStore.m" />
|
|
103
|
-
<source-file src="src/ios/SSZipArchive.h" />
|
|
104
|
-
<source-file src="src/ios/SSZipArchive.m" />
|
|
105
|
-
<header-file src="src/ios/SSZipCommon.h" />
|
|
106
|
-
<header-file src="src/ios/ZipArchive.h" />
|
|
107
|
-
<source-file src="src/ios/minizip/crypt.c" />
|
|
108
|
-
<header-file src="src/ios/minizip/crypt.h" />
|
|
109
|
-
<source-file src="src/ios/minizip/ioapi_buf.c" />
|
|
110
|
-
<header-file src="src/ios/minizip/ioapi_buf.h" />
|
|
111
|
-
<source-file src="src/ios/minizip/ioapi_mem.c" />
|
|
112
|
-
<header-file src="src/ios/minizip/ioapi_mem.h" />
|
|
113
|
-
<source-file src="src/ios/minizip/ioapi.c" />
|
|
114
|
-
<header-file src="src/ios/minizip/ioapi.h" />
|
|
115
|
-
<source-file src="src/ios/minizip/minishared.c" />
|
|
116
|
-
<header-file src="src/ios/minizip/minishared.h" />
|
|
117
|
-
<source-file src="src/ios/minizip/unzip.c" />
|
|
118
|
-
<header-file src="src/ios/minizip/unzip.h" />
|
|
119
|
-
<source-file src="src/ios/minizip/zip.c" />
|
|
120
|
-
<header-file src="src/ios/minizip/zip.h" />
|
|
121
|
-
<source-file src="src/ios/aes/aes_ni.c" />
|
|
122
|
-
<header-file src="src/ios/aes/aes_ni.h" />
|
|
123
|
-
<header-file src="src/ios/aes/aes.h" />
|
|
124
|
-
<source-file src="src/ios/aes/aescrypt.c" />
|
|
125
|
-
<source-file src="src/ios/aes/aeskey.c" />
|
|
126
|
-
<header-file src="src/ios/aes/aesopt.h" />
|
|
127
|
-
<source-file src="src/ios/aes/aestab.c" />
|
|
128
|
-
<header-file src="src/ios/aes/aestab.h" />
|
|
129
|
-
<header-file src="src/ios/aes/brg_endian.h" />
|
|
130
|
-
<header-file src="src/ios/aes/brg_types.h" />
|
|
131
|
-
<source-file src="src/ios/aes/fileenc.c" />
|
|
132
|
-
<header-file src="src/ios/aes/fileenc.h" />
|
|
133
|
-
<source-file src="src/ios/aes/hmac.c" />
|
|
134
|
-
<header-file src="src/ios/aes/hmac.h" />
|
|
135
|
-
<source-file src="src/ios/aes/prng.c" />
|
|
136
|
-
<header-file src="src/ios/aes/prng.h" />
|
|
137
|
-
<source-file src="src/ios/aes/pwd2key.c" />
|
|
138
|
-
<header-file src="src/ios/aes/pwd2key.h" />
|
|
139
|
-
<source-file src="src/ios/aes/sha1.c" />
|
|
140
|
-
<header-file src="src/ios/aes/sha1.h" />
|
|
141
|
-
<framework src="MapKit.framework" />
|
|
142
|
-
<framework src="Foundation.framework" />
|
|
143
|
-
<framework src="SystemConfiguration.framework" />
|
|
144
|
-
<framework src="CoreFoundation.framework" />
|
|
145
|
-
<framework src="CoreTelephony.framework" />
|
|
146
|
-
<framework src="UIKit.framework" />
|
|
147
|
-
<framework src="CFNetwork.framework" />
|
|
148
|
-
<framework src="AssetsLibrary.framework" />
|
|
149
|
-
<framework src="AVFoundation.framework" />
|
|
150
|
-
<framework src="libz.dylib" />
|
|
151
|
-
<framework src="Security.framework" />
|
|
152
|
-
</platform>
|
|
153
|
-
</plugin>
|
|
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="cordova-plugin-mserviceinterface-2.0"
|
|
5
|
+
version="1.0.25">
|
|
6
|
+
<name>mserviceinterface-2.0</name>
|
|
7
|
+
<description>This plugin establishes the connection to the native interface and performs the requested task.</description>
|
|
8
|
+
<author>selfservit@gmail.com</author>
|
|
9
|
+
<engines>
|
|
10
|
+
<engine name="cordova" version=">=5.0.0" />
|
|
11
|
+
</engines>
|
|
12
|
+
<keywords>mserviceinterface-2.0</keywords>
|
|
13
|
+
<license>Apache 2.0 License</license>
|
|
14
|
+
<repo></repo>
|
|
15
|
+
<issue></issue>
|
|
16
|
+
<asset src="www/mInterface.js" target="js/mInterface.js"/>
|
|
17
|
+
<js-module src="www/mInterface.js" name="mInterface">
|
|
18
|
+
<clobbers target="mInterface" />
|
|
19
|
+
</js-module>
|
|
20
|
+
<platform name="android">
|
|
21
|
+
<framework src="src/android/doubleogradle.gradle" custom="true" type="gradleReference"/>
|
|
22
|
+
<framework src="com.google.android.gms:play-services:11.0.+" />
|
|
23
|
+
<framework src="com.google.android.gms:play-services-location:11.0.+" />
|
|
24
|
+
<framework src="com.android.support:support-v4:26.0.1" />
|
|
25
|
+
<framework src="com.google.zxing:core:3.2.1" />
|
|
26
|
+
<framework src="com.journeyapps:zxing-android-embedded:3.2.0@aar" />
|
|
27
|
+
<edit-config xmlns:android="http://schemas.android.com/apk/res/android" file="AndroidManifest.xml" mode="merge" target="/manifest/application">
|
|
28
|
+
<application android:networkSecurityConfig="@xml/network_security_config" />
|
|
29
|
+
<application android:requestLegacyExternalStorage="true" />
|
|
30
|
+
</edit-config>
|
|
31
|
+
<config-file target="res/xml/config.xml" parent="/*">
|
|
32
|
+
<feature name="mInterface" >
|
|
33
|
+
<param name="android-package" value="com.selfservit.util.mInterface"/>
|
|
34
|
+
</feature>
|
|
35
|
+
</config-file>
|
|
36
|
+
<config-file target="AndroidManifest.xml" parent="/manifest">
|
|
37
|
+
<uses-feature android:name="android.hardware.camera" android:required="true" />
|
|
38
|
+
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
39
|
+
<uses-permission android:name="android.permission.INTERNET" />
|
|
40
|
+
<uses-permission android:name="android.permission.CAMERA" />
|
|
41
|
+
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
|
42
|
+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
43
|
+
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
|
44
|
+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
|
45
|
+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
|
46
|
+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
|
47
|
+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
|
48
|
+
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
|
49
|
+
</config-file>
|
|
50
|
+
<config-file target="AndroidManifest.xml" parent="/manifest/application">
|
|
51
|
+
<service android:name="com.selfservit.util.mInterfaceService" android:enabled="true" android:exported="true"/>
|
|
52
|
+
<service
|
|
53
|
+
android:name="com.selfservit.util.backgroundNotification"
|
|
54
|
+
android:permission="android.permission.BIND_JOB_SERVICE"
|
|
55
|
+
android:exported="false">
|
|
56
|
+
<intent-filter>
|
|
57
|
+
<action android:name="com.onesignal.NotificationExtender" />
|
|
58
|
+
</intent-filter>
|
|
59
|
+
</service>
|
|
60
|
+
<receiver android:name="com.selfservit.util.mInterfaceReceiver" android:enabled="true" android:exported="true">
|
|
61
|
+
<intent-filter>
|
|
62
|
+
<action android:name="android.intent.action.BOOT_COMPLETED"/>
|
|
63
|
+
<action android:name="com.example.checkservice" />
|
|
64
|
+
</intent-filter>
|
|
65
|
+
</receiver>
|
|
66
|
+
<provider android:name="com.selfservit.util.FileProvider" android:authorities="${applicationId}.provider" android:exported="false" android:grantUriPermissions="true">
|
|
67
|
+
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/opener_paths" />
|
|
68
|
+
</provider>
|
|
69
|
+
</config-file>
|
|
70
|
+
<source-file src="src/android/mInterfaceService.java" target-dir="src/com/selfservit/util/" />
|
|
71
|
+
<source-file src="src/android/backgroundNotification.java" target-dir="src/com/selfservit/util/" />
|
|
72
|
+
<source-file src="src/android/mInterfaceReceiver.java" target-dir="src/com/selfservit/util/" />
|
|
73
|
+
<source-file src="src/android/mInterface.java" target-dir="src/com/selfservit/util/" />
|
|
74
|
+
<source-file src="src/android/mInterfaceUtil.java" target-dir="src/com/selfservit/util/" />
|
|
75
|
+
<source-file src="src/android/CallbackProgressDialog.java" target-dir="src/com/selfservit/util/" />
|
|
76
|
+
<source-file src="src/android/FileProvider.java" target-dir="src/com/selfservit/util/" />
|
|
77
|
+
<source-file src="src/android/res/xml/opener_paths.xml" target-dir="res/xml" />
|
|
78
|
+
<source-file src="src/android/res/xml/network_security_config.xml" target-dir="res/xml" />
|
|
79
|
+
</platform>
|
|
80
|
+
<platform name="ios">
|
|
81
|
+
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
|
|
82
|
+
<string>Equipcare wants to access your camera and gallery to attach the images for service reports and photo proofs.</string>
|
|
83
|
+
</config-file>
|
|
84
|
+
|
|
85
|
+
<config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
|
|
86
|
+
<string>Equipcare wants to access your camera and gallery to attach the images for service reports and photo proofs.</string>
|
|
87
|
+
</config-file>
|
|
88
|
+
<preference name="CAMERA_USAGE_DESCRIPTION" default="Allow use camera from your device" />
|
|
89
|
+
<preference name="PHOTOLIBRARY_USAGE_DESCRIPTION" default="Allow access your photos from gallery" />
|
|
90
|
+
<config-file target="config.xml" parent="/widget">
|
|
91
|
+
<feature name="mInterface">
|
|
92
|
+
<param name="ios-package" value="mInterface" />
|
|
93
|
+
</feature>
|
|
94
|
+
</config-file>
|
|
95
|
+
<header-file src="src/ios/mInterface.h"/>
|
|
96
|
+
<source-file src="src/ios/mInterface.m"/>
|
|
97
|
+
<header-file src="src/ios/InternetConnection.h"/>
|
|
98
|
+
<source-file src="src/ios/InternetConnection.m"/>
|
|
99
|
+
<header-file src="src/ios/XMLConverter.h"/>
|
|
100
|
+
<source-file src="src/ios/XMLConverter.m"/>
|
|
101
|
+
<header-file src="src/ios/UICKeyChainStore.h" />
|
|
102
|
+
<source-file src="src/ios/UICKeyChainStore.m" />
|
|
103
|
+
<source-file src="src/ios/SSZipArchive.h" />
|
|
104
|
+
<source-file src="src/ios/SSZipArchive.m" />
|
|
105
|
+
<header-file src="src/ios/SSZipCommon.h" />
|
|
106
|
+
<header-file src="src/ios/ZipArchive.h" />
|
|
107
|
+
<source-file src="src/ios/minizip/crypt.c" />
|
|
108
|
+
<header-file src="src/ios/minizip/crypt.h" />
|
|
109
|
+
<source-file src="src/ios/minizip/ioapi_buf.c" />
|
|
110
|
+
<header-file src="src/ios/minizip/ioapi_buf.h" />
|
|
111
|
+
<source-file src="src/ios/minizip/ioapi_mem.c" />
|
|
112
|
+
<header-file src="src/ios/minizip/ioapi_mem.h" />
|
|
113
|
+
<source-file src="src/ios/minizip/ioapi.c" />
|
|
114
|
+
<header-file src="src/ios/minizip/ioapi.h" />
|
|
115
|
+
<source-file src="src/ios/minizip/minishared.c" />
|
|
116
|
+
<header-file src="src/ios/minizip/minishared.h" />
|
|
117
|
+
<source-file src="src/ios/minizip/unzip.c" />
|
|
118
|
+
<header-file src="src/ios/minizip/unzip.h" />
|
|
119
|
+
<source-file src="src/ios/minizip/zip.c" />
|
|
120
|
+
<header-file src="src/ios/minizip/zip.h" />
|
|
121
|
+
<source-file src="src/ios/aes/aes_ni.c" />
|
|
122
|
+
<header-file src="src/ios/aes/aes_ni.h" />
|
|
123
|
+
<header-file src="src/ios/aes/aes.h" />
|
|
124
|
+
<source-file src="src/ios/aes/aescrypt.c" />
|
|
125
|
+
<source-file src="src/ios/aes/aeskey.c" />
|
|
126
|
+
<header-file src="src/ios/aes/aesopt.h" />
|
|
127
|
+
<source-file src="src/ios/aes/aestab.c" />
|
|
128
|
+
<header-file src="src/ios/aes/aestab.h" />
|
|
129
|
+
<header-file src="src/ios/aes/brg_endian.h" />
|
|
130
|
+
<header-file src="src/ios/aes/brg_types.h" />
|
|
131
|
+
<source-file src="src/ios/aes/fileenc.c" />
|
|
132
|
+
<header-file src="src/ios/aes/fileenc.h" />
|
|
133
|
+
<source-file src="src/ios/aes/hmac.c" />
|
|
134
|
+
<header-file src="src/ios/aes/hmac.h" />
|
|
135
|
+
<source-file src="src/ios/aes/prng.c" />
|
|
136
|
+
<header-file src="src/ios/aes/prng.h" />
|
|
137
|
+
<source-file src="src/ios/aes/pwd2key.c" />
|
|
138
|
+
<header-file src="src/ios/aes/pwd2key.h" />
|
|
139
|
+
<source-file src="src/ios/aes/sha1.c" />
|
|
140
|
+
<header-file src="src/ios/aes/sha1.h" />
|
|
141
|
+
<framework src="MapKit.framework" />
|
|
142
|
+
<framework src="Foundation.framework" />
|
|
143
|
+
<framework src="SystemConfiguration.framework" />
|
|
144
|
+
<framework src="CoreFoundation.framework" />
|
|
145
|
+
<framework src="CoreTelephony.framework" />
|
|
146
|
+
<framework src="UIKit.framework" />
|
|
147
|
+
<framework src="CFNetwork.framework" />
|
|
148
|
+
<framework src="AssetsLibrary.framework" />
|
|
149
|
+
<framework src="AVFoundation.framework" />
|
|
150
|
+
<framework src="libz.dylib" />
|
|
151
|
+
<framework src="Security.framework" />
|
|
152
|
+
</platform>
|
|
153
|
+
</plugin>
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
package com.selfservit.util;
|
|
3
|
-
|
|
4
|
-
import org.apache.cordova.CallbackContext;
|
|
5
|
-
import org.apache.cordova.PluginResult;
|
|
6
|
-
|
|
7
|
-
import android.app.ProgressDialog;
|
|
8
|
-
import android.content.Context;
|
|
9
|
-
import android.graphics.drawable.ColorDrawable;
|
|
10
|
-
import android.view.MotionEvent;
|
|
11
|
-
|
|
12
|
-
public class CallbackProgressDialog extends ProgressDialog {
|
|
13
|
-
|
|
14
|
-
public static CallbackContext callbackContext;
|
|
15
|
-
|
|
16
|
-
public CallbackProgressDialog(Context context) {
|
|
17
|
-
super(context);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
public static CallbackProgressDialog show(Context context,
|
|
21
|
-
boolean indeterminate,
|
|
22
|
-
boolean cancelable, OnCancelListener cancelListener,
|
|
23
|
-
CallbackContext callbackContext) {
|
|
24
|
-
CallbackProgressDialog.callbackContext = callbackContext;
|
|
25
|
-
CallbackProgressDialog dialog = new CallbackProgressDialog(context);
|
|
26
|
-
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
|
|
27
|
-
dialog.setIndeterminate(indeterminate);
|
|
28
|
-
dialog.setCancelable(cancelable);
|
|
29
|
-
dialog.setOnCancelListener(cancelListener);
|
|
30
|
-
dialog.show();
|
|
31
|
-
return dialog;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
private void sendCallback() {
|
|
35
|
-
PluginResult pluginResult = new PluginResult(PluginResult.Status.OK);
|
|
36
|
-
pluginResult.setKeepCallback(true);
|
|
37
|
-
callbackContext.sendPluginResult(pluginResult);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@Override
|
|
41
|
-
public void onBackPressed() {
|
|
42
|
-
sendCallback();
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@Override
|
|
46
|
-
public boolean onTouchEvent(MotionEvent event) {
|
|
47
|
-
if (event.getAction() == MotionEvent.ACTION_DOWN) {
|
|
48
|
-
sendCallback();
|
|
49
|
-
return true;
|
|
50
|
-
}
|
|
51
|
-
return false;
|
|
52
|
-
}
|
|
53
|
-
|
|
1
|
+
|
|
2
|
+
package com.selfservit.util;
|
|
3
|
+
|
|
4
|
+
import org.apache.cordova.CallbackContext;
|
|
5
|
+
import org.apache.cordova.PluginResult;
|
|
6
|
+
|
|
7
|
+
import android.app.ProgressDialog;
|
|
8
|
+
import android.content.Context;
|
|
9
|
+
import android.graphics.drawable.ColorDrawable;
|
|
10
|
+
import android.view.MotionEvent;
|
|
11
|
+
|
|
12
|
+
public class CallbackProgressDialog extends ProgressDialog {
|
|
13
|
+
|
|
14
|
+
public static CallbackContext callbackContext;
|
|
15
|
+
|
|
16
|
+
public CallbackProgressDialog(Context context) {
|
|
17
|
+
super(context);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
public static CallbackProgressDialog show(Context context,
|
|
21
|
+
boolean indeterminate,
|
|
22
|
+
boolean cancelable, OnCancelListener cancelListener,
|
|
23
|
+
CallbackContext callbackContext) {
|
|
24
|
+
CallbackProgressDialog.callbackContext = callbackContext;
|
|
25
|
+
CallbackProgressDialog dialog = new CallbackProgressDialog(context);
|
|
26
|
+
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
|
|
27
|
+
dialog.setIndeterminate(indeterminate);
|
|
28
|
+
dialog.setCancelable(cancelable);
|
|
29
|
+
dialog.setOnCancelListener(cancelListener);
|
|
30
|
+
dialog.show();
|
|
31
|
+
return dialog;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
private void sendCallback() {
|
|
35
|
+
PluginResult pluginResult = new PluginResult(PluginResult.Status.OK);
|
|
36
|
+
pluginResult.setKeepCallback(true);
|
|
37
|
+
callbackContext.sendPluginResult(pluginResult);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@Override
|
|
41
|
+
public void onBackPressed() {
|
|
42
|
+
sendCallback();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@Override
|
|
46
|
+
public boolean onTouchEvent(MotionEvent event) {
|
|
47
|
+
if (event.getAction() == MotionEvent.ACTION_DOWN) {
|
|
48
|
+
sendCallback();
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
54
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
package com.selfservit.util;
|
|
2
|
-
|
|
3
|
-
public class FileProvider extends android.support.v4.content.FileProvider {
|
|
4
|
-
public FileProvider() {
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
}
|
|
1
|
+
package com.selfservit.util;
|
|
2
|
+
|
|
3
|
+
public class FileProvider extends android.support.v4.content.FileProvider {
|
|
4
|
+
public FileProvider() {
|
|
5
|
+
|
|
6
|
+
}
|
|
7
|
+
}
|