react-native-update 10.7.2 → 10.7.4
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.
|
@@ -26,16 +26,16 @@ concurrency:
|
|
|
26
26
|
jobs:
|
|
27
27
|
ios:
|
|
28
28
|
name: iOS
|
|
29
|
-
runs-on: macos-
|
|
29
|
+
runs-on: macos-14-arm64
|
|
30
30
|
# TODO matrix across APIs, at least 11 and 15 (lowest to highest)
|
|
31
31
|
timeout-minutes: 60
|
|
32
32
|
env:
|
|
33
33
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
34
34
|
steps:
|
|
35
35
|
# Set up tool versions
|
|
36
|
-
- uses: actions/setup-node@
|
|
36
|
+
- uses: actions/setup-node@v4
|
|
37
37
|
with:
|
|
38
|
-
node-version:
|
|
38
|
+
node-version: 18
|
|
39
39
|
|
|
40
40
|
- name: Configure JDK 1.11
|
|
41
41
|
uses: actions/setup-java@v3
|
|
@@ -75,7 +75,7 @@ class DownloadTask extends AsyncTask<DownloadTaskParams, long[], Void> {
|
|
|
75
75
|
.build();
|
|
76
76
|
Response response = client.newCall(request).execute();
|
|
77
77
|
if (response.code() > 299) {
|
|
78
|
-
throw new Error("Server
|
|
78
|
+
throw new Error("Server error:" + response.code() + " " + response.message());
|
|
79
79
|
}
|
|
80
80
|
ResponseBody body = response.body();
|
|
81
81
|
long contentLength = body.contentLength();
|
package/package.json
CHANGED
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) => {
|