react-native-update 10.7.1 → 10.7.3
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/ios/RCTPushy.xcodeproj/project.pbxproj +12 -12
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/provider.tsx +16 -10
- package/src/type.ts +1 -1
|
@@ -14,11 +14,8 @@
|
|
|
14
14
|
249F2F64261C58C700A1E60E /* Lzma2Dec.c in Sources */ = {isa = PBXBuildFile; fileRef = 249F2F60261C58C700A1E60E /* Lzma2Dec.c */; };
|
|
15
15
|
249F2F65261C58C700A1E60E /* LzmaDec.c in Sources */ = {isa = PBXBuildFile; fileRef = 249F2F62261C58C700A1E60E /* LzmaDec.c */; };
|
|
16
16
|
91C5F0031C76ECA90037E727 /* RCTPushy.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 91C5F0021C76ECA90037E727 /* RCTPushy.h */; };
|
|
17
|
-
91C5F0051C76ECA90037E727 /* RCTPushy.m in Sources */ = {isa = PBXBuildFile; fileRef = 91C5F0041C76ECA90037E727 /* RCTPushy.m */; };
|
|
18
|
-
9F1BCB1D1CAE5937000EF2CB /* RCTPushyManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F1BCB1C1CAE5937000EF2CB /* RCTPushyManager.m */; };
|
|
19
17
|
9F1BCB461CAF6B3E000EF2CB /* bspatch.c in Sources */ = {isa = PBXBuildFile; fileRef = 9F1BCB3B1CAF6B3E000EF2CB /* bspatch.c */; };
|
|
20
18
|
9F1BCB4F1CAF6B68000EF2CB /* BSDiff.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F1BCB4E1CAF6B68000EF2CB /* BSDiff.m */; };
|
|
21
|
-
9F292F7D1C7C44290095945D /* RCTPushyDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F292F7C1C7C44290095945D /* RCTPushyDownloader.m */; };
|
|
22
19
|
9F394D7D1C7C25DC00C794C0 /* aescrypt.c in Sources */ = {isa = PBXBuildFile; fileRef = 9F394D5B1C7C25DC00C794C0 /* aescrypt.c */; };
|
|
23
20
|
9F394D7E1C7C25DC00C794C0 /* aeskey.c in Sources */ = {isa = PBXBuildFile; fileRef = 9F394D5C1C7C25DC00C794C0 /* aeskey.c */; };
|
|
24
21
|
9F394D7F1C7C25DC00C794C0 /* aestab.c in Sources */ = {isa = PBXBuildFile; fileRef = 9F394D5E1C7C25DC00C794C0 /* aestab.c */; };
|
|
@@ -33,6 +30,9 @@
|
|
|
33
30
|
9F394D881C7C25DC00C794C0 /* unzip.c in Sources */ = {isa = PBXBuildFile; fileRef = 9F394D761C7C25DC00C794C0 /* unzip.c */; };
|
|
34
31
|
9F394D891C7C25DC00C794C0 /* zip.c in Sources */ = {isa = PBXBuildFile; fileRef = 9F394D781C7C25DC00C794C0 /* zip.c */; };
|
|
35
32
|
9F394D8A1C7C25DC00C794C0 /* SSZipArchive.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F394D7B1C7C25DC00C794C0 /* SSZipArchive.m */; };
|
|
33
|
+
A3FD91A62C3C01600022D27F /* RCTPushy.mm in Sources */ = {isa = PBXBuildFile; fileRef = A3FD91A52C3C01600022D27F /* RCTPushy.mm */; };
|
|
34
|
+
A3FD91A82C3C01640022D27F /* RCTPushyDownloader.mm in Sources */ = {isa = PBXBuildFile; fileRef = A3FD91A72C3C01640022D27F /* RCTPushyDownloader.mm */; };
|
|
35
|
+
A3FD91AA2C3C01680022D27F /* RCTPushyManager.mm in Sources */ = {isa = PBXBuildFile; fileRef = A3FD91A92C3C01680022D27F /* RCTPushyManager.mm */; };
|
|
36
36
|
/* End PBXBuildFile section */
|
|
37
37
|
|
|
38
38
|
/* Begin PBXCopyFilesBuildPhase section */
|
|
@@ -64,15 +64,12 @@
|
|
|
64
64
|
249F2F63261C58C700A1E60E /* LzmaDec.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LzmaDec.h; path = ../../../android/jni/lzma/C/LzmaDec.h; sourceTree = "<group>"; };
|
|
65
65
|
91C5EFFF1C76ECA90037E727 /* libRCTPushy.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRCTPushy.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
66
66
|
91C5F0021C76ECA90037E727 /* RCTPushy.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTPushy.h; sourceTree = "<group>"; };
|
|
67
|
-
91C5F0041C76ECA90037E727 /* RCTPushy.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTPushy.m; sourceTree = "<group>"; };
|
|
68
67
|
9F1BCB1B1CAE5937000EF2CB /* RCTPushyManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTPushyManager.h; sourceTree = "<group>"; };
|
|
69
|
-
9F1BCB1C1CAE5937000EF2CB /* RCTPushyManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTPushyManager.m; sourceTree = "<group>"; };
|
|
70
68
|
9F1BCB3B1CAF6B3E000EF2CB /* bspatch.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = bspatch.c; sourceTree = "<group>"; };
|
|
71
69
|
9F1BCB3C1CAF6B3E000EF2CB /* bspatch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = bspatch.h; sourceTree = "<group>"; };
|
|
72
70
|
9F1BCB4D1CAF6B68000EF2CB /* BSDiff.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BSDiff.h; sourceTree = "<group>"; };
|
|
73
71
|
9F1BCB4E1CAF6B68000EF2CB /* BSDiff.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BSDiff.m; sourceTree = "<group>"; };
|
|
74
72
|
9F292F7B1C7C44290095945D /* RCTPushyDownloader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTPushyDownloader.h; sourceTree = "<group>"; };
|
|
75
|
-
9F292F7C1C7C44290095945D /* RCTPushyDownloader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTPushyDownloader.m; sourceTree = "<group>"; };
|
|
76
73
|
9F394D591C7C25DC00C794C0 /* aes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = aes.h; sourceTree = "<group>"; };
|
|
77
74
|
9F394D5A1C7C25DC00C794C0 /* aes_via_ace.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = aes_via_ace.h; sourceTree = "<group>"; };
|
|
78
75
|
9F394D5B1C7C25DC00C794C0 /* aescrypt.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = aescrypt.c; sourceTree = "<group>"; };
|
|
@@ -108,6 +105,9 @@
|
|
|
108
105
|
9F394D7A1C7C25DC00C794C0 /* SSZipArchive.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSZipArchive.h; sourceTree = "<group>"; };
|
|
109
106
|
9F394D7B1C7C25DC00C794C0 /* SSZipArchive.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SSZipArchive.m; sourceTree = "<group>"; };
|
|
110
107
|
9F394D7C1C7C25DC00C794C0 /* ZipArchive.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZipArchive.h; sourceTree = "<group>"; };
|
|
108
|
+
A3FD91A52C3C01600022D27F /* RCTPushy.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTPushy.mm; sourceTree = "<group>"; };
|
|
109
|
+
A3FD91A72C3C01640022D27F /* RCTPushyDownloader.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTPushyDownloader.mm; sourceTree = "<group>"; };
|
|
110
|
+
A3FD91A92C3C01680022D27F /* RCTPushyManager.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTPushyManager.mm; sourceTree = "<group>"; };
|
|
111
111
|
/* End PBXFileReference section */
|
|
112
112
|
|
|
113
113
|
/* Begin PBXFrameworksBuildPhase section */
|
|
@@ -172,11 +172,11 @@
|
|
|
172
172
|
9F1BCB381CAF6B3E000EF2CB /* BSDiff */,
|
|
173
173
|
9F394D571C7C25DC00C794C0 /* SSZipArchive */,
|
|
174
174
|
91C5F0021C76ECA90037E727 /* RCTPushy.h */,
|
|
175
|
-
91C5F0041C76ECA90037E727 /* RCTPushy.m */,
|
|
176
175
|
9F1BCB1B1CAE5937000EF2CB /* RCTPushyManager.h */,
|
|
177
|
-
9F1BCB1C1CAE5937000EF2CB /* RCTPushyManager.m */,
|
|
178
176
|
9F292F7B1C7C44290095945D /* RCTPushyDownloader.h */,
|
|
179
|
-
|
|
177
|
+
A3FD91A52C3C01600022D27F /* RCTPushy.mm */,
|
|
178
|
+
A3FD91A72C3C01640022D27F /* RCTPushyDownloader.mm */,
|
|
179
|
+
A3FD91A92C3C01680022D27F /* RCTPushyManager.mm */,
|
|
180
180
|
);
|
|
181
181
|
path = RCTPushy;
|
|
182
182
|
sourceTree = "<group>";
|
|
@@ -321,25 +321,25 @@
|
|
|
321
321
|
9F394D821C7C25DC00C794C0 /* hmac.c in Sources */,
|
|
322
322
|
9F394D881C7C25DC00C794C0 /* unzip.c in Sources */,
|
|
323
323
|
249F2F65261C58C700A1E60E /* LzmaDec.c in Sources */,
|
|
324
|
-
9F1BCB1D1CAE5937000EF2CB /* RCTPushyManager.m in Sources */,
|
|
325
324
|
249F2F5E261C589D00A1E60E /* patch.c in Sources */,
|
|
326
325
|
9F1BCB4F1CAF6B68000EF2CB /* BSDiff.m in Sources */,
|
|
327
326
|
9F394D7E1C7C25DC00C794C0 /* aeskey.c in Sources */,
|
|
328
327
|
9F394D7F1C7C25DC00C794C0 /* aestab.c in Sources */,
|
|
329
328
|
9F394D7D1C7C25DC00C794C0 /* aescrypt.c in Sources */,
|
|
330
329
|
9F394D801C7C25DC00C794C0 /* entropy.c in Sources */,
|
|
331
|
-
9F292F7D1C7C44290095945D /* RCTPushyDownloader.m in Sources */,
|
|
332
330
|
249F2F64261C58C700A1E60E /* Lzma2Dec.c in Sources */,
|
|
333
331
|
249F2F55261C584900A1E60E /* hpatch.c in Sources */,
|
|
334
332
|
9F394D831C7C25DC00C794C0 /* prng.c in Sources */,
|
|
335
333
|
9F394D861C7C25DC00C794C0 /* ioapi.c in Sources */,
|
|
334
|
+
A3FD91A82C3C01640022D27F /* RCTPushyDownloader.mm in Sources */,
|
|
336
335
|
9F1BCB461CAF6B3E000EF2CB /* bspatch.c in Sources */,
|
|
336
|
+
A3FD91A62C3C01600022D27F /* RCTPushy.mm in Sources */,
|
|
337
337
|
9F394D8A1C7C25DC00C794C0 /* SSZipArchive.m in Sources */,
|
|
338
338
|
249F2F50261C577300A1E60E /* HDiffPatch.m in Sources */,
|
|
339
|
+
A3FD91AA2C3C01680022D27F /* RCTPushyManager.mm in Sources */,
|
|
339
340
|
9F394D891C7C25DC00C794C0 /* zip.c in Sources */,
|
|
340
341
|
9F394D841C7C25DC00C794C0 /* pwd2key.c in Sources */,
|
|
341
342
|
249F2F59261C586900A1E60E /* file_for_patch.c in Sources */,
|
|
342
|
-
91C5F0051C76ECA90037E727 /* RCTPushy.m in Sources */,
|
|
343
343
|
);
|
|
344
344
|
runOnlyForDeploymentPostprocessing = 0;
|
|
345
345
|
};
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -399,7 +399,7 @@ export class Pushy {
|
|
|
399
399
|
target: 'update.apk',
|
|
400
400
|
hash: progressKey,
|
|
401
401
|
}).catch(() => {
|
|
402
|
-
this.report({ type: '
|
|
402
|
+
this.report({ type: 'errorDownloadAndInstallApk' });
|
|
403
403
|
});
|
|
404
404
|
if (this.progressHandlers[progressKey]) {
|
|
405
405
|
this.progressHandlers[progressKey].remove();
|
package/src/provider.tsx
CHANGED
|
@@ -62,17 +62,23 @@ export const PushyProvider = ({
|
|
|
62
62
|
[options.updateStrategy],
|
|
63
63
|
);
|
|
64
64
|
|
|
65
|
-
const switchVersion = useCallback(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
const switchVersion = useCallback(
|
|
66
|
+
(info: CheckResult | undefined = updateInfoRef.current) => {
|
|
67
|
+
if (info && info.hash) {
|
|
68
|
+
client.switchVersion(info.hash);
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
[client],
|
|
72
|
+
);
|
|
70
73
|
|
|
71
|
-
const switchVersionLater = useCallback(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
const switchVersionLater = useCallback(
|
|
75
|
+
(info: CheckResult | undefined = updateInfoRef.current) => {
|
|
76
|
+
if (info && info.hash) {
|
|
77
|
+
client.switchVersionLater(info.hash);
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
[client],
|
|
81
|
+
);
|
|
76
82
|
|
|
77
83
|
const downloadUpdate = useCallback(
|
|
78
84
|
async (info: CheckResult | undefined = updateInfoRef.current) => {
|
package/src/type.ts
CHANGED