From 50d98a941c053a6f987ae92d36157f7e4afadada Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Fri, 9 Apr 2021 19:37:56 +0800 Subject: [PATCH] Add hdiffpatch subspec --- Example/testHotUpdate/ios/Podfile.lock | 6 +++++- package.json | 3 ++- react-native-update.podspec | 5 +++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Example/testHotUpdate/ios/Podfile.lock b/Example/testHotUpdate/ios/Podfile.lock index 94eebcf..1408733 100644 --- a/Example/testHotUpdate/ios/Podfile.lock +++ b/Example/testHotUpdate/ios/Podfile.lock @@ -266,11 +266,15 @@ PODS: - react-native-update (5.11.0-beta2): - React - react-native-update/BSDiff (= 5.11.0-beta2) + - react-native-update/HDiffPatch (= 5.11.0-beta2) - react-native-update/RCTPushy (= 5.11.0-beta2) - SSZipArchive - react-native-update/BSDiff (5.11.0-beta2): - React - SSZipArchive + - react-native-update/HDiffPatch (5.11.0-beta2): + - React + - SSZipArchive - react-native-update/RCTPushy (5.11.0-beta2): - React - SSZipArchive @@ -503,7 +507,7 @@ SPEC CHECKSUMS: React-jsi: 74341196d9547cbcbcfa4b3bbbf03af56431d5a1 React-jsiexecutor: 06a9c77b56902ae7ffcdd7a4905f664adc5d237b React-jsinspector: 0ae35a37b20d5e031eb020a69cc5afdbd6406301 - react-native-update: 57368bcb714d347147b87e520f596ca44ab1de52 + react-native-update: db9e97cda2a5158d7b526d930676b32fbb053f10 react-native-webview: 4e96d493f9f90ba4f03b28933f30b2964df07e39 React-perflogger: 9c547d8f06b9bf00cb447f2b75e8d7f19b7e02af React-RCTActionSheet: 3080b6e12e0e1a5b313c8c0050699b5c794a1b11 diff --git a/package.json b/package.json index 47cd26c..807d34f 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,9 @@ "description": "react-native hot update", "main": "lib/index.js", "scripts": { + "submodule": "git submodule update --init --recursive", "test": "echo \"Error: no test specified\" && exit 1", - "build-lib": "git submodule update --init --recursive && $ANDROID_HOME/ndk/20.1.5948944/ndk-build NDK_PROJECT_PATH=android APP_BUILD_SCRIPT=android/jni/Android.mk NDK_LIBS_OUT=android/lib" + "build-lib": "yarn submodule && $ANDROID_HOME/ndk/20.1.5948944/ndk-build NDK_PROJECT_PATH=android APP_BUILD_SCRIPT=android/jni/Android.mk NDK_LIBS_OUT=android/lib" }, "repository": { "type": "git", diff --git a/react-native-update.podspec b/react-native-update.podspec index 593e524..49fadd9 100644 --- a/react-native-update.podspec +++ b/react-native-update.podspec @@ -32,4 +32,9 @@ Pod::Spec.new do |s| ss.source_files = 'ios/RCTPushy/BSDiff/**/*.{h,m,c}' ss.private_header_files = 'ios/RCTPushy/BSDiff/**/*.h' end + + s.subspec 'HDiffPatch' do |ss| + ss.source_files = 'ios/RCTPushy/HDiffPatch/**/*.{h,m,c}' + ss.private_header_files = 'ios/RCTPushy/HDiffPatch/**/*.h' + end end