Skip to content

Commit 693c5c2

Browse files
cipolleschifacebook-github-bot
authored andcommitted
Automate the download of ReactNativeDependencies (#51505)
Summary: Pull Request resolved: #51505 to simplify how we download and manage the `ReactNativeDependencies.xcframework`, we added a script that is specular to the `hermes.js` script to handle the download of ReactNativeDependencies. ## Changelog: [Internal] - Add script to automate the download of ReactNativeDependencies Reviewed By: mdvacca Differential Revision: D75151884
1 parent 52bcefd commit 693c5c2

File tree

3 files changed

+393
-1
lines changed

3 files changed

+393
-1
lines changed

packages/react-native/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ let reactRuntimeApple = RNTarget(
344344
name: .reactRuntimeApple,
345345
path: "ReactCommon/react/runtime/platform/ios",
346346
searchPaths: ["ReactCommon", RuntimeExecutorPath, CallInvokerPath, ReactFBReactNativeSpecPath, FBLazyVectorPath],
347-
excludedPaths: ["ReactCommon/RCTJscInstance.mm"],
347+
excludedPaths: ["ReactCommon/RCTJscInstance.mm", "ReactCommon/metainternal"],
348348
dependencies: [.reactNativeDependencies, .jsi, .reactPerfLogger, .reactCxxReact, .rctDeprecation, .yoga, .reactRuntime, .reactRCTFabric, .reactCoreModules, .reactTurboModuleCore, .hermesPrebuilt, .reactUtils]
349349
)
350350

packages/react-native/scripts/ios-prebuild.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
*/
1010

1111
const {prepareHermesArtifactsAsync} = require('./ios-prebuild/hermes');
12+
const {
13+
prepareReactNativeDependenciesArtifactsAsync,
14+
} = require('./ios-prebuild/reactNativeDependencies');
1215
const {
1316
createFolderIfNotExists,
1417
prebuildLog,
@@ -111,6 +114,8 @@ async function main() {
111114
// HERMES ARTIFACTS
112115
await prepareHermesArtifactsAsync(currentVersion, 'debug');
113116

117+
await prepareReactNativeDependenciesArtifactsAsync(currentVersion, 'debug');
118+
114119
// CODEGEN
115120
const codegenPath = path.join(root, '.build/codegen');
116121
createFolderIfNotExists(codegenPath);

0 commit comments

Comments
 (0)