react-native-update 10.37.16 → 10.37.18
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/android/src/main/java/cn/reactnative/modules/update/UpdateModuleImpl.java +20 -1
- package/harmony/pushy/.cxx/default/default/release/arm64-v8a/.ninja_deps +0 -0
- package/harmony/pushy/.cxx/default/default/release/arm64-v8a/.ninja_log +7 -7
- package/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeConfigureLog.yaml +32 -32
- package/harmony/pushy/.cxx/default/default/release/arm64-v8a/configure_fingerprint.json +1 -1
- package/harmony/pushy/.cxx/default/default/release/arm64-v8a/output.log +3 -3
- package/harmony/pushy/src/main/ets/PushyFileJSBundleProvider.ets +1 -1
- package/harmony/pushy/src/main/ets/PushyTurboModule.ts +73 -9
- package/harmony/pushy/src/main/ets/UpdateContext.ts +70 -206
- package/harmony/pushy.har +0 -0
- package/package.json +1 -1
- /package/harmony/pushy/.cxx/default/default/release/arm64-v8a/.cmake/api/v1/reply/{index-2026-03-16T14-00-08-0134.json → index-2026-03-18T11-30-44-0703.json} +0 -0
|
@@ -150,7 +150,26 @@ public class UpdateModuleImpl {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
final Context application = mContext.getApplicationContext();
|
|
153
|
-
|
|
153
|
+
final Context application = mContext.getApplicationContext();
|
|
154
|
+
String updateBundlePath = updateContext.getBundleUrl(application);
|
|
155
|
+
|
|
156
|
+
JSBundleLoader loader;
|
|
157
|
+
|
|
158
|
+
if (updateBundlePath != null) {
|
|
159
|
+
loader = JSBundleLoader.createFileLoader(updateBundlePath);
|
|
160
|
+
} else {
|
|
161
|
+
String bundleAssetName = "index.android.bundle";
|
|
162
|
+
try {
|
|
163
|
+
ReactInstanceManager defaultInstanceManager = ((ReactApplication) application).getReactNativeHost().getReactInstanceManager();
|
|
164
|
+
String rnBundleAssetName = defaultInstanceManager.getBundleAssetName();
|
|
165
|
+
if (rnBundleAssetName != null && !rnBundleAssetName.isEmpty()) {
|
|
166
|
+
bundleAssetName = rnBundleAssetName;
|
|
167
|
+
}
|
|
168
|
+
} catch (Exception e) {
|
|
169
|
+
Log.e(NAME, "Failed to get default asset name from ReactNativeHost: " + e.getMessage());
|
|
170
|
+
}
|
|
171
|
+
loader = JSBundleLoader.createAssetLoader(application, bundleAssetName, false);
|
|
172
|
+
}
|
|
154
173
|
try {
|
|
155
174
|
ReactInstanceManager instanceManager = updateContext.getCustomReactInstanceManager();
|
|
156
175
|
|
|
Binary file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# ninja log v6
|
|
2
|
-
2
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
2 62 1773833444771029927 CMakeFiles/rnupdate.dir/pushy.c.o 542657e253731f06
|
|
3
|
+
7 136 1773833444776029965 CMakeFiles/rnupdate.dir/__w/react-native-update/react-native-update/android/jni/HDiffPatch/file_for_patch.c.o 700518991a584715
|
|
4
|
+
8 195 1773833444778290443 CMakeFiles/rnupdate.dir/__w/react-native-update/react-native-update/android/jni/lzma/C/Lzma2Dec.c.o 818c45892591cc69
|
|
5
|
+
5 212 1773833444774029950 CMakeFiles/rnupdate.dir/__w/react-native-update/react-native-update/android/jni/hpatch.c.o caeb5cd514c4050f
|
|
6
|
+
8 554 1773833444777029973 CMakeFiles/rnupdate.dir/__w/react-native-update/react-native-update/android/jni/lzma/C/LzmaDec.c.o 1882f626c53c9a7b
|
|
7
|
+
5 688 1773833444775038239 CMakeFiles/rnupdate.dir/__w/react-native-update/react-native-update/android/jni/HDiffPatch/libHDiffPatch/HPatch/patch.c.o 9ce1de7f035dd649
|
|
8
|
+
688 720 1773833445457035192 /__w/react-native-update/react-native-update/harmony/pushy/build/default/intermediates/cmake/default/obj/arm64-v8a/librnupdate.so bfbf8a294790ee4c
|
package/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeConfigureLog.yaml
CHANGED
|
@@ -62,8 +62,8 @@ events:
|
|
|
62
62
|
checks:
|
|
63
63
|
- "Detecting C compiler ABI info"
|
|
64
64
|
directories:
|
|
65
|
-
source: "/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-
|
|
66
|
-
binary: "/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-
|
|
65
|
+
source: "/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-SFhwOe"
|
|
66
|
+
binary: "/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-SFhwOe"
|
|
67
67
|
cmakeVariables:
|
|
68
68
|
CMAKE_CXX_COMPILER_CLANG_SCAN_DEPS: "CMAKE_CXX_COMPILER_CLANG_SCAN_DEPS-NOTFOUND"
|
|
69
69
|
CMAKE_CXX_COMPILER_EXTERNAL_TOOLCHAIN: "/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm"
|
|
@@ -82,17 +82,17 @@ events:
|
|
|
82
82
|
variable: "CMAKE_C_ABI_COMPILED"
|
|
83
83
|
cached: true
|
|
84
84
|
stdout: |
|
|
85
|
-
Change Dir: '/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-
|
|
85
|
+
Change Dir: '/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-SFhwOe'
|
|
86
86
|
|
|
87
|
-
Run Build Command(s): /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/build-tools/cmake/bin/ninja -v
|
|
88
|
-
[1/2] /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -D__MUSL__ -fPIE -v -MD -MT CMakeFiles/
|
|
87
|
+
Run Build Command(s): /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/build-tools/cmake/bin/ninja -v cmTC_b4b78
|
|
88
|
+
[1/2] /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -D__MUSL__ -fPIE -v -MD -MT CMakeFiles/cmTC_b4b78.dir/CMakeCCompilerABI.c.o -MF CMakeFiles/cmTC_b4b78.dir/CMakeCCompilerABI.c.o.d -o CMakeFiles/cmTC_b4b78.dir/CMakeCCompilerABI.c.o -c /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/build-tools/cmake/share/cmake-3.28/Modules/CMakeCCompilerABI.c
|
|
89
89
|
OHOS (dev) clang version 15.0.4 (llvm-project da925908567283cc4933256fbbb294dd11b46e6e)
|
|
90
90
|
Target: aarch64-unknown-linux-ohos
|
|
91
91
|
Thread model: posix
|
|
92
92
|
InstalledDir: /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin
|
|
93
93
|
clang: warning: argument unused during compilation: '--gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm' [-Wunused-command-line-argument]
|
|
94
94
|
(in-process)
|
|
95
|
-
"/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang" -cc1 -triple aarch64-unknown-linux-ohos -emit-obj -mrelax-all --mrelax-relocations -mnoexecstack -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCCompilerABI.c -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=1 -target-cpu generic -target-feature +neon -target-feature +v8a -target-feature +fix-cortex-a53-835769 -target-abi aapcs -fallow-half-arguments-and-returns -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -ffunction-sections -fdata-sections -fcoverage-compilation-dir=/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-
|
|
95
|
+
"/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang" -cc1 -triple aarch64-unknown-linux-ohos -emit-obj -mrelax-all --mrelax-relocations -mnoexecstack -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCCompilerABI.c -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=1 -target-cpu generic -target-feature +neon -target-feature +v8a -target-feature +fix-cortex-a53-835769 -target-abi aapcs -fallow-half-arguments-and-returns -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -ffunction-sections -fdata-sections -fcoverage-compilation-dir=/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-SFhwOe -resource-dir /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4 -dependency-file CMakeFiles/cmTC_b4b78.dir/CMakeCCompilerABI.c.o.d -MT CMakeFiles/cmTC_b4b78.dir/CMakeCCompilerABI.c.o -sys-header-deps -D __MUSL__ -isysroot /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -internal-isystem /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/include -internal-externc-isystem /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/include/aarch64-linux-ohos -internal-externc-isystem /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/include -internal-externc-isystem /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/include -Wformat -fdebug-compilation-dir=/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-SFhwOe -ferror-limit 19 -stack-protector 2 -fno-signed-char -fgnuc-version=4.2.1 -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_b4b78.dir/CMakeCCompilerABI.c.o -x c /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/build-tools/cmake/share/cmake-3.28/Modules/CMakeCCompilerABI.c
|
|
96
96
|
clang -cc1 version 15.0.4 based upon LLVM 15.0.4 default target x86_64-unknown-linux-gnu
|
|
97
97
|
ignoring nonexistent directory "/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/include"
|
|
98
98
|
#include "..." search starts here:
|
|
@@ -101,12 +101,12 @@ events:
|
|
|
101
101
|
/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/include/aarch64-linux-ohos
|
|
102
102
|
/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/include
|
|
103
103
|
End of search list.
|
|
104
|
-
[2/2] : && /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -D__MUSL__ --rtlib=compiler-rt -fuse-ld=lld -Wl,--build-id=sha1 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -lunwind -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,--gc-sections -v CMakeFiles/
|
|
104
|
+
[2/2] : && /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -D__MUSL__ --rtlib=compiler-rt -fuse-ld=lld -Wl,--build-id=sha1 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -lunwind -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,--gc-sections -v CMakeFiles/cmTC_b4b78.dir/CMakeCCompilerABI.c.o -o cmTC_b4b78 && :
|
|
105
105
|
OHOS (dev) clang version 15.0.4 (llvm-project da925908567283cc4933256fbbb294dd11b46e6e)
|
|
106
106
|
Target: aarch64-unknown-linux-ohos
|
|
107
107
|
Thread model: posix
|
|
108
108
|
InstalledDir: /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin
|
|
109
|
-
"/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/ld.lld" --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -pie -EL --fix-cortex-a53-843419 -z now -z relro -z max-page-size=4096 --hash-style=gnu --hash-style=both --enable-new-dtags --eh-frame-hdr -m aarch64linux -dynamic-linker /lib/ld-musl-aarch64.so.1 -o
|
|
109
|
+
"/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/ld.lld" --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -pie -EL --fix-cortex-a53-843419 -z now -z relro -z max-page-size=4096 --hash-style=gnu --hash-style=both --enable-new-dtags --eh-frame-hdr -m aarch64linux -dynamic-linker /lib/ld-musl-aarch64.so.1 -o cmTC_b4b78 /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/Scrt1.o /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/crti.o /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/clang_rt.crtbegin.o -L/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos -L/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/ -L/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/../lib/aarch64-linux-ohos/ -L/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/ --build-id=sha1 --warn-shared-textrel --fatal-warnings -lunwind --no-undefined -z noexecstack --gc-sections CMakeFiles/cmTC_b4b78.dir/CMakeCCompilerABI.c.o /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/libclang_rt.builtins.a -l:libunwind.a -lc /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/libclang_rt.builtins.a -l:libunwind.a /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/clang_rt.crtend.o /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/crtn.o
|
|
110
110
|
|
|
111
111
|
exitCode: 0
|
|
112
112
|
-
|
|
@@ -138,17 +138,17 @@ events:
|
|
|
138
138
|
message: |
|
|
139
139
|
Parsed C implicit link information:
|
|
140
140
|
link line regex: [^( *|.*[/\\])(ld\\.lld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\\]+-)?ld|collect2)[^/\\]*( |$)]
|
|
141
|
-
ignore line: [Change Dir: '/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-
|
|
141
|
+
ignore line: [Change Dir: '/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-SFhwOe']
|
|
142
142
|
ignore line: []
|
|
143
|
-
ignore line: [Run Build Command(s): /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/build-tools/cmake/bin/ninja -v
|
|
144
|
-
ignore line: [[1/2] /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa --noexecstack -Wformat -D__MUSL__ -fPIE -v -MD -MT CMakeFiles/
|
|
143
|
+
ignore line: [Run Build Command(s): /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/build-tools/cmake/bin/ninja -v cmTC_b4b78]
|
|
144
|
+
ignore line: [[1/2] /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa --noexecstack -Wformat -D__MUSL__ -fPIE -v -MD -MT CMakeFiles/cmTC_b4b78.dir/CMakeCCompilerABI.c.o -MF CMakeFiles/cmTC_b4b78.dir/CMakeCCompilerABI.c.o.d -o CMakeFiles/cmTC_b4b78.dir/CMakeCCompilerABI.c.o -c /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/build-tools/cmake/share/cmake-3.28/Modules/CMakeCCompilerABI.c]
|
|
145
145
|
ignore line: [OHOS (dev) clang version 15.0.4 (llvm-project da925908567283cc4933256fbbb294dd11b46e6e)]
|
|
146
146
|
ignore line: [Target: aarch64-unknown-linux-ohos]
|
|
147
147
|
ignore line: [Thread model: posix]
|
|
148
148
|
ignore line: [InstalledDir: /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin]
|
|
149
149
|
ignore line: [clang: warning: argument unused during compilation: '--gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm' [-Wunused-command-line-argument]]
|
|
150
150
|
ignore line: [ (in-process)]
|
|
151
|
-
ignore line: [ "/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang" -cc1 -triple aarch64-unknown-linux-ohos -emit-obj -mrelax-all --mrelax-relocations -mnoexecstack -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCCompilerABI.c -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=1 -target-cpu generic -target-feature +neon -target-feature +v8a -target-feature +fix-cortex-a53-835769 -target-abi aapcs -fallow-half-arguments-and-returns -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -ffunction-sections -fdata-sections -fcoverage-compilation-dir=/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-
|
|
151
|
+
ignore line: [ "/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang" -cc1 -triple aarch64-unknown-linux-ohos -emit-obj -mrelax-all --mrelax-relocations -mnoexecstack -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCCompilerABI.c -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=1 -target-cpu generic -target-feature +neon -target-feature +v8a -target-feature +fix-cortex-a53-835769 -target-abi aapcs -fallow-half-arguments-and-returns -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -ffunction-sections -fdata-sections -fcoverage-compilation-dir=/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-SFhwOe -resource-dir /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4 -dependency-file CMakeFiles/cmTC_b4b78.dir/CMakeCCompilerABI.c.o.d -MT CMakeFiles/cmTC_b4b78.dir/CMakeCCompilerABI.c.o -sys-header-deps -D __MUSL__ -isysroot /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -internal-isystem /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/include -internal-externc-isystem /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/include/aarch64-linux-ohos -internal-externc-isystem /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/include -internal-externc-isystem /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/include -Wformat -fdebug-compilation-dir=/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-SFhwOe -ferror-limit 19 -stack-protector 2 -fno-signed-char -fgnuc-version=4.2.1 -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_b4b78.dir/CMakeCCompilerABI.c.o -x c /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/build-tools/cmake/share/cmake-3.28/Modules/CMakeCCompilerABI.c]
|
|
152
152
|
ignore line: [clang -cc1 version 15.0.4 based upon LLVM 15.0.4 default target x86_64-unknown-linux-gnu]
|
|
153
153
|
ignore line: [ignoring nonexistent directory "/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/include"]
|
|
154
154
|
ignore line: [#include "..." search starts here:]
|
|
@@ -157,12 +157,12 @@ events:
|
|
|
157
157
|
ignore line: [ /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/include/aarch64-linux-ohos]
|
|
158
158
|
ignore line: [ /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/include]
|
|
159
159
|
ignore line: [End of search list.]
|
|
160
|
-
ignore line: [[2/2] : && /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -D__MUSL__ --rtlib=compiler-rt -fuse-ld=lld -Wl,--build-id=sha1 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -lunwind -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,--gc-sections -v CMakeFiles/
|
|
160
|
+
ignore line: [[2/2] : && /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -D__MUSL__ --rtlib=compiler-rt -fuse-ld=lld -Wl,--build-id=sha1 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -lunwind -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,--gc-sections -v CMakeFiles/cmTC_b4b78.dir/CMakeCCompilerABI.c.o -o cmTC_b4b78 && :]
|
|
161
161
|
ignore line: [OHOS (dev) clang version 15.0.4 (llvm-project da925908567283cc4933256fbbb294dd11b46e6e)]
|
|
162
162
|
ignore line: [Target: aarch64-unknown-linux-ohos]
|
|
163
163
|
ignore line: [Thread model: posix]
|
|
164
164
|
ignore line: [InstalledDir: /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin]
|
|
165
|
-
link line: [ "/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/ld.lld" --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -pie -EL --fix-cortex-a53-843419 -z now -z relro -z max-page-size=4096 --hash-style=gnu --hash-style=both --enable-new-dtags --eh-frame-hdr -m aarch64linux -dynamic-linker /lib/ld-musl-aarch64.so.1 -o
|
|
165
|
+
link line: [ "/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/ld.lld" --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -pie -EL --fix-cortex-a53-843419 -z now -z relro -z max-page-size=4096 --hash-style=gnu --hash-style=both --enable-new-dtags --eh-frame-hdr -m aarch64linux -dynamic-linker /lib/ld-musl-aarch64.so.1 -o cmTC_b4b78 /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/Scrt1.o /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/crti.o /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/clang_rt.crtbegin.o -L/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos -L/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/ -L/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/../lib/aarch64-linux-ohos/ -L/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/ --build-id=sha1 --warn-shared-textrel --fatal-warnings -lunwind --no-undefined -z noexecstack --gc-sections CMakeFiles/cmTC_b4b78.dir/CMakeCCompilerABI.c.o /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/libclang_rt.builtins.a -l:libunwind.a -lc /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/libclang_rt.builtins.a -l:libunwind.a /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/clang_rt.crtend.o /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/crtn.o]
|
|
166
166
|
arg [/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/ld.lld] ==> ignore
|
|
167
167
|
arg [--sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot] ==> ignore
|
|
168
168
|
arg [-pie] ==> ignore
|
|
@@ -180,7 +180,7 @@ events:
|
|
|
180
180
|
arg [-dynamic-linker] ==> ignore
|
|
181
181
|
arg [/lib/ld-musl-aarch64.so.1] ==> ignore
|
|
182
182
|
arg [-o] ==> ignore
|
|
183
|
-
arg [
|
|
183
|
+
arg [cmTC_b4b78] ==> ignore
|
|
184
184
|
arg [/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/Scrt1.o] ==> obj [/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/Scrt1.o]
|
|
185
185
|
arg [/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/crti.o] ==> obj [/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/crti.o]
|
|
186
186
|
arg [/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/clang_rt.crtbegin.o] ==> obj [/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/clang_rt.crtbegin.o]
|
|
@@ -195,7 +195,7 @@ events:
|
|
|
195
195
|
arg [--no-undefined] ==> ignore
|
|
196
196
|
arg [-znoexecstack] ==> ignore
|
|
197
197
|
arg [--gc-sections] ==> ignore
|
|
198
|
-
arg [CMakeFiles/
|
|
198
|
+
arg [CMakeFiles/cmTC_b4b78.dir/CMakeCCompilerABI.c.o] ==> ignore
|
|
199
199
|
arg [/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/libclang_rt.builtins.a] ==> lib [/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/libclang_rt.builtins.a]
|
|
200
200
|
arg [-l:libunwind.a] ==> lib [-l:libunwind.a]
|
|
201
201
|
arg [-lc] ==> lib [c]
|
|
@@ -224,8 +224,8 @@ events:
|
|
|
224
224
|
checks:
|
|
225
225
|
- "Detecting CXX compiler ABI info"
|
|
226
226
|
directories:
|
|
227
|
-
source: "/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-
|
|
228
|
-
binary: "/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-
|
|
227
|
+
source: "/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-osY84h"
|
|
228
|
+
binary: "/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-osY84h"
|
|
229
229
|
cmakeVariables:
|
|
230
230
|
CMAKE_CXX_COMPILER_CLANG_SCAN_DEPS: "CMAKE_CXX_COMPILER_CLANG_SCAN_DEPS-NOTFOUND"
|
|
231
231
|
CMAKE_CXX_COMPILER_EXTERNAL_TOOLCHAIN: "/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm"
|
|
@@ -244,17 +244,17 @@ events:
|
|
|
244
244
|
variable: "CMAKE_CXX_ABI_COMPILED"
|
|
245
245
|
cached: true
|
|
246
246
|
stdout: |
|
|
247
|
-
Change Dir: '/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-
|
|
247
|
+
Change Dir: '/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-osY84h'
|
|
248
248
|
|
|
249
|
-
Run Build Command(s): /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/build-tools/cmake/bin/ninja -v
|
|
250
|
-
[1/2] /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang++ --target=aarch64-linux-ohos --gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -D__MUSL__ -fPIE -v -MD -MT CMakeFiles/
|
|
249
|
+
Run Build Command(s): /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/build-tools/cmake/bin/ninja -v cmTC_cef4c
|
|
250
|
+
[1/2] /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang++ --target=aarch64-linux-ohos --gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -D__MUSL__ -fPIE -v -MD -MT CMakeFiles/cmTC_cef4c.dir/CMakeCXXCompilerABI.cpp.o -MF CMakeFiles/cmTC_cef4c.dir/CMakeCXXCompilerABI.cpp.o.d -o CMakeFiles/cmTC_cef4c.dir/CMakeCXXCompilerABI.cpp.o -c /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/build-tools/cmake/share/cmake-3.28/Modules/CMakeCXXCompilerABI.cpp
|
|
251
251
|
OHOS (dev) clang version 15.0.4 (llvm-project da925908567283cc4933256fbbb294dd11b46e6e)
|
|
252
252
|
Target: aarch64-unknown-linux-ohos
|
|
253
253
|
Thread model: posix
|
|
254
254
|
InstalledDir: /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin
|
|
255
255
|
clang++: warning: argument unused during compilation: '--gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm' [-Wunused-command-line-argument]
|
|
256
256
|
(in-process)
|
|
257
|
-
"/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang++" -cc1 -triple aarch64-unknown-linux-ohos -emit-obj -mrelax-all --mrelax-relocations -mnoexecstack -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCXXCompilerABI.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=1 -target-cpu generic -target-feature +neon -target-feature +v8a -target-feature +fix-cortex-a53-835769 -target-abi aapcs -fallow-half-arguments-and-returns -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -ffunction-sections -fdata-sections -fcoverage-compilation-dir=/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-
|
|
257
|
+
"/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang++" -cc1 -triple aarch64-unknown-linux-ohos -emit-obj -mrelax-all --mrelax-relocations -mnoexecstack -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCXXCompilerABI.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=1 -target-cpu generic -target-feature +neon -target-feature +v8a -target-feature +fix-cortex-a53-835769 -target-abi aapcs -fallow-half-arguments-and-returns -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -ffunction-sections -fdata-sections -fcoverage-compilation-dir=/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-osY84h -resource-dir /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4 -dependency-file CMakeFiles/cmTC_cef4c.dir/CMakeCXXCompilerABI.cpp.o.d -MT CMakeFiles/cmTC_cef4c.dir/CMakeCXXCompilerABI.cpp.o -sys-header-deps -D __MUSL__ -isysroot /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -internal-isystem /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/../include/libcxx-ohos/include/c++/v1 -internal-isystem /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/include -internal-externc-isystem /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/include/aarch64-linux-ohos -internal-externc-isystem /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/include -internal-externc-isystem /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/include -Wformat -fdeprecated-macro -fdebug-compilation-dir=/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-osY84h -ferror-limit 19 -stack-protector 2 -fno-signed-char -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_cef4c.dir/CMakeCXXCompilerABI.cpp.o -x c++ /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/build-tools/cmake/share/cmake-3.28/Modules/CMakeCXXCompilerABI.cpp
|
|
258
258
|
clang -cc1 version 15.0.4 based upon LLVM 15.0.4 default target x86_64-unknown-linux-gnu
|
|
259
259
|
ignoring nonexistent directory "/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/include"
|
|
260
260
|
#include "..." search starts here:
|
|
@@ -264,12 +264,12 @@ events:
|
|
|
264
264
|
/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/include/aarch64-linux-ohos
|
|
265
265
|
/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/include
|
|
266
266
|
End of search list.
|
|
267
|
-
[2/2] : && /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang++ --target=aarch64-linux-ohos --gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -D__MUSL__ --rtlib=compiler-rt -fuse-ld=lld -Wl,--build-id=sha1 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -lunwind -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,--gc-sections -v CMakeFiles/
|
|
267
|
+
[2/2] : && /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang++ --target=aarch64-linux-ohos --gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -D__MUSL__ --rtlib=compiler-rt -fuse-ld=lld -Wl,--build-id=sha1 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -lunwind -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,--gc-sections -v CMakeFiles/cmTC_cef4c.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_cef4c && :
|
|
268
268
|
OHOS (dev) clang version 15.0.4 (llvm-project da925908567283cc4933256fbbb294dd11b46e6e)
|
|
269
269
|
Target: aarch64-unknown-linux-ohos
|
|
270
270
|
Thread model: posix
|
|
271
271
|
InstalledDir: /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin
|
|
272
|
-
"/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/ld.lld" --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -pie -EL --fix-cortex-a53-843419 -z now -z relro -z max-page-size=4096 --hash-style=gnu --hash-style=both --enable-new-dtags --eh-frame-hdr -m aarch64linux -dynamic-linker /lib/ld-musl-aarch64.so.1 -o
|
|
272
|
+
"/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/ld.lld" --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -pie -EL --fix-cortex-a53-843419 -z now -z relro -z max-page-size=4096 --hash-style=gnu --hash-style=both --enable-new-dtags --eh-frame-hdr -m aarch64linux -dynamic-linker /lib/ld-musl-aarch64.so.1 -o cmTC_cef4c /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/Scrt1.o /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/crti.o /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/clang_rt.crtbegin.o -L/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos -L/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/ -L/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/../lib/aarch64-linux-ohos/ -L/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/ --build-id=sha1 --warn-shared-textrel --fatal-warnings -lunwind --no-undefined -z noexecstack --gc-sections CMakeFiles/cmTC_cef4c.dir/CMakeCXXCompilerABI.cpp.o -lc++ -lc++abi -lunwind -lm /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/libclang_rt.builtins.a -l:libunwind.a -lc /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/libclang_rt.builtins.a -l:libunwind.a /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/clang_rt.crtend.o /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/crtn.o
|
|
273
273
|
|
|
274
274
|
exitCode: 0
|
|
275
275
|
-
|
|
@@ -303,17 +303,17 @@ events:
|
|
|
303
303
|
message: |
|
|
304
304
|
Parsed CXX implicit link information:
|
|
305
305
|
link line regex: [^( *|.*[/\\])(ld\\.lld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\\]+-)?ld|collect2)[^/\\]*( |$)]
|
|
306
|
-
ignore line: [Change Dir: '/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-
|
|
306
|
+
ignore line: [Change Dir: '/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-osY84h']
|
|
307
307
|
ignore line: []
|
|
308
|
-
ignore line: [Run Build Command(s): /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/build-tools/cmake/bin/ninja -v
|
|
309
|
-
ignore line: [[1/2] /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang++ --target=aarch64-linux-ohos --gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa --noexecstack -Wformat -D__MUSL__ -fPIE -v -MD -MT CMakeFiles/
|
|
308
|
+
ignore line: [Run Build Command(s): /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/build-tools/cmake/bin/ninja -v cmTC_cef4c]
|
|
309
|
+
ignore line: [[1/2] /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang++ --target=aarch64-linux-ohos --gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa --noexecstack -Wformat -D__MUSL__ -fPIE -v -MD -MT CMakeFiles/cmTC_cef4c.dir/CMakeCXXCompilerABI.cpp.o -MF CMakeFiles/cmTC_cef4c.dir/CMakeCXXCompilerABI.cpp.o.d -o CMakeFiles/cmTC_cef4c.dir/CMakeCXXCompilerABI.cpp.o -c /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/build-tools/cmake/share/cmake-3.28/Modules/CMakeCXXCompilerABI.cpp]
|
|
310
310
|
ignore line: [OHOS (dev) clang version 15.0.4 (llvm-project da925908567283cc4933256fbbb294dd11b46e6e)]
|
|
311
311
|
ignore line: [Target: aarch64-unknown-linux-ohos]
|
|
312
312
|
ignore line: [Thread model: posix]
|
|
313
313
|
ignore line: [InstalledDir: /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin]
|
|
314
314
|
ignore line: [clang++: warning: argument unused during compilation: '--gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm' [-Wunused-command-line-argument]]
|
|
315
315
|
ignore line: [ (in-process)]
|
|
316
|
-
ignore line: [ "/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang++" -cc1 -triple aarch64-unknown-linux-ohos -emit-obj -mrelax-all --mrelax-relocations -mnoexecstack -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCXXCompilerABI.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=1 -target-cpu generic -target-feature +neon -target-feature +v8a -target-feature +fix-cortex-a53-835769 -target-abi aapcs -fallow-half-arguments-and-returns -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -ffunction-sections -fdata-sections -fcoverage-compilation-dir=/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-
|
|
316
|
+
ignore line: [ "/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang++" -cc1 -triple aarch64-unknown-linux-ohos -emit-obj -mrelax-all --mrelax-relocations -mnoexecstack -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCXXCompilerABI.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=1 -target-cpu generic -target-feature +neon -target-feature +v8a -target-feature +fix-cortex-a53-835769 -target-abi aapcs -fallow-half-arguments-and-returns -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -ffunction-sections -fdata-sections -fcoverage-compilation-dir=/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-osY84h -resource-dir /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4 -dependency-file CMakeFiles/cmTC_cef4c.dir/CMakeCXXCompilerABI.cpp.o.d -MT CMakeFiles/cmTC_cef4c.dir/CMakeCXXCompilerABI.cpp.o -sys-header-deps -D __MUSL__ -isysroot /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -internal-isystem /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/../include/libcxx-ohos/include/c++/v1 -internal-isystem /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/include -internal-externc-isystem /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/include/aarch64-linux-ohos -internal-externc-isystem /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/include -internal-externc-isystem /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/include -Wformat -fdeprecated-macro -fdebug-compilation-dir=/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-osY84h -ferror-limit 19 -stack-protector 2 -fno-signed-char -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_cef4c.dir/CMakeCXXCompilerABI.cpp.o -x c++ /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/build-tools/cmake/share/cmake-3.28/Modules/CMakeCXXCompilerABI.cpp]
|
|
317
317
|
ignore line: [clang -cc1 version 15.0.4 based upon LLVM 15.0.4 default target x86_64-unknown-linux-gnu]
|
|
318
318
|
ignore line: [ignoring nonexistent directory "/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/include"]
|
|
319
319
|
ignore line: [#include "..." search starts here:]
|
|
@@ -323,12 +323,12 @@ events:
|
|
|
323
323
|
ignore line: [ /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/include/aarch64-linux-ohos]
|
|
324
324
|
ignore line: [ /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/include]
|
|
325
325
|
ignore line: [End of search list.]
|
|
326
|
-
ignore line: [[2/2] : && /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang++ --target=aarch64-linux-ohos --gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -D__MUSL__ --rtlib=compiler-rt -fuse-ld=lld -Wl,--build-id=sha1 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -lunwind -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,--gc-sections -v CMakeFiles/
|
|
326
|
+
ignore line: [[2/2] : && /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang++ --target=aarch64-linux-ohos --gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -D__MUSL__ --rtlib=compiler-rt -fuse-ld=lld -Wl,--build-id=sha1 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -lunwind -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,--gc-sections -v CMakeFiles/cmTC_cef4c.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_cef4c && :]
|
|
327
327
|
ignore line: [OHOS (dev) clang version 15.0.4 (llvm-project da925908567283cc4933256fbbb294dd11b46e6e)]
|
|
328
328
|
ignore line: [Target: aarch64-unknown-linux-ohos]
|
|
329
329
|
ignore line: [Thread model: posix]
|
|
330
330
|
ignore line: [InstalledDir: /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin]
|
|
331
|
-
link line: [ "/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/ld.lld" --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -pie -EL --fix-cortex-a53-843419 -z now -z relro -z max-page-size=4096 --hash-style=gnu --hash-style=both --enable-new-dtags --eh-frame-hdr -m aarch64linux -dynamic-linker /lib/ld-musl-aarch64.so.1 -o
|
|
331
|
+
link line: [ "/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/ld.lld" --sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot -pie -EL --fix-cortex-a53-843419 -z now -z relro -z max-page-size=4096 --hash-style=gnu --hash-style=both --enable-new-dtags --eh-frame-hdr -m aarch64linux -dynamic-linker /lib/ld-musl-aarch64.so.1 -o cmTC_cef4c /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/Scrt1.o /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/crti.o /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/clang_rt.crtbegin.o -L/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos -L/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/ -L/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/../lib/aarch64-linux-ohos/ -L/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/ --build-id=sha1 --warn-shared-textrel --fatal-warnings -lunwind --no-undefined -z noexecstack --gc-sections CMakeFiles/cmTC_cef4c.dir/CMakeCXXCompilerABI.cpp.o -lc++ -lc++abi -lunwind -lm /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/libclang_rt.builtins.a -l:libunwind.a -lc /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/libclang_rt.builtins.a -l:libunwind.a /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/clang_rt.crtend.o /opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/crtn.o]
|
|
332
332
|
arg [/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/bin/ld.lld] ==> ignore
|
|
333
333
|
arg [--sysroot=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot] ==> ignore
|
|
334
334
|
arg [-pie] ==> ignore
|
|
@@ -346,7 +346,7 @@ events:
|
|
|
346
346
|
arg [-dynamic-linker] ==> ignore
|
|
347
347
|
arg [/lib/ld-musl-aarch64.so.1] ==> ignore
|
|
348
348
|
arg [-o] ==> ignore
|
|
349
|
-
arg [
|
|
349
|
+
arg [cmTC_cef4c] ==> ignore
|
|
350
350
|
arg [/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/Scrt1.o] ==> obj [/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/Scrt1.o]
|
|
351
351
|
arg [/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/crti.o] ==> obj [/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/sysroot/usr/lib/aarch64-linux-ohos/crti.o]
|
|
352
352
|
arg [/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/clang_rt.crtbegin.o] ==> obj [/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm/lib/clang/15.0.4/lib/aarch64-linux-ohos/clang_rt.crtbegin.o]
|
|
@@ -361,7 +361,7 @@ events:
|
|
|
361
361
|
arg [--no-undefined] ==> ignore
|
|
362
362
|
arg [-znoexecstack] ==> ignore
|
|
363
363
|
arg [--gc-sections] ==> ignore
|
|
364
|
-
arg [CMakeFiles/
|
|
364
|
+
arg [CMakeFiles/cmTC_cef4c.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore
|
|
365
365
|
arg [-lc++] ==> lib [c++]
|
|
366
366
|
arg [-lc++abi] ==> lib [c++abi]
|
|
367
367
|
arg [-lunwind] ==> lib [unwind]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"files":[{"exist":true,"path":"/__w/react-native-update/react-native-update/harmony/pushy/src/main/cpp/CMakeLists.txt","size":1671,"lastModified":
|
|
1
|
+
{"files":[{"exist":true,"path":"/__w/react-native-update/react-native-update/harmony/pushy/src/main/cpp/CMakeLists.txt","size":1671,"lastModified":1773833376067.8633},{"exist":true,"path":"/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/hvigor/arm64-v8a/summary.cmake","size":0,"lastModified":1773833443461.0198},{"exist":true,"path":"/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/hvigor_native_config.json","size":667,"lastModified":1773833444754.0298},{"exist":true,"path":"/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/CMakeCache.txt","size":17394,"lastModified":1773833444692.2405},{"exist":true,"path":"/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/build.ninja","size":44325,"lastModified":1773833444697.0293},{"exist":true,"path":"/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/compile_commands.json","size":9826,"lastModified":1773833444697.0293},{"exist":true,"path":"/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/native_work_dir.txt","size":97,"lastModified":1773833444753.0298},{"exist":true,"path":"/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/build_file_index.txt","size":86,"lastModified":1773833444754.0298},{"exist":true,"path":"/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/additional_project_files.txt","size":0,"lastModified":1773833444753.0298},{"exist":true,"path":"/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a/metadata_generation_command.txt","size":1266,"lastModified":1773833443496.02}],"version":1}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
ninja: Entering directory `/__w/react-native-update/react-native-update/harmony/pushy/.cxx/default/default/release/arm64-v8a'
|
|
2
2
|
[1/7] Building C object CMakeFiles/rnupdate.dir/pushy.c.o
|
|
3
3
|
clang: warning: argument unused during compilation: '--gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm' [-Wunused-command-line-argument]
|
|
4
|
-
[2/7] Building C object CMakeFiles/rnupdate.dir/__w/react-native-update/react-native-update/android/jni/
|
|
4
|
+
[2/7] Building C object CMakeFiles/rnupdate.dir/__w/react-native-update/react-native-update/android/jni/HDiffPatch/file_for_patch.c.o
|
|
5
5
|
clang: warning: argument unused during compilation: '--gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm' [-Wunused-command-line-argument]
|
|
6
|
-
[3/7] Building C object CMakeFiles/rnupdate.dir/__w/react-native-update/react-native-update/android/jni/
|
|
6
|
+
[3/7] Building C object CMakeFiles/rnupdate.dir/__w/react-native-update/react-native-update/android/jni/lzma/C/Lzma2Dec.c.o
|
|
7
7
|
clang: warning: argument unused during compilation: '--gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm' [-Wunused-command-line-argument]
|
|
8
|
-
[4/7] Building C object CMakeFiles/rnupdate.dir/__w/react-native-update/react-native-update/android/jni/
|
|
8
|
+
[4/7] Building C object CMakeFiles/rnupdate.dir/__w/react-native-update/react-native-update/android/jni/hpatch.c.o
|
|
9
9
|
clang: warning: argument unused during compilation: '--gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm' [-Wunused-command-line-argument]
|
|
10
10
|
[5/7] Building C object CMakeFiles/rnupdate.dir/__w/react-native-update/react-native-update/android/jni/lzma/C/LzmaDec.c.o
|
|
11
11
|
clang: warning: argument unused during compilation: '--gcc-toolchain=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony/native/llvm' [-Wunused-command-line-argument]
|
|
@@ -13,7 +13,7 @@ export class PushyFileJSBundleProvider extends JSBundleProvider {
|
|
|
13
13
|
|
|
14
14
|
constructor(context: common.UIAbilityContext) {
|
|
15
15
|
super();
|
|
16
|
-
this.updateContext = UpdateContext
|
|
16
|
+
this.updateContext = new UpdateContext(context);
|
|
17
17
|
this.path = this.updateContext.getBundleUrl();
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -3,10 +3,13 @@ import {
|
|
|
3
3
|
TurboModuleContext,
|
|
4
4
|
} from '@rnoh/react-native-openharmony/ts';
|
|
5
5
|
import common from '@ohos.app.ability.common';
|
|
6
|
+
import dataPreferences from '@ohos.data.preferences';
|
|
7
|
+
import { bundleManager } from '@kit.AbilityKit';
|
|
6
8
|
import logger from './Logger';
|
|
7
9
|
import { UpdateModuleImpl } from './UpdateModuleImpl';
|
|
8
10
|
import { UpdateContext } from './UpdateContext';
|
|
9
11
|
import { EventHub } from './EventHub';
|
|
12
|
+
import { util } from '@kit.ArkTS';
|
|
10
13
|
|
|
11
14
|
const TAG = 'PushyTurboModule';
|
|
12
15
|
|
|
@@ -18,25 +21,86 @@ export class PushyTurboModule extends TurboModule {
|
|
|
18
21
|
super(ctx);
|
|
19
22
|
logger.debug(TAG, ',PushyTurboModule constructor');
|
|
20
23
|
this.mUiCtx = ctx.uiAbilityContext;
|
|
21
|
-
this.context = UpdateContext
|
|
24
|
+
this.context = new UpdateContext(this.mUiCtx);
|
|
22
25
|
EventHub.getInstance().setRNInstance(ctx.rnInstance);
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
getConstants(): Object {
|
|
26
29
|
logger.debug(TAG, ',call getConstants');
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
const context = this.mUiCtx;
|
|
31
|
+
const preferencesManager = dataPreferences.getPreferencesSync(context, {
|
|
32
|
+
name: 'update',
|
|
33
|
+
});
|
|
34
|
+
const isFirstTime = preferencesManager.getSync(
|
|
35
|
+
'isFirstTime',
|
|
36
|
+
false,
|
|
37
|
+
) as boolean;
|
|
38
|
+
const rolledBackVersion = preferencesManager.getSync(
|
|
39
|
+
'rolledBackVersion',
|
|
40
|
+
'',
|
|
41
|
+
) as string;
|
|
42
|
+
const uuid = preferencesManager.getSync('uuid', '') as string;
|
|
43
|
+
const currentVersion = preferencesManager.getSync(
|
|
44
|
+
'currentVersion',
|
|
45
|
+
'',
|
|
46
|
+
) as string;
|
|
31
47
|
const currentVersionInfo = this.context.getKv(`hash_${currentVersion}`);
|
|
32
48
|
|
|
49
|
+
const isUsingBundleUrl = this.context.getIsUsingBundleUrl();
|
|
50
|
+
let bundleFlags =
|
|
51
|
+
bundleManager.BundleFlag.GET_BUNDLE_INFO_WITH_REQUESTED_PERMISSION;
|
|
52
|
+
let packageVersion = '';
|
|
53
|
+
try {
|
|
54
|
+
const bundleInfo = bundleManager.getBundleInfoForSelfSync(bundleFlags);
|
|
55
|
+
packageVersion = bundleInfo?.versionName || 'Unknown';
|
|
56
|
+
} catch (error) {
|
|
57
|
+
console.error('Failed to get bundle info:', error);
|
|
58
|
+
}
|
|
59
|
+
const storedPackageVersion = preferencesManager.getSync(
|
|
60
|
+
'packageVersion',
|
|
61
|
+
'',
|
|
62
|
+
) as string;
|
|
63
|
+
const storedBuildTime = preferencesManager.getSync(
|
|
64
|
+
'buildTime',
|
|
65
|
+
'',
|
|
66
|
+
) as string;
|
|
67
|
+
let buildTime = '';
|
|
68
|
+
try {
|
|
69
|
+
const resourceManager = this.mUiCtx.resourceManager;
|
|
70
|
+
const content = resourceManager.getRawFileContentSync('meta.json');
|
|
71
|
+
const metaData = JSON.parse(
|
|
72
|
+
new util.TextDecoder().decodeToString(content),
|
|
73
|
+
);
|
|
74
|
+
if (metaData.pushy_build_time) {
|
|
75
|
+
buildTime = String(metaData.pushy_build_time);
|
|
76
|
+
}
|
|
77
|
+
} catch {}
|
|
78
|
+
|
|
79
|
+
const packageVersionChanged =
|
|
80
|
+
!storedPackageVersion || packageVersion !== storedPackageVersion;
|
|
81
|
+
const buildTimeChanged = !storedBuildTime || buildTime !== storedBuildTime;
|
|
82
|
+
|
|
83
|
+
if (packageVersionChanged || buildTimeChanged) {
|
|
84
|
+
this.context.cleanUp();
|
|
85
|
+
preferencesManager.putSync('packageVersion', packageVersion);
|
|
86
|
+
preferencesManager.putSync('buildTime', buildTime);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (isFirstTime) {
|
|
90
|
+
preferencesManager.deleteSync('isFirstTime');
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if (rolledBackVersion) {
|
|
94
|
+
preferencesManager.deleteSync('rolledBackVersion');
|
|
95
|
+
}
|
|
96
|
+
|
|
33
97
|
return {
|
|
34
|
-
downloadRootDir:
|
|
98
|
+
downloadRootDir: `${context.filesDir}/_update`,
|
|
35
99
|
currentVersionInfo,
|
|
36
|
-
packageVersion
|
|
100
|
+
packageVersion,
|
|
37
101
|
currentVersion,
|
|
38
|
-
buildTime
|
|
39
|
-
isUsingBundleUrl
|
|
102
|
+
buildTime,
|
|
103
|
+
isUsingBundleUrl,
|
|
40
104
|
isFirstTime,
|
|
41
105
|
rolledBackVersion,
|
|
42
106
|
uuid,
|
|
@@ -1,135 +1,50 @@
|
|
|
1
1
|
import preferences from '@ohos.data.preferences';
|
|
2
2
|
import bundleManager from '@ohos.bundle.bundleManager';
|
|
3
3
|
import fileIo from '@ohos.file.fs';
|
|
4
|
-
import common from '@ohos.app.ability.common';
|
|
5
|
-
import { util } from '@kit.ArkTS';
|
|
6
4
|
import { DownloadTask } from './DownloadTask';
|
|
5
|
+
import common from '@ohos.app.ability.common';
|
|
7
6
|
import { DownloadTaskParams } from './DownloadTaskParams';
|
|
8
7
|
|
|
9
|
-
type LaunchMarks = {
|
|
10
|
-
isFirstTime: boolean;
|
|
11
|
-
rolledBackVersion: string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
8
|
export class UpdateContext {
|
|
15
|
-
private static instances: Map<string, UpdateContext> = new Map();
|
|
16
|
-
private static isUsingBundleUrl: boolean = false;
|
|
17
|
-
private static ignoreRollbackInCurrentProcess: boolean = false;
|
|
18
|
-
|
|
19
|
-
static getInstance(context: common.UIAbilityContext): UpdateContext {
|
|
20
|
-
const key = context.filesDir;
|
|
21
|
-
const cached = UpdateContext.instances.get(key);
|
|
22
|
-
if (cached) {
|
|
23
|
-
return cached;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const instance = new UpdateContext(context);
|
|
27
|
-
UpdateContext.instances.set(key, instance);
|
|
28
|
-
return instance;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
9
|
private context: common.UIAbilityContext;
|
|
32
10
|
private rootDir: string;
|
|
33
11
|
private preferences: preferences.Preferences;
|
|
12
|
+
private static DEBUG: boolean = false;
|
|
13
|
+
private static isUsingBundleUrl: boolean = false;
|
|
34
14
|
|
|
35
|
-
|
|
15
|
+
constructor(context: common.UIAbilityContext) {
|
|
36
16
|
this.context = context;
|
|
37
|
-
this.rootDir =
|
|
38
|
-
this.ensureRootDir();
|
|
39
|
-
this.initPreferences();
|
|
40
|
-
}
|
|
17
|
+
this.rootDir = context.filesDir + '/_update';
|
|
41
18
|
|
|
42
|
-
private ensureRootDir(): void {
|
|
43
19
|
try {
|
|
44
20
|
if (!fileIo.accessSync(this.rootDir)) {
|
|
45
21
|
fileIo.mkdirSync(this.rootDir);
|
|
46
22
|
}
|
|
47
|
-
} catch (
|
|
48
|
-
console.error('Failed to create root directory:',
|
|
23
|
+
} catch (e) {
|
|
24
|
+
console.error('Failed to create root directory:', e);
|
|
49
25
|
}
|
|
26
|
+
this.initPreferences();
|
|
50
27
|
}
|
|
51
28
|
|
|
52
|
-
private initPreferences()
|
|
29
|
+
private initPreferences() {
|
|
53
30
|
try {
|
|
54
31
|
this.preferences = preferences.getPreferencesSync(this.context, {
|
|
55
32
|
name: 'update',
|
|
56
33
|
});
|
|
57
|
-
|
|
58
34
|
const packageVersion = this.getPackageVersion();
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
!!storedBuildTime && buildTime !== storedBuildTime;
|
|
66
|
-
|
|
67
|
-
if (packageVersionChanged || buildTimeChanged) {
|
|
68
|
-
this.scheduleCleanUp();
|
|
35
|
+
const storedVersion = this.preferences.getSync('packageVersion', '');
|
|
36
|
+
if (!storedVersion) {
|
|
37
|
+
this.preferences.putSync('packageVersion', packageVersion);
|
|
38
|
+
this.preferences.flush();
|
|
39
|
+
} else if (storedVersion && packageVersion !== storedVersion) {
|
|
40
|
+
this.cleanUp();
|
|
69
41
|
this.preferences.clear();
|
|
70
|
-
UpdateContext.ignoreRollbackInCurrentProcess = false;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
let shouldFlush = packageVersionChanged || buildTimeChanged;
|
|
74
|
-
if (this.getStringPreference('packageVersion') !== packageVersion) {
|
|
75
42
|
this.preferences.putSync('packageVersion', packageVersion);
|
|
76
|
-
shouldFlush = true;
|
|
77
|
-
}
|
|
78
|
-
if (this.getStringPreference('buildTime') !== buildTime) {
|
|
79
|
-
this.preferences.putSync('buildTime', buildTime);
|
|
80
|
-
shouldFlush = true;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
if (shouldFlush) {
|
|
84
43
|
this.preferences.flush();
|
|
85
44
|
}
|
|
86
|
-
} catch (
|
|
87
|
-
console.error('Failed to init preferences:',
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private getStringPreference(key: string, fallback: string = ''): string {
|
|
92
|
-
const value = this.preferences.getSync(key, fallback);
|
|
93
|
-
if (typeof value === 'string') {
|
|
94
|
-
return value;
|
|
95
|
-
}
|
|
96
|
-
if (value === null || value === undefined) {
|
|
97
|
-
return fallback;
|
|
98
|
-
}
|
|
99
|
-
return String(value);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
private getBooleanPreference(
|
|
103
|
-
key: string,
|
|
104
|
-
fallback: boolean = false,
|
|
105
|
-
): boolean {
|
|
106
|
-
const value = this.preferences.getSync(key, fallback);
|
|
107
|
-
if (typeof value === 'boolean') {
|
|
108
|
-
return value;
|
|
109
|
-
}
|
|
110
|
-
if (typeof value === 'string') {
|
|
111
|
-
const normalized = value.trim().toLowerCase();
|
|
112
|
-
if (normalized === 'true') {
|
|
113
|
-
return true;
|
|
114
|
-
}
|
|
115
|
-
if (normalized === 'false' || normalized === '') {
|
|
116
|
-
return false;
|
|
117
|
-
}
|
|
45
|
+
} catch (e) {
|
|
46
|
+
console.error('Failed to init preferences:', e);
|
|
118
47
|
}
|
|
119
|
-
if (typeof value === 'number') {
|
|
120
|
-
return value !== 0;
|
|
121
|
-
}
|
|
122
|
-
return fallback;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
private scheduleCleanUp(): void {
|
|
126
|
-
void this.cleanUp().catch(error => {
|
|
127
|
-
console.error('Failed to clean up updates:', error);
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
public getRootDir(): string {
|
|
132
|
-
return this.rootDir;
|
|
133
48
|
}
|
|
134
49
|
|
|
135
50
|
public setKv(key: string, value: string): void {
|
|
@@ -138,62 +53,40 @@ export class UpdateContext {
|
|
|
138
53
|
}
|
|
139
54
|
|
|
140
55
|
public getKv(key: string): string {
|
|
141
|
-
return this.
|
|
56
|
+
return this.preferences.getSync(key, '') as string;
|
|
142
57
|
}
|
|
143
58
|
|
|
144
59
|
public isFirstTime(): boolean {
|
|
145
|
-
return this.
|
|
60
|
+
return this.preferences.getSync('firstTime', false) as boolean;
|
|
146
61
|
}
|
|
147
62
|
|
|
148
63
|
public rolledBackVersion(): string {
|
|
149
|
-
return this.
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
public consumeLaunchMarks(): LaunchMarks {
|
|
153
|
-
const marks = {
|
|
154
|
-
isFirstTime: this.getBooleanPreference('firstTimeMarked', false),
|
|
155
|
-
rolledBackVersion: this.rolledBackVersion(),
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
if (marks.isFirstTime) {
|
|
159
|
-
this.preferences.deleteSync('firstTimeMarked');
|
|
160
|
-
}
|
|
161
|
-
if (marks.rolledBackVersion) {
|
|
162
|
-
this.preferences.deleteSync('rolledBackVersion');
|
|
163
|
-
}
|
|
164
|
-
if (marks.isFirstTime || marks.rolledBackVersion) {
|
|
165
|
-
this.preferences.flush();
|
|
166
|
-
this.scheduleCleanUp();
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
return marks;
|
|
64
|
+
return this.preferences.getSync('rolledBackVersion', '') as string;
|
|
170
65
|
}
|
|
171
66
|
|
|
172
67
|
public markSuccess(): void {
|
|
173
68
|
this.preferences.putSync('firstTimeOk', true);
|
|
174
|
-
const lastVersion = this.
|
|
175
|
-
const
|
|
69
|
+
const lastVersion = this.preferences.getSync('lastVersion', '') as string;
|
|
70
|
+
const curVersion = this.preferences.getSync('currentVersion', '') as string;
|
|
176
71
|
|
|
177
|
-
if (lastVersion && lastVersion !==
|
|
72
|
+
if (lastVersion && lastVersion !== curVersion) {
|
|
178
73
|
this.preferences.deleteSync('lastVersion');
|
|
179
74
|
this.preferences.deleteSync(`hash_${lastVersion}`);
|
|
180
75
|
}
|
|
181
|
-
|
|
182
76
|
this.preferences.flush();
|
|
183
|
-
this.
|
|
77
|
+
this.cleanUp();
|
|
184
78
|
}
|
|
185
79
|
|
|
186
80
|
public clearFirstTime(): void {
|
|
187
81
|
this.preferences.putSync('firstTime', false);
|
|
188
|
-
this.preferences.deleteSync('firstTimeMarked');
|
|
189
82
|
this.preferences.flush();
|
|
190
|
-
this.
|
|
83
|
+
this.cleanUp();
|
|
191
84
|
}
|
|
192
85
|
|
|
193
86
|
public clearRollbackMark(): void {
|
|
194
|
-
this.preferences.
|
|
87
|
+
this.preferences.putSync('rolledBackVersion', null);
|
|
195
88
|
this.preferences.flush();
|
|
196
|
-
this.
|
|
89
|
+
this.cleanUp();
|
|
197
90
|
}
|
|
198
91
|
|
|
199
92
|
public async downloadFullUpdate(url: string, hash: string): Promise<void> {
|
|
@@ -206,9 +99,9 @@ export class UpdateContext {
|
|
|
206
99
|
params.unzipDirectory = `${this.rootDir}/${hash}`;
|
|
207
100
|
const downloadTask = new DownloadTask(this.context);
|
|
208
101
|
await downloadTask.execute(params);
|
|
209
|
-
} catch (
|
|
210
|
-
console.error('Failed to download full update:',
|
|
211
|
-
throw
|
|
102
|
+
} catch (e) {
|
|
103
|
+
console.error('Failed to download full update:', e);
|
|
104
|
+
throw e;
|
|
212
105
|
}
|
|
213
106
|
}
|
|
214
107
|
|
|
@@ -221,7 +114,7 @@ export class UpdateContext {
|
|
|
221
114
|
params.type = DownloadTaskParams.TASK_TYPE_PLAIN_DOWNLOAD;
|
|
222
115
|
params.url = url;
|
|
223
116
|
params.hash = hash;
|
|
224
|
-
params.targetFile =
|
|
117
|
+
params.targetFile = this.rootDir + '/' + fileName;
|
|
225
118
|
|
|
226
119
|
const downloadTask = new DownloadTask(this.context);
|
|
227
120
|
await downloadTask.execute(params);
|
|
@@ -258,10 +151,10 @@ export class UpdateContext {
|
|
|
258
151
|
params.unzipDirectory = `${this.rootDir}/${hash}`;
|
|
259
152
|
|
|
260
153
|
const downloadTask = new DownloadTask(this.context);
|
|
261
|
-
await downloadTask.execute(params);
|
|
262
|
-
} catch (
|
|
263
|
-
console.error('Failed to download package patch:',
|
|
264
|
-
throw
|
|
154
|
+
return await downloadTask.execute(params);
|
|
155
|
+
} catch (e) {
|
|
156
|
+
console.error('Failed to download package patch:', e);
|
|
157
|
+
throw e;
|
|
265
158
|
}
|
|
266
159
|
}
|
|
267
160
|
|
|
@@ -272,47 +165,33 @@ export class UpdateContext {
|
|
|
272
165
|
throw Error(`Bundle version ${hash} not found.`);
|
|
273
166
|
}
|
|
274
167
|
|
|
275
|
-
const lastVersion = this.
|
|
276
|
-
this.
|
|
168
|
+
const lastVersion = this.getKv('currentVersion');
|
|
169
|
+
this.setKv('currentVersion', hash);
|
|
277
170
|
if (lastVersion && lastVersion !== hash) {
|
|
278
|
-
this.
|
|
279
|
-
} else {
|
|
280
|
-
this.preferences.deleteSync('lastVersion');
|
|
171
|
+
this.setKv('lastVersion', lastVersion);
|
|
281
172
|
}
|
|
282
|
-
|
|
283
|
-
this.
|
|
284
|
-
this.
|
|
285
|
-
this.
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
console.error('Failed to switch version:', error);
|
|
290
|
-
throw error;
|
|
173
|
+
|
|
174
|
+
this.setKv('firstTime', 'true');
|
|
175
|
+
this.setKv('firstTimeOk', 'false');
|
|
176
|
+
this.setKv('rolledBackVersion', '');
|
|
177
|
+
} catch (e) {
|
|
178
|
+
console.error('Failed to switch version:', e);
|
|
179
|
+
throw e;
|
|
291
180
|
}
|
|
292
181
|
}
|
|
293
182
|
|
|
294
|
-
public getBundleUrl()
|
|
183
|
+
public getBundleUrl() {
|
|
295
184
|
UpdateContext.isUsingBundleUrl = true;
|
|
296
|
-
|
|
297
|
-
if (!
|
|
185
|
+
const currentVersion = this.getCurrentVersion();
|
|
186
|
+
if (!currentVersion) {
|
|
298
187
|
return '';
|
|
299
188
|
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
!UpdateContext.ignoreRollbackInCurrentProcess &&
|
|
305
|
-
!isFirstTime &&
|
|
306
|
-
!isFirstTimeOk
|
|
307
|
-
) {
|
|
308
|
-
version = this.rollBack();
|
|
309
|
-
} else if (isFirstTime && !UpdateContext.ignoreRollbackInCurrentProcess) {
|
|
310
|
-
UpdateContext.ignoreRollbackInCurrentProcess = true;
|
|
311
|
-
this.preferences.putSync('firstTime', false);
|
|
312
|
-
this.preferences.putSync('firstTimeMarked', true);
|
|
313
|
-
this.preferences.flush();
|
|
189
|
+
if (!this.isFirstTime()) {
|
|
190
|
+
if (!this.preferences.getSync('firstTimeOk', true)) {
|
|
191
|
+
return this.rollBack();
|
|
192
|
+
}
|
|
314
193
|
}
|
|
315
|
-
|
|
194
|
+
let version = currentVersion;
|
|
316
195
|
while (version) {
|
|
317
196
|
const bundleFile = `${this.rootDir}/${version}/bundle.harmony.js`;
|
|
318
197
|
try {
|
|
@@ -322,52 +201,38 @@ export class UpdateContext {
|
|
|
322
201
|
continue;
|
|
323
202
|
}
|
|
324
203
|
return bundleFile;
|
|
325
|
-
} catch (
|
|
326
|
-
console.error('Failed to access bundle file:',
|
|
204
|
+
} catch (e) {
|
|
205
|
+
console.error('Failed to access bundle file:', e);
|
|
327
206
|
version = this.rollBack();
|
|
328
207
|
}
|
|
329
208
|
}
|
|
330
|
-
|
|
331
209
|
return '';
|
|
332
210
|
}
|
|
333
211
|
|
|
334
|
-
|
|
212
|
+
getPackageVersion(): string {
|
|
213
|
+
let bundleFlags =
|
|
214
|
+
bundleManager.BundleFlag.GET_BUNDLE_INFO_WITH_REQUESTED_PERMISSION;
|
|
335
215
|
let packageVersion = '';
|
|
336
216
|
try {
|
|
337
|
-
const bundleInfo = bundleManager.getBundleInfoForSelfSync(
|
|
338
|
-
bundleManager.BundleFlag.GET_BUNDLE_INFO_WITH_REQUESTED_PERMISSION,
|
|
339
|
-
);
|
|
217
|
+
const bundleInfo = bundleManager.getBundleInfoForSelfSync(bundleFlags);
|
|
340
218
|
packageVersion = bundleInfo?.versionName || 'Unknown';
|
|
341
219
|
} catch (error) {
|
|
342
|
-
console.error('
|
|
220
|
+
console.error('获取包信息失败:', error);
|
|
343
221
|
}
|
|
344
222
|
return packageVersion;
|
|
345
223
|
}
|
|
346
224
|
|
|
347
|
-
public getBuildTime(): string {
|
|
348
|
-
try {
|
|
349
|
-
const content =
|
|
350
|
-
this.context.resourceManager.getRawFileContentSync('meta.json');
|
|
351
|
-
const metaData = JSON.parse(
|
|
352
|
-
new util.TextDecoder().decodeToString(content),
|
|
353
|
-
) as {
|
|
354
|
-
pushy_build_time?: string | number;
|
|
355
|
-
};
|
|
356
|
-
if (metaData.pushy_build_time !== undefined) {
|
|
357
|
-
return String(metaData.pushy_build_time);
|
|
358
|
-
}
|
|
359
|
-
} catch {}
|
|
360
|
-
return '';
|
|
361
|
-
}
|
|
362
|
-
|
|
363
225
|
public getCurrentVersion(): string {
|
|
364
|
-
|
|
226
|
+
const currentVersion = this.getKv('currentVersion');
|
|
227
|
+
return currentVersion;
|
|
365
228
|
}
|
|
366
229
|
|
|
367
230
|
private rollBack(): string {
|
|
368
|
-
const lastVersion = this.
|
|
369
|
-
const currentVersion = this.
|
|
370
|
-
|
|
231
|
+
const lastVersion = this.preferences.getSync('lastVersion', '') as string;
|
|
232
|
+
const currentVersion = this.preferences.getSync(
|
|
233
|
+
'currentVersion',
|
|
234
|
+
'',
|
|
235
|
+
) as string;
|
|
371
236
|
if (!lastVersion) {
|
|
372
237
|
this.preferences.deleteSync('currentVersion');
|
|
373
238
|
} else {
|
|
@@ -376,17 +241,16 @@ export class UpdateContext {
|
|
|
376
241
|
}
|
|
377
242
|
this.preferences.putSync('firstTimeOk', true);
|
|
378
243
|
this.preferences.putSync('firstTime', false);
|
|
379
|
-
this.preferences.deleteSync('firstTimeMarked');
|
|
380
244
|
this.preferences.putSync('rolledBackVersion', currentVersion);
|
|
381
245
|
this.preferences.flush();
|
|
382
246
|
return lastVersion;
|
|
383
247
|
}
|
|
384
248
|
|
|
385
|
-
public async cleanUp()
|
|
249
|
+
public async cleanUp() {
|
|
386
250
|
const params = new DownloadTaskParams();
|
|
387
251
|
params.type = DownloadTaskParams.TASK_TYPE_CLEANUP;
|
|
388
|
-
params.hash = this.
|
|
389
|
-
params.originHash = this.
|
|
252
|
+
params.hash = this.preferences.getSync('currentVersion', '') as string;
|
|
253
|
+
params.originHash = this.preferences.getSync('lastVersion', '') as string;
|
|
390
254
|
params.unzipDirectory = this.rootDir;
|
|
391
255
|
const downloadTask = new DownloadTask(this.context);
|
|
392
256
|
await downloadTask.execute(params);
|
package/harmony/pushy.har
CHANGED
|
Binary file
|
package/package.json
CHANGED