@appzung/react-native-code-push 8.3.2 → 9.0.2
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/CodePush.podspec +3 -3
- package/README.md +3 -1
- package/android/app/build.gradle +2 -0
- package/android/app/src/main/AndroidManifest.xml +1 -2
- package/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java +15 -8
- package/android/build.gradle +3 -0
- package/ios/CodePush/CodePush.m +2 -1
- package/ios/CodePush/SSZipArchive/Info.plist +26 -0
- package/ios/CodePush/SSZipArchive/README.md +1 -1
- package/ios/CodePush/SSZipArchive/SSZipArchive.h +129 -27
- package/ios/CodePush/SSZipArchive/SSZipArchive.m +1119 -314
- package/ios/CodePush/SSZipArchive/SSZipCommon.h +71 -0
- package/ios/CodePush/SSZipArchive/Supporting Files/PrivacyInfo.xcprivacy +23 -0
- package/ios/CodePush/SSZipArchive/include/ZipArchive.h +25 -0
- package/ios/CodePush/SSZipArchive/minizip/LICENSE +17 -0
- package/ios/CodePush/SSZipArchive/minizip/mz.h +273 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_compat.c +1306 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_compat.h +346 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_crypt.c +187 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_crypt.h +65 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_crypt_apple.c +526 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_os.c +348 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_os.h +176 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_os_posix.c +350 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_strm.c +556 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_strm.h +132 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_strm_buf.c +383 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_strm_buf.h +42 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_strm_mem.c +269 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_strm_mem.h +48 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_strm_os.h +40 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_strm_os_posix.c +203 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_strm_pkcrypt.c +334 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_strm_pkcrypt.h +46 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_strm_split.c +429 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_strm_split.h +43 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_strm_wzaes.c +360 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_strm_wzaes.h +46 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_strm_zlib.c +389 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_strm_zlib.h +43 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_zip.c +2782 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_zip.h +262 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_zip_rw.c +1942 -0
- package/ios/CodePush/SSZipArchive/minizip/mz_zip_rw.h +285 -0
- package/ios/CodePush.xcodeproj/project.pbxproj +245 -130
- package/ios/PrivacyInfo.xcprivacy +31 -0
- package/package.json +2 -2
- package/ios/CodePush/SSZipArchive/Common.h +0 -81
- package/ios/CodePush/SSZipArchive/aes/aes.h +0 -198
- package/ios/CodePush/SSZipArchive/aes/aes_via_ace.h +0 -541
- package/ios/CodePush/SSZipArchive/aes/aescrypt.c +0 -294
- package/ios/CodePush/SSZipArchive/aes/aeskey.c +0 -548
- package/ios/CodePush/SSZipArchive/aes/aesopt.h +0 -739
- package/ios/CodePush/SSZipArchive/aes/aestab.c +0 -391
- package/ios/CodePush/SSZipArchive/aes/aestab.h +0 -173
- package/ios/CodePush/SSZipArchive/aes/brg_endian.h +0 -126
- package/ios/CodePush/SSZipArchive/aes/brg_types.h +0 -219
- package/ios/CodePush/SSZipArchive/aes/entropy.c +0 -54
- package/ios/CodePush/SSZipArchive/aes/entropy.h +0 -16
- package/ios/CodePush/SSZipArchive/aes/fileenc.c +0 -144
- package/ios/CodePush/SSZipArchive/aes/fileenc.h +0 -121
- package/ios/CodePush/SSZipArchive/aes/hmac.c +0 -145
- package/ios/CodePush/SSZipArchive/aes/hmac.h +0 -103
- package/ios/CodePush/SSZipArchive/aes/prng.c +0 -155
- package/ios/CodePush/SSZipArchive/aes/prng.h +0 -82
- package/ios/CodePush/SSZipArchive/aes/pwd2key.c +0 -103
- package/ios/CodePush/SSZipArchive/aes/pwd2key.h +0 -57
- package/ios/CodePush/SSZipArchive/aes/sha1.c +0 -258
- package/ios/CodePush/SSZipArchive/aes/sha1.h +0 -73
- package/ios/CodePush/SSZipArchive/minizip/crypt.h +0 -130
- package/ios/CodePush/SSZipArchive/minizip/ioapi.c +0 -369
- package/ios/CodePush/SSZipArchive/minizip/ioapi.h +0 -175
- package/ios/CodePush/SSZipArchive/minizip/mztools.c +0 -284
- package/ios/CodePush/SSZipArchive/minizip/mztools.h +0 -31
- package/ios/CodePush/SSZipArchive/minizip/unzip.c +0 -1839
- package/ios/CodePush/SSZipArchive/minizip/unzip.h +0 -248
- package/ios/CodePush/SSZipArchive/minizip/zip.c +0 -1910
- package/ios/CodePush/SSZipArchive/minizip/zip.h +0 -202
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
/* zip.h -- IO on .zip files using zlib
|
|
2
|
-
Version 1.1, February 14h, 2010
|
|
3
|
-
part of the MiniZip project
|
|
4
|
-
|
|
5
|
-
Copyright (C) 1998-2010 Gilles Vollant
|
|
6
|
-
http://www.winimage.com/zLibDll/minizip.html
|
|
7
|
-
Modifications for Zip64 support
|
|
8
|
-
Copyright (C) 2009-2010 Mathias Svensson
|
|
9
|
-
http://result42.com
|
|
10
|
-
|
|
11
|
-
This program is distributed under the terms of the same license as zlib.
|
|
12
|
-
See the accompanying LICENSE file for the full text of the license.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
#ifndef _ZIP_H
|
|
16
|
-
#define _ZIP_H
|
|
17
|
-
|
|
18
|
-
#define HAVE_AES
|
|
19
|
-
|
|
20
|
-
#ifdef __cplusplus
|
|
21
|
-
extern "C" {
|
|
22
|
-
#endif
|
|
23
|
-
|
|
24
|
-
#ifndef _ZLIB_H
|
|
25
|
-
# include "zlib.h"
|
|
26
|
-
#endif
|
|
27
|
-
|
|
28
|
-
#ifndef _ZLIBIOAPI_H
|
|
29
|
-
# include "ioapi.h"
|
|
30
|
-
#endif
|
|
31
|
-
|
|
32
|
-
#ifdef HAVE_BZIP2
|
|
33
|
-
# include "bzlib.h"
|
|
34
|
-
#endif
|
|
35
|
-
|
|
36
|
-
#define Z_BZIP2ED 12
|
|
37
|
-
|
|
38
|
-
#if defined(STRICTZIP) || defined(STRICTZIPUNZIP)
|
|
39
|
-
/* like the STRICT of WIN32, we define a pointer that cannot be converted
|
|
40
|
-
from (void*) without cast */
|
|
41
|
-
typedef struct TagzipFile__ { int unused; } zipFile__;
|
|
42
|
-
typedef zipFile__ *zipFile;
|
|
43
|
-
#else
|
|
44
|
-
typedef voidp zipFile;
|
|
45
|
-
#endif
|
|
46
|
-
|
|
47
|
-
#define ZIP_OK (0)
|
|
48
|
-
#define ZIP_EOF (0)
|
|
49
|
-
#define ZIP_ERRNO (Z_ERRNO)
|
|
50
|
-
#define ZIP_PARAMERROR (-102)
|
|
51
|
-
#define ZIP_BADZIPFILE (-103)
|
|
52
|
-
#define ZIP_INTERNALERROR (-104)
|
|
53
|
-
|
|
54
|
-
#ifndef DEF_MEM_LEVEL
|
|
55
|
-
# if MAX_MEM_LEVEL >= 8
|
|
56
|
-
# define DEF_MEM_LEVEL 8
|
|
57
|
-
# else
|
|
58
|
-
# define DEF_MEM_LEVEL MAX_MEM_LEVEL
|
|
59
|
-
# endif
|
|
60
|
-
#endif
|
|
61
|
-
/* default memLevel */
|
|
62
|
-
|
|
63
|
-
/* tm_zip contain date/time info */
|
|
64
|
-
typedef struct tm_zip_s
|
|
65
|
-
{
|
|
66
|
-
uInt tm_sec; /* seconds after the minute - [0,59] */
|
|
67
|
-
uInt tm_min; /* minutes after the hour - [0,59] */
|
|
68
|
-
uInt tm_hour; /* hours since midnight - [0,23] */
|
|
69
|
-
uInt tm_mday; /* day of the month - [1,31] */
|
|
70
|
-
uInt tm_mon; /* months since January - [0,11] */
|
|
71
|
-
uInt tm_year; /* years - [1980..2044] */
|
|
72
|
-
} tm_zip;
|
|
73
|
-
|
|
74
|
-
typedef struct
|
|
75
|
-
{
|
|
76
|
-
tm_zip tmz_date; /* date in understandable format */
|
|
77
|
-
uLong dosDate; /* if dos_date == 0, tmu_date is used */
|
|
78
|
-
uLong internal_fa; /* internal file attributes 2 bytes */
|
|
79
|
-
uLong external_fa; /* external file attributes 4 bytes */
|
|
80
|
-
} zip_fileinfo;
|
|
81
|
-
|
|
82
|
-
typedef const char* zipcharpc;
|
|
83
|
-
|
|
84
|
-
#define APPEND_STATUS_CREATE (0)
|
|
85
|
-
#define APPEND_STATUS_CREATEAFTER (1)
|
|
86
|
-
#define APPEND_STATUS_ADDINZIP (2)
|
|
87
|
-
|
|
88
|
-
/***************************************************************************/
|
|
89
|
-
/* Writing a zip file */
|
|
90
|
-
|
|
91
|
-
extern zipFile ZEXPORT zipOpen OF((const char *pathname, int append));
|
|
92
|
-
extern zipFile ZEXPORT zipOpen64 OF((const void *pathname, int append));
|
|
93
|
-
/* Create a zipfile.
|
|
94
|
-
|
|
95
|
-
pathname should contain the full pathname (by example, on a Windows XP computer
|
|
96
|
-
"c:\\zlib\\zlib113.zip" or on an Unix computer "zlib/zlib113.zip".
|
|
97
|
-
|
|
98
|
-
return NULL if zipfile cannot be opened
|
|
99
|
-
return zipFile handle if no error
|
|
100
|
-
|
|
101
|
-
If the file pathname exist and append == APPEND_STATUS_CREATEAFTER, the zip
|
|
102
|
-
will be created at the end of the file. (useful if the file contain a self extractor code)
|
|
103
|
-
If the file pathname exist and append == APPEND_STATUS_ADDINZIP, we will add files in existing
|
|
104
|
-
zip (be sure you don't add file that doesn't exist)
|
|
105
|
-
|
|
106
|
-
NOTE: There is no delete function into a zipfile. If you want delete file into a zipfile,
|
|
107
|
-
you must open a zipfile, and create another. Of course, you can use RAW reading and writing to copy
|
|
108
|
-
the file you did not want delete. */
|
|
109
|
-
|
|
110
|
-
extern zipFile ZEXPORT zipOpen2 OF((const char *pathname, int append, zipcharpc* globalcomment,
|
|
111
|
-
zlib_filefunc_def* pzlib_filefunc_def));
|
|
112
|
-
|
|
113
|
-
extern zipFile ZEXPORT zipOpen2_64 OF((const void *pathname, int append, zipcharpc* globalcomment,
|
|
114
|
-
zlib_filefunc64_def* pzlib_filefunc_def));
|
|
115
|
-
|
|
116
|
-
extern zipFile ZEXPORT zipOpen3 OF((const char *pathname, int append, ZPOS64_T disk_size,
|
|
117
|
-
zipcharpc* globalcomment, zlib_filefunc_def* pzlib_filefunc_def));
|
|
118
|
-
/* Same as zipOpen2 but allows specification of spanned zip size */
|
|
119
|
-
|
|
120
|
-
extern zipFile ZEXPORT zipOpen3_64 OF((const void *pathname, int append, ZPOS64_T disk_size,
|
|
121
|
-
zipcharpc* globalcomment, zlib_filefunc64_def* pzlib_filefunc_def));
|
|
122
|
-
|
|
123
|
-
extern int ZEXPORT zipOpenNewFileInZip OF((zipFile file, const char* filename, const zip_fileinfo* zipfi,
|
|
124
|
-
const void* extrafield_local, uInt size_extrafield_local, const void* extrafield_global,
|
|
125
|
-
uInt size_extrafield_global, const char* comment, int method, int level));
|
|
126
|
-
/* Open a file in the ZIP for writing.
|
|
127
|
-
|
|
128
|
-
filename : the filename in zip (if NULL, '-' without quote will be used
|
|
129
|
-
*zipfi contain supplemental information
|
|
130
|
-
extrafield_local buffer to store the local header extra field data, can be NULL
|
|
131
|
-
size_extrafield_local size of extrafield_local buffer
|
|
132
|
-
extrafield_global buffer to store the global header extra field data, can be NULL
|
|
133
|
-
size_extrafield_global size of extrafield_local buffer
|
|
134
|
-
comment buffer for comment string
|
|
135
|
-
method contain the compression method (0 for store, Z_DEFLATED for deflate)
|
|
136
|
-
level contain the level of compression (can be Z_DEFAULT_COMPRESSION)
|
|
137
|
-
zip64 is set to 1 if a zip64 extended information block should be added to the local file header.
|
|
138
|
-
this MUST be '1' if the uncompressed size is >= 0xffffffff. */
|
|
139
|
-
|
|
140
|
-
extern int ZEXPORT zipOpenNewFileInZip64 OF((zipFile file, const char* filename, const zip_fileinfo* zipfi,
|
|
141
|
-
const void* extrafield_local, uInt size_extrafield_local, const void* extrafield_global,
|
|
142
|
-
uInt size_extrafield_global, const char* comment, int method, int level, int zip64));
|
|
143
|
-
/* Same as zipOpenNewFileInZip with zip64 support */
|
|
144
|
-
|
|
145
|
-
extern int ZEXPORT zipOpenNewFileInZip2 OF((zipFile file, const char* filename, const zip_fileinfo* zipfi,
|
|
146
|
-
const void* extrafield_local, uInt size_extrafield_local, const void* extrafield_global,
|
|
147
|
-
uInt size_extrafield_global, const char* comment, int method, int level, int raw));
|
|
148
|
-
/* Same as zipOpenNewFileInZip, except if raw=1, we write raw file */
|
|
149
|
-
|
|
150
|
-
extern int ZEXPORT zipOpenNewFileInZip2_64 OF((zipFile file, const char* filename, const zip_fileinfo* zipfi,
|
|
151
|
-
const void* extrafield_local, uInt size_extrafield_local, const void* extrafield_global,
|
|
152
|
-
uInt size_extrafield_global, const char* comment, int method, int level, int raw, int zip64));
|
|
153
|
-
/* Same as zipOpenNewFileInZip3 with zip64 support */
|
|
154
|
-
|
|
155
|
-
extern int ZEXPORT zipOpenNewFileInZip3 OF((zipFile file, const char* filename, const zip_fileinfo* zipfi,
|
|
156
|
-
const void* extrafield_local, uInt size_extrafield_local, const void* extrafield_global,
|
|
157
|
-
uInt size_extrafield_global, const char* comment, int method, int level, int raw, int windowBits, int memLevel,
|
|
158
|
-
int strategy, const char* password, uLong crcForCrypting));
|
|
159
|
-
/* Same as zipOpenNewFileInZip2, except
|
|
160
|
-
windowBits, memLevel, strategy : see parameter strategy in deflateInit2
|
|
161
|
-
password : crypting password (NULL for no crypting)
|
|
162
|
-
crcForCrypting : crc of file to compress (needed for crypting) */
|
|
163
|
-
|
|
164
|
-
extern int ZEXPORT zipOpenNewFileInZip3_64 OF((zipFile file, const char* filename, const zip_fileinfo* zipfi,
|
|
165
|
-
const void* extrafield_local, uInt size_extrafield_local, const void* extrafield_global,
|
|
166
|
-
uInt size_extrafield_global, const char* comment, int method, int level, int raw, int windowBits, int memLevel,
|
|
167
|
-
int strategy, const char* password, uLong crcForCrypting, int zip64));
|
|
168
|
-
/* Same as zipOpenNewFileInZip3 with zip64 support */
|
|
169
|
-
|
|
170
|
-
extern int ZEXPORT zipOpenNewFileInZip4 OF((zipFile file, const char* filename, const zip_fileinfo* zipfi,
|
|
171
|
-
const void* extrafield_local, uInt size_extrafield_local, const void* extrafield_global,
|
|
172
|
-
uInt size_extrafield_global, const char* comment, int method, int level, int raw, int windowBits, int memLevel,
|
|
173
|
-
int strategy, const char* password, uLong crcForCrypting, uLong versionMadeBy, uLong flagBase));
|
|
174
|
-
/* Same as zipOpenNewFileInZip3 except versionMadeBy & flag fields */
|
|
175
|
-
|
|
176
|
-
extern int ZEXPORT zipOpenNewFileInZip4_64 OF((zipFile file, const char* filename, const zip_fileinfo* zipfi,
|
|
177
|
-
const void* extrafield_local, uInt size_extrafield_local, const void* extrafield_global,
|
|
178
|
-
uInt size_extrafield_global, const char* comment, int method, int level, int raw, int windowBits, int memLevel,
|
|
179
|
-
int strategy, const char* password, uLong crcForCrypting, uLong versionMadeBy, uLong flagBase, int zip64));
|
|
180
|
-
/* Same as zipOpenNewFileInZip4 with zip64 support */
|
|
181
|
-
|
|
182
|
-
extern int ZEXPORT zipWriteInFileInZip OF((zipFile file, const void* buf, unsigned len));
|
|
183
|
-
/* Write data in the zipfile */
|
|
184
|
-
|
|
185
|
-
extern int ZEXPORT zipCloseFileInZip OF((zipFile file));
|
|
186
|
-
/* Close the current file in the zipfile */
|
|
187
|
-
|
|
188
|
-
extern int ZEXPORT zipCloseFileInZipRaw OF((zipFile file, uLong uncompressed_size, uLong crc32));
|
|
189
|
-
extern int ZEXPORT zipCloseFileInZipRaw64 OF((zipFile file, ZPOS64_T uncompressed_size, uLong crc32));
|
|
190
|
-
/* Close the current file in the zipfile, for file opened with parameter raw=1 in zipOpenNewFileInZip2
|
|
191
|
-
uncompressed_size and crc32 are value for the uncompressed size */
|
|
192
|
-
|
|
193
|
-
extern int ZEXPORT zipClose OF((zipFile file, const char* global_comment));
|
|
194
|
-
/* Close the zipfile */
|
|
195
|
-
|
|
196
|
-
/***************************************************************************/
|
|
197
|
-
|
|
198
|
-
#ifdef __cplusplus
|
|
199
|
-
}
|
|
200
|
-
#endif
|
|
201
|
-
|
|
202
|
-
#endif /* _ZIP_H */
|