cordova-plugin-mserviceinterface-2.0 1.0.26 → 1.0.30

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.
Files changed (59) hide show
  1. package/package.json +28 -28
  2. package/plugin.xml +154 -153
  3. package/src/android/CallbackProgressDialog.java +53 -53
  4. package/src/android/FileProvider.java +7 -7
  5. package/src/android/backgroundNotification.java +120 -120
  6. package/src/android/doubleogradle.gradle +5 -5
  7. package/src/android/mInterface.java +2206 -2087
  8. package/src/android/mInterfaceReceiver.java +59 -59
  9. package/src/android/mInterfaceService.java +752 -749
  10. package/src/android/mInterfaceUtil.java +1686 -1686
  11. package/src/android/res/xml/network_security_config.xml +8 -8
  12. package/src/android/res/xml/opener_paths.xml +16 -16
  13. package/src/ios/InternetConnection.h +64 -64
  14. package/src/ios/InternetConnection.m +242 -242
  15. package/src/ios/SSZipArchive.h +146 -146
  16. package/src/ios/SSZipArchive.m +1180 -1180
  17. package/src/ios/SSZipCommon.h +66 -66
  18. package/src/ios/UICKeyChainStore.h +64 -64
  19. package/src/ios/UICKeyChainStore.m +434 -434
  20. package/src/ios/XMLConverter.h +61 -61
  21. package/src/ios/XMLConverter.m +243 -243
  22. package/src/ios/ZipArchive.h +19 -19
  23. package/src/ios/aes/aes.h +270 -270
  24. package/src/ios/aes/aes_ni.c +687 -687
  25. package/src/ios/aes/aes_ni.h +59 -59
  26. package/src/ios/aes/aescrypt.c +301 -301
  27. package/src/ios/aes/aeskey.c +554 -554
  28. package/src/ios/aes/aesopt.h +776 -776
  29. package/src/ios/aes/aestab.c +418 -418
  30. package/src/ios/aes/aestab.h +173 -173
  31. package/src/ios/aes/brg_endian.h +127 -127
  32. package/src/ios/aes/brg_types.h +191 -191
  33. package/src/ios/aes/fileenc.c +145 -145
  34. package/src/ios/aes/fileenc.h +121 -121
  35. package/src/ios/aes/hmac.c +209 -209
  36. package/src/ios/aes/hmac.h +119 -119
  37. package/src/ios/aes/prng.c +155 -155
  38. package/src/ios/aes/prng.h +82 -82
  39. package/src/ios/aes/pwd2key.c +181 -181
  40. package/src/ios/aes/pwd2key.h +45 -45
  41. package/src/ios/aes/sha1.c +283 -283
  42. package/src/ios/aes/sha1.h +72 -72
  43. package/src/ios/mInterface.h +1 -0
  44. package/src/ios/mInterface.m +15 -3
  45. package/src/ios/minizip/crypt.c +146 -146
  46. package/src/ios/minizip/crypt.h +66 -66
  47. package/src/ios/minizip/ioapi.c +353 -353
  48. package/src/ios/minizip/ioapi.h +154 -154
  49. package/src/ios/minizip/ioapi_buf.c +452 -452
  50. package/src/ios/minizip/ioapi_buf.h +52 -52
  51. package/src/ios/minizip/ioapi_mem.c +167 -167
  52. package/src/ios/minizip/ioapi_mem.h +52 -52
  53. package/src/ios/minizip/minishared.c +292 -292
  54. package/src/ios/minizip/minishared.h +50 -50
  55. package/src/ios/minizip/unzip.c +2007 -2007
  56. package/src/ios/minizip/unzip.h +254 -254
  57. package/src/ios/minizip/zip.c +2007 -2007
  58. package/src/ios/minizip/zip.h +215 -215
  59. package/www/mInterface.js +3 -3
@@ -1,154 +1,154 @@
1
- /* ioapi.h -- IO base function header for compress/uncompress .zip
2
- part of the MiniZip project
3
-
4
- Copyright (C) 2012-2017 Nathan Moinvaziri
5
- https://github.com/nmoinvaz/minizip
6
- Copyright (C) 2009-2010 Mathias Svensson
7
- Modifications for Zip64 support
8
- http://result42.com
9
- Copyright (C) 1998-2010 Gilles Vollant
10
- http://www.winimage.com/zLibDll/minizip.html
11
-
12
- This program is distributed under the terms of the same license as zlib.
13
- See the accompanying LICENSE file for the full text of the license.
14
- */
15
-
16
- #ifndef _ZLIBIOAPI64_H
17
- #define _ZLIBIOAPI64_H
18
-
19
- #include <stdio.h>
20
- #include <stdlib.h>
21
- #include <stdint.h>
22
-
23
- #include "zlib.h"
24
-
25
- #ifdef __GNUC__
26
- # define ZIP_UNUSED __attribute__((__unused__))
27
- #else
28
- # define ZIP_UNUSED
29
- #endif
30
-
31
- #if defined(USE_FILE32API)
32
- # define fopen64 fopen
33
- # define ftello64 ftell
34
- # define fseeko64 fseek
35
- #else
36
- # if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__ANDROID__)
37
- # define fopen64 fopen
38
- # define ftello64 ftello
39
- # define fseeko64 fseeko
40
- # endif
41
- # ifdef _MSC_VER
42
- # define fopen64 fopen
43
- # if (_MSC_VER >= 1400) && (!(defined(NO_MSCVER_FILE64_FUNC)))
44
- # define ftello64 _ftelli64
45
- # define fseeko64 _fseeki64
46
- # else /* old MSC */
47
- # define ftello64 ftell
48
- # define fseeko64 fseek
49
- # endif
50
- # endif
51
- #endif
52
-
53
- #ifdef __cplusplus
54
- extern "C" {
55
- #endif
56
-
57
- #define ZLIB_FILEFUNC_SEEK_CUR (1)
58
- #define ZLIB_FILEFUNC_SEEK_END (2)
59
- #define ZLIB_FILEFUNC_SEEK_SET (0)
60
-
61
- #define ZLIB_FILEFUNC_MODE_READ (1)
62
- #define ZLIB_FILEFUNC_MODE_WRITE (2)
63
- #define ZLIB_FILEFUNC_MODE_READWRITEFILTER (3)
64
- #define ZLIB_FILEFUNC_MODE_EXISTING (4)
65
- #define ZLIB_FILEFUNC_MODE_CREATE (8)
66
-
67
- #ifndef ZCALLBACK
68
- # if (defined(WIN32) || defined(_WIN32) || defined (WINDOWS) || \
69
- defined (_WINDOWS)) && defined(CALLBACK) && defined (USEWINDOWS_CALLBACK)
70
- # define ZCALLBACK CALLBACK
71
- # else
72
- # define ZCALLBACK
73
- # endif
74
- #endif
75
-
76
- typedef voidpf (ZCALLBACK *open_file_func) (voidpf opaque, const char *filename, int mode);
77
- typedef voidpf (ZCALLBACK *opendisk_file_func) (voidpf opaque, voidpf stream, uint32_t number_disk, int mode);
78
- typedef uint32_t (ZCALLBACK *read_file_func) (voidpf opaque, voidpf stream, void* buf, uint32_t size);
79
- typedef uint32_t (ZCALLBACK *write_file_func) (voidpf opaque, voidpf stream, const void *buf, uint32_t size);
80
- typedef int (ZCALLBACK *close_file_func) (voidpf opaque, voidpf stream);
81
- typedef int (ZCALLBACK *error_file_func) (voidpf opaque, voidpf stream);
82
-
83
- typedef long (ZCALLBACK *tell_file_func) (voidpf opaque, voidpf stream);
84
- typedef long (ZCALLBACK *seek_file_func) (voidpf opaque, voidpf stream, uint32_t offset, int origin);
85
-
86
- /* here is the "old" 32 bits structure structure */
87
- typedef struct zlib_filefunc_def_s
88
- {
89
- open_file_func zopen_file;
90
- opendisk_file_func zopendisk_file;
91
- read_file_func zread_file;
92
- write_file_func zwrite_file;
93
- tell_file_func ztell_file;
94
- seek_file_func zseek_file;
95
- close_file_func zclose_file;
96
- error_file_func zerror_file;
97
- voidpf opaque;
98
- } zlib_filefunc_def;
99
-
100
- typedef uint64_t (ZCALLBACK *tell64_file_func) (voidpf opaque, voidpf stream);
101
- typedef long (ZCALLBACK *seek64_file_func) (voidpf opaque, voidpf stream, uint64_t offset, int origin);
102
- typedef voidpf (ZCALLBACK *open64_file_func) (voidpf opaque, const void *filename, int mode);
103
- typedef voidpf (ZCALLBACK *opendisk64_file_func)(voidpf opaque, voidpf stream, uint32_t number_disk, int mode);
104
-
105
- typedef struct zlib_filefunc64_def_s
106
- {
107
- open64_file_func zopen64_file;
108
- opendisk64_file_func zopendisk64_file;
109
- read_file_func zread_file;
110
- write_file_func zwrite_file;
111
- tell64_file_func ztell64_file;
112
- seek64_file_func zseek64_file;
113
- close_file_func zclose_file;
114
- error_file_func zerror_file;
115
- voidpf opaque;
116
- } zlib_filefunc64_def;
117
-
118
- void fill_fopen_filefunc(zlib_filefunc_def *pzlib_filefunc_def);
119
- void fill_fopen64_filefunc(zlib_filefunc64_def *pzlib_filefunc_def);
120
-
121
- /* now internal definition, only for zip.c and unzip.h */
122
- typedef struct zlib_filefunc64_32_def_s
123
- {
124
- zlib_filefunc64_def zfile_func64;
125
- open_file_func zopen32_file;
126
- opendisk_file_func zopendisk32_file;
127
- tell_file_func ztell32_file;
128
- seek_file_func zseek32_file;
129
- } zlib_filefunc64_32_def;
130
-
131
- #define ZREAD64(filefunc,filestream,buf,size) ((*((filefunc).zfile_func64.zread_file)) ((filefunc).zfile_func64.opaque,filestream,buf,size))
132
- #define ZWRITE64(filefunc,filestream,buf,size) ((*((filefunc).zfile_func64.zwrite_file)) ((filefunc).zfile_func64.opaque,filestream,buf,size))
133
- /*#define ZTELL64(filefunc,filestream) ((*((filefunc).ztell64_file)) ((filefunc).opaque,filestream))*/
134
- /*#define ZSEEK64(filefunc,filestream,pos,mode) ((*((filefunc).zseek64_file)) ((filefunc).opaque,filestream,pos,mode))*/
135
- #define ZCLOSE64(filefunc,filestream) ((*((filefunc).zfile_func64.zclose_file)) ((filefunc).zfile_func64.opaque,filestream))
136
- #define ZERROR64(filefunc,filestream) ((*((filefunc).zfile_func64.zerror_file)) ((filefunc).zfile_func64.opaque,filestream))
137
-
138
- voidpf call_zopen64(const zlib_filefunc64_32_def *pfilefunc,const void*filename, int mode);
139
- voidpf call_zopendisk64(const zlib_filefunc64_32_def *pfilefunc, voidpf filestream, uint32_t number_disk, int mode);
140
- long call_zseek64(const zlib_filefunc64_32_def *pfilefunc, voidpf filestream, uint64_t offset, int origin);
141
- uint64_t call_ztell64(const zlib_filefunc64_32_def *pfilefunc, voidpf filestream);
142
-
143
- void fill_zlib_filefunc64_32_def_from_filefunc32(zlib_filefunc64_32_def *p_filefunc64_32, const zlib_filefunc_def *p_filefunc32);
144
-
145
- #define ZOPEN64(filefunc,filename,mode) (call_zopen64((&(filefunc)),(filename),(mode)))
146
- #define ZOPENDISK64(filefunc,filestream,diskn,mode) (call_zopendisk64((&(filefunc)),(filestream),(diskn),(mode)))
147
- #define ZTELL64(filefunc,filestream) (call_ztell64((&(filefunc)),(filestream)))
148
- #define ZSEEK64(filefunc,filestream,pos,mode) (call_zseek64((&(filefunc)),(filestream),(pos),(mode)))
149
-
150
- #ifdef __cplusplus
151
- }
152
- #endif
153
-
154
- #endif
1
+ /* ioapi.h -- IO base function header for compress/uncompress .zip
2
+ part of the MiniZip project
3
+
4
+ Copyright (C) 2012-2017 Nathan Moinvaziri
5
+ https://github.com/nmoinvaz/minizip
6
+ Copyright (C) 2009-2010 Mathias Svensson
7
+ Modifications for Zip64 support
8
+ http://result42.com
9
+ Copyright (C) 1998-2010 Gilles Vollant
10
+ http://www.winimage.com/zLibDll/minizip.html
11
+
12
+ This program is distributed under the terms of the same license as zlib.
13
+ See the accompanying LICENSE file for the full text of the license.
14
+ */
15
+
16
+ #ifndef _ZLIBIOAPI64_H
17
+ #define _ZLIBIOAPI64_H
18
+
19
+ #include <stdio.h>
20
+ #include <stdlib.h>
21
+ #include <stdint.h>
22
+
23
+ #include "zlib.h"
24
+
25
+ #ifdef __GNUC__
26
+ # define ZIP_UNUSED __attribute__((__unused__))
27
+ #else
28
+ # define ZIP_UNUSED
29
+ #endif
30
+
31
+ #if defined(USE_FILE32API)
32
+ # define fopen64 fopen
33
+ # define ftello64 ftell
34
+ # define fseeko64 fseek
35
+ #else
36
+ # if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__ANDROID__)
37
+ # define fopen64 fopen
38
+ # define ftello64 ftello
39
+ # define fseeko64 fseeko
40
+ # endif
41
+ # ifdef _MSC_VER
42
+ # define fopen64 fopen
43
+ # if (_MSC_VER >= 1400) && (!(defined(NO_MSCVER_FILE64_FUNC)))
44
+ # define ftello64 _ftelli64
45
+ # define fseeko64 _fseeki64
46
+ # else /* old MSC */
47
+ # define ftello64 ftell
48
+ # define fseeko64 fseek
49
+ # endif
50
+ # endif
51
+ #endif
52
+
53
+ #ifdef __cplusplus
54
+ extern "C" {
55
+ #endif
56
+
57
+ #define ZLIB_FILEFUNC_SEEK_CUR (1)
58
+ #define ZLIB_FILEFUNC_SEEK_END (2)
59
+ #define ZLIB_FILEFUNC_SEEK_SET (0)
60
+
61
+ #define ZLIB_FILEFUNC_MODE_READ (1)
62
+ #define ZLIB_FILEFUNC_MODE_WRITE (2)
63
+ #define ZLIB_FILEFUNC_MODE_READWRITEFILTER (3)
64
+ #define ZLIB_FILEFUNC_MODE_EXISTING (4)
65
+ #define ZLIB_FILEFUNC_MODE_CREATE (8)
66
+
67
+ #ifndef ZCALLBACK
68
+ # if (defined(WIN32) || defined(_WIN32) || defined (WINDOWS) || \
69
+ defined (_WINDOWS)) && defined(CALLBACK) && defined (USEWINDOWS_CALLBACK)
70
+ # define ZCALLBACK CALLBACK
71
+ # else
72
+ # define ZCALLBACK
73
+ # endif
74
+ #endif
75
+
76
+ typedef voidpf (ZCALLBACK *open_file_func) (voidpf opaque, const char *filename, int mode);
77
+ typedef voidpf (ZCALLBACK *opendisk_file_func) (voidpf opaque, voidpf stream, uint32_t number_disk, int mode);
78
+ typedef uint32_t (ZCALLBACK *read_file_func) (voidpf opaque, voidpf stream, void* buf, uint32_t size);
79
+ typedef uint32_t (ZCALLBACK *write_file_func) (voidpf opaque, voidpf stream, const void *buf, uint32_t size);
80
+ typedef int (ZCALLBACK *close_file_func) (voidpf opaque, voidpf stream);
81
+ typedef int (ZCALLBACK *error_file_func) (voidpf opaque, voidpf stream);
82
+
83
+ typedef long (ZCALLBACK *tell_file_func) (voidpf opaque, voidpf stream);
84
+ typedef long (ZCALLBACK *seek_file_func) (voidpf opaque, voidpf stream, uint32_t offset, int origin);
85
+
86
+ /* here is the "old" 32 bits structure structure */
87
+ typedef struct zlib_filefunc_def_s
88
+ {
89
+ open_file_func zopen_file;
90
+ opendisk_file_func zopendisk_file;
91
+ read_file_func zread_file;
92
+ write_file_func zwrite_file;
93
+ tell_file_func ztell_file;
94
+ seek_file_func zseek_file;
95
+ close_file_func zclose_file;
96
+ error_file_func zerror_file;
97
+ voidpf opaque;
98
+ } zlib_filefunc_def;
99
+
100
+ typedef uint64_t (ZCALLBACK *tell64_file_func) (voidpf opaque, voidpf stream);
101
+ typedef long (ZCALLBACK *seek64_file_func) (voidpf opaque, voidpf stream, uint64_t offset, int origin);
102
+ typedef voidpf (ZCALLBACK *open64_file_func) (voidpf opaque, const void *filename, int mode);
103
+ typedef voidpf (ZCALLBACK *opendisk64_file_func)(voidpf opaque, voidpf stream, uint32_t number_disk, int mode);
104
+
105
+ typedef struct zlib_filefunc64_def_s
106
+ {
107
+ open64_file_func zopen64_file;
108
+ opendisk64_file_func zopendisk64_file;
109
+ read_file_func zread_file;
110
+ write_file_func zwrite_file;
111
+ tell64_file_func ztell64_file;
112
+ seek64_file_func zseek64_file;
113
+ close_file_func zclose_file;
114
+ error_file_func zerror_file;
115
+ voidpf opaque;
116
+ } zlib_filefunc64_def;
117
+
118
+ void fill_fopen_filefunc(zlib_filefunc_def *pzlib_filefunc_def);
119
+ void fill_fopen64_filefunc(zlib_filefunc64_def *pzlib_filefunc_def);
120
+
121
+ /* now internal definition, only for zip.c and unzip.h */
122
+ typedef struct zlib_filefunc64_32_def_s
123
+ {
124
+ zlib_filefunc64_def zfile_func64;
125
+ open_file_func zopen32_file;
126
+ opendisk_file_func zopendisk32_file;
127
+ tell_file_func ztell32_file;
128
+ seek_file_func zseek32_file;
129
+ } zlib_filefunc64_32_def;
130
+
131
+ #define ZREAD64(filefunc,filestream,buf,size) ((*((filefunc).zfile_func64.zread_file)) ((filefunc).zfile_func64.opaque,filestream,buf,size))
132
+ #define ZWRITE64(filefunc,filestream,buf,size) ((*((filefunc).zfile_func64.zwrite_file)) ((filefunc).zfile_func64.opaque,filestream,buf,size))
133
+ /*#define ZTELL64(filefunc,filestream) ((*((filefunc).ztell64_file)) ((filefunc).opaque,filestream))*/
134
+ /*#define ZSEEK64(filefunc,filestream,pos,mode) ((*((filefunc).zseek64_file)) ((filefunc).opaque,filestream,pos,mode))*/
135
+ #define ZCLOSE64(filefunc,filestream) ((*((filefunc).zfile_func64.zclose_file)) ((filefunc).zfile_func64.opaque,filestream))
136
+ #define ZERROR64(filefunc,filestream) ((*((filefunc).zfile_func64.zerror_file)) ((filefunc).zfile_func64.opaque,filestream))
137
+
138
+ voidpf call_zopen64(const zlib_filefunc64_32_def *pfilefunc,const void*filename, int mode);
139
+ voidpf call_zopendisk64(const zlib_filefunc64_32_def *pfilefunc, voidpf filestream, uint32_t number_disk, int mode);
140
+ long call_zseek64(const zlib_filefunc64_32_def *pfilefunc, voidpf filestream, uint64_t offset, int origin);
141
+ uint64_t call_ztell64(const zlib_filefunc64_32_def *pfilefunc, voidpf filestream);
142
+
143
+ void fill_zlib_filefunc64_32_def_from_filefunc32(zlib_filefunc64_32_def *p_filefunc64_32, const zlib_filefunc_def *p_filefunc32);
144
+
145
+ #define ZOPEN64(filefunc,filename,mode) (call_zopen64((&(filefunc)),(filename),(mode)))
146
+ #define ZOPENDISK64(filefunc,filestream,diskn,mode) (call_zopendisk64((&(filefunc)),(filestream),(diskn),(mode)))
147
+ #define ZTELL64(filefunc,filestream) (call_ztell64((&(filefunc)),(filestream)))
148
+ #define ZSEEK64(filefunc,filestream,pos,mode) (call_zseek64((&(filefunc)),(filestream),(pos),(mode)))
149
+
150
+ #ifdef __cplusplus
151
+ }
152
+ #endif
153
+
154
+ #endif