react-native-update 10.21.1 → 10.22.1
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.
|
@@ -72,16 +72,18 @@ napi_value HdiffPatch(napi_env env, napi_callback_info info) {
|
|
|
72
72
|
// 创建结果buffer
|
|
73
73
|
napi_value resultBuffer;
|
|
74
74
|
uint8_t* outPtr;
|
|
75
|
-
|
|
75
|
+
void* data;
|
|
76
|
+
|
|
77
|
+
status = napi_create_arraybuffer(env, newsize, &data, &resultBuffer);
|
|
76
78
|
if (status != napi_ok) {
|
|
77
79
|
napi_throw_error(env, NULL, "Failed to create result buffer");
|
|
78
80
|
return NULL;
|
|
79
81
|
}
|
|
82
|
+
outPtr = (uint8_t*)data;
|
|
80
83
|
|
|
81
84
|
// 执行patch
|
|
82
85
|
_check(kHPatch_ok==hpatch_by_mem(originPtr, originLength, outPtr, newsize,
|
|
83
86
|
patchPtr, patchLength, &patInfo), "hpatch");
|
|
84
|
-
|
|
85
87
|
return resultBuffer;
|
|
86
88
|
|
|
87
89
|
_clear:
|
|
@@ -288,7 +288,9 @@ export class DownloadTask {
|
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
|
|
291
|
+
if(entry.filename !== '.DS_Store'){
|
|
292
|
+
await zip.decompressFile(entry.filename, params.unzipDirectory);
|
|
293
|
+
}
|
|
292
294
|
}
|
|
293
295
|
|
|
294
296
|
if (!foundDiff) {
|
package/package.json
CHANGED
|
@@ -4,6 +4,8 @@ new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
|
|
|
4
4
|
|
|
5
5
|
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
6
6
|
|
|
7
|
+
podspec_dir = File.dirname(__FILE__)
|
|
8
|
+
|
|
7
9
|
Pod::Spec.new do |s|
|
|
8
10
|
s.name = package['name']
|
|
9
11
|
s.version = package['version']
|
|
@@ -20,9 +22,12 @@ Pod::Spec.new do |s|
|
|
|
20
22
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
21
23
|
s.libraries = 'bz2', 'z'
|
|
22
24
|
s.vendored_libraries = 'RCTPushy/libRCTPushy.a'
|
|
23
|
-
s.pod_target_xcconfig = {
|
|
25
|
+
s.pod_target_xcconfig = {
|
|
26
|
+
'USER_HEADER_SEARCH_PATHS' => "#{podspec_dir}/ios",
|
|
27
|
+
"DEFINES_MODULE" => "YES"
|
|
28
|
+
}
|
|
24
29
|
s.resource = 'ios/pushy_build_time.txt'
|
|
25
|
-
s.script_phase = { :name => 'Generate build time', :script =>
|
|
30
|
+
s.script_phase = { :name => 'Generate build time', :script => "set -x;date +%s > \"#{podspec_dir}/ios/pushy_build_time.txt\"", :execution_position => :before_compile }
|
|
26
31
|
|
|
27
32
|
s.dependency 'React'
|
|
28
33
|
s.dependency "React-Core"
|
|
@@ -40,7 +45,7 @@ Pod::Spec.new do |s|
|
|
|
40
45
|
'android/jni/HDiffPatch/file_for_patch.{h,c}',
|
|
41
46
|
'android/jni/lzma/C/LzmaDec.{h,c}',
|
|
42
47
|
'android/jni/lzma/C/Lzma2Dec.{h,c}']
|
|
43
|
-
ss.
|
|
48
|
+
ss.public_header_files = 'ios/RCTPushy/HDiffPatch/**/*.h'
|
|
44
49
|
end
|
|
45
50
|
|
|
46
51
|
if defined?(install_modules_dependencies()) != nil
|