Skip to content

Commit

Permalink
patch-package
Browse files Browse the repository at this point in the history
  • Loading branch information
albho committed Jan 3, 2025
1 parent 77fa8a2 commit fedae2e
Show file tree
Hide file tree
Showing 3 changed files with 317 additions and 3 deletions.
4 changes: 3 additions & 1 deletion demo/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
"ios-run": "node scripts/run_demo.js run-ios",
"ios-link": "cd ios && pod install && cd ..",
"ios-install": "yarn && yarn ios-link",
"ios-bundle": "node scripts/run_demo.js bundle --dev false --platform ios --entry-file index.js --bundle-output ios/app.jsbundle"
"ios-bundle": "node scripts/run_demo.js bundle --dev false --platform ios --entry-file index.js --bundle-output ios/app.jsbundle",
"postinstall": "patch-package"
},
"dependencies": {
"@picovoice/leopard-react-native": "../../binding/react-native/pkg/picovoice-leopard-react-native-2.0.3.tgz",
"@picovoice/react-native-voice-processor": "1.2.3",
"@react-native-picker/picker": "^1.9.2",
"patch-package": "^8.0.0",
"react": "^17.0.2",
"react-native": "0.68.7",
"react-native-fs": "^2.20.0"
Expand Down
13 changes: 13 additions & 0 deletions demo/react-native/patches/react-native+0.68.7.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/react-native/third-party-podspecs/boost.podspec b/node_modules/react-native/third-party-podspecs/boost.podspec
index 2f1fcc4..2377c4e 100644
--- a/node_modules/react-native/third-party-podspecs/boost.podspec
+++ b/node_modules/react-native/third-party-podspecs/boost.podspec
@@ -10,7 +10,7 @@ Pod::Spec.new do |spec|
spec.homepage = 'http://www.boost.org'
spec.summary = 'Boost provides free peer-reviewed portable C++ source libraries.'
spec.authors = 'Rene Rivera'
- spec.source = { :http => 'https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2',
+ spec.source = { :http => 'https://sourceforge.net/projects/boost/files/boost/1.76.0/boost_1_76_0.tar.bz2',
:sha256 => 'f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41' }

# Pinning to the same version as React.podspec.
Loading

0 comments on commit fedae2e

Please sign in to comment.