@appzung/react-native-code-push 7.1.1 → 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.
Files changed (97) hide show
  1. package/.azurepipelines/build-rn-code-push-1es.yml +104 -0
  2. package/.azurepipelines/test-rn-code-push.yml +94 -0
  3. package/.config/CredScanSuppressions.json +14 -0
  4. package/CONTRIBUTING.md +3 -3
  5. package/CodePush.js +20 -21
  6. package/CodePush.podspec +3 -3
  7. package/README.md +7 -5
  8. package/android/app/build.gradle +3 -1
  9. package/android/app/src/main/AndroidManifest.xml +2 -7
  10. package/android/app/src/main/java/com/microsoft/codepush/react/CodePush.java +14 -5
  11. package/android/app/src/main/java/com/microsoft/codepush/react/CodePushConstants.java +1 -0
  12. package/android/app/src/main/java/com/microsoft/codepush/react/CodePushNativeModule.java +9 -1
  13. package/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java +18 -10
  14. package/android/app/src/main/java/com/microsoft/codepush/react/CodePushUtils.java +3 -1
  15. package/android/build.gradle +6 -2
  16. package/android/codepush.gradle +72 -26
  17. package/docs/api-js.md +1 -1
  18. package/docs/setup-android.md +27 -3
  19. package/docs/setup-ios.md +1 -1
  20. package/docs/setup-windows.md +23 -0
  21. package/ios/CodePush/CodePush.m +2 -1
  22. package/ios/CodePush/CodePushPackage.m +4 -0
  23. package/ios/CodePush/SSZipArchive/Info.plist +26 -0
  24. package/ios/CodePush/SSZipArchive/README.md +1 -1
  25. package/ios/CodePush/SSZipArchive/SSZipArchive.h +129 -27
  26. package/ios/CodePush/SSZipArchive/SSZipArchive.m +1119 -314
  27. package/ios/CodePush/SSZipArchive/SSZipCommon.h +71 -0
  28. package/ios/CodePush/SSZipArchive/Supporting Files/PrivacyInfo.xcprivacy +23 -0
  29. package/ios/CodePush/SSZipArchive/include/ZipArchive.h +25 -0
  30. package/ios/CodePush/SSZipArchive/minizip/LICENSE +17 -0
  31. package/ios/CodePush/SSZipArchive/minizip/mz.h +273 -0
  32. package/ios/CodePush/SSZipArchive/minizip/mz_compat.c +1306 -0
  33. package/ios/CodePush/SSZipArchive/minizip/mz_compat.h +346 -0
  34. package/ios/CodePush/SSZipArchive/minizip/mz_crypt.c +187 -0
  35. package/ios/CodePush/SSZipArchive/minizip/mz_crypt.h +65 -0
  36. package/ios/CodePush/SSZipArchive/minizip/mz_crypt_apple.c +526 -0
  37. package/ios/CodePush/SSZipArchive/minizip/mz_os.c +348 -0
  38. package/ios/CodePush/SSZipArchive/minizip/mz_os.h +176 -0
  39. package/ios/CodePush/SSZipArchive/minizip/mz_os_posix.c +350 -0
  40. package/ios/CodePush/SSZipArchive/minizip/mz_strm.c +556 -0
  41. package/ios/CodePush/SSZipArchive/minizip/mz_strm.h +132 -0
  42. package/ios/CodePush/SSZipArchive/minizip/mz_strm_buf.c +383 -0
  43. package/ios/CodePush/SSZipArchive/minizip/mz_strm_buf.h +42 -0
  44. package/ios/CodePush/SSZipArchive/minizip/mz_strm_mem.c +269 -0
  45. package/ios/CodePush/SSZipArchive/minizip/mz_strm_mem.h +48 -0
  46. package/ios/CodePush/SSZipArchive/minizip/mz_strm_os.h +40 -0
  47. package/ios/CodePush/SSZipArchive/minizip/mz_strm_os_posix.c +203 -0
  48. package/ios/CodePush/SSZipArchive/minizip/mz_strm_pkcrypt.c +334 -0
  49. package/ios/CodePush/SSZipArchive/minizip/mz_strm_pkcrypt.h +46 -0
  50. package/ios/CodePush/SSZipArchive/minizip/mz_strm_split.c +429 -0
  51. package/ios/CodePush/SSZipArchive/minizip/mz_strm_split.h +43 -0
  52. package/ios/CodePush/SSZipArchive/minizip/mz_strm_wzaes.c +360 -0
  53. package/ios/CodePush/SSZipArchive/minizip/mz_strm_wzaes.h +46 -0
  54. package/ios/CodePush/SSZipArchive/minizip/mz_strm_zlib.c +389 -0
  55. package/ios/CodePush/SSZipArchive/minizip/mz_strm_zlib.h +43 -0
  56. package/ios/CodePush/SSZipArchive/minizip/mz_zip.c +2782 -0
  57. package/ios/CodePush/SSZipArchive/minizip/mz_zip.h +262 -0
  58. package/ios/CodePush/SSZipArchive/minizip/mz_zip_rw.c +1942 -0
  59. package/ios/CodePush/SSZipArchive/minizip/mz_zip_rw.h +285 -0
  60. package/ios/CodePush.xcodeproj/project.pbxproj +245 -130
  61. package/ios/PrivacyInfo.xcprivacy +31 -0
  62. package/package.json +2 -2
  63. package/typings/react-native-code-push.d.ts +1 -1
  64. package/windows/CodePush/CodePush.vcxproj +2 -3
  65. package/windows-legacy/CodePush.Net46/CodePush.Net46.csproj +2 -2
  66. package/windows-legacy/CodePush.Net46.Test/CodePush.Net46.Test.csproj +2 -2
  67. package/ios/CodePush/SSZipArchive/Common.h +0 -81
  68. package/ios/CodePush/SSZipArchive/aes/aes.h +0 -198
  69. package/ios/CodePush/SSZipArchive/aes/aes_via_ace.h +0 -541
  70. package/ios/CodePush/SSZipArchive/aes/aescrypt.c +0 -294
  71. package/ios/CodePush/SSZipArchive/aes/aeskey.c +0 -548
  72. package/ios/CodePush/SSZipArchive/aes/aesopt.h +0 -739
  73. package/ios/CodePush/SSZipArchive/aes/aestab.c +0 -391
  74. package/ios/CodePush/SSZipArchive/aes/aestab.h +0 -173
  75. package/ios/CodePush/SSZipArchive/aes/brg_endian.h +0 -126
  76. package/ios/CodePush/SSZipArchive/aes/brg_types.h +0 -219
  77. package/ios/CodePush/SSZipArchive/aes/entropy.c +0 -54
  78. package/ios/CodePush/SSZipArchive/aes/entropy.h +0 -16
  79. package/ios/CodePush/SSZipArchive/aes/fileenc.c +0 -144
  80. package/ios/CodePush/SSZipArchive/aes/fileenc.h +0 -121
  81. package/ios/CodePush/SSZipArchive/aes/hmac.c +0 -145
  82. package/ios/CodePush/SSZipArchive/aes/hmac.h +0 -103
  83. package/ios/CodePush/SSZipArchive/aes/prng.c +0 -155
  84. package/ios/CodePush/SSZipArchive/aes/prng.h +0 -82
  85. package/ios/CodePush/SSZipArchive/aes/pwd2key.c +0 -103
  86. package/ios/CodePush/SSZipArchive/aes/pwd2key.h +0 -57
  87. package/ios/CodePush/SSZipArchive/aes/sha1.c +0 -258
  88. package/ios/CodePush/SSZipArchive/aes/sha1.h +0 -73
  89. package/ios/CodePush/SSZipArchive/minizip/crypt.h +0 -130
  90. package/ios/CodePush/SSZipArchive/minizip/ioapi.c +0 -369
  91. package/ios/CodePush/SSZipArchive/minizip/ioapi.h +0 -175
  92. package/ios/CodePush/SSZipArchive/minizip/mztools.c +0 -284
  93. package/ios/CodePush/SSZipArchive/minizip/mztools.h +0 -31
  94. package/ios/CodePush/SSZipArchive/minizip/unzip.c +0 -1839
  95. package/ios/CodePush/SSZipArchive/minizip/unzip.h +0 -248
  96. package/ios/CodePush/SSZipArchive/minizip/zip.c +0 -1910
  97. 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 */