add missing React-RCTSettings (#51523)

Summary:
Added missing module React-RCTSettings to the Swift package.

This was found when testing intergrating with a bare bones React Native project.

## Changelog:

[IOS] [FIXED] - add missing React-RCTSettings to Swift package

Pull Request resolved: https://github.com/facebook/react-native/pull/51523

Test Plan: Run against a bare bones React Native project (not available in repo yet)

Reviewed By: rshest

Differential Revision: D75204445

Pulled By: cipolleschi

fbshipit-source-id: d9fcb27cc532846eece591152462ff9c88f82302
This commit is contained in:
Christian Falch
2025-05-22 05:48:04 -07:00
committed by Facebook GitHub Bot
parent 11b16ed95d
commit e40c1d265a
3 changed files with 11 additions and 0 deletions
+1
View File
@@ -127,6 +127,7 @@ vendor/
# Swift Package build folder
/packages/react-native/.build
/packages/react-native/.swiftpm
# @react-native/codegen
/packages/react-native/React/FBReactNativeSpec/
+9
View File
@@ -514,6 +514,13 @@ let reactRCTLinking = RNTarget(
dependencies: [.jsi, .reactTurboModuleCore]
)
let reactSettings = RNTarget(
name: .reactSettings,
path: "Libraries/Settings",
searchPaths: ["ReactCommon", ReactFBReactNativeSpecPath, FBLazyVectorPath],
dependencies: [.reactTurboModuleCore, .yoga]
)
let targets = [
reactDebug,
jsi,
@@ -567,6 +574,7 @@ let targets = [
reactFeatureflagsNativemodule,
reactNativeModuleDom,
reactAppDelegate,
reactSettings,
]
let package = Package(
@@ -646,6 +654,7 @@ extension String {
static let reactFeatureflagsNativemodule = "React-featureflagsnativemodule"
static let reactNativeModuleDom = "React-domnativemodule"
static let reactAppDelegate = "React-RCTAppDelegate"
static let reactSettings = "React-RCTSettings"
}
func relativeSearchPath(_ depth: Int, _ path: String) -> String {
+1
View File
@@ -156,6 +156,7 @@ async function main() {
link('Libraries/Blob', 'React');
link('Libraries/NativeAnimation', 'React');
link('Libraries/LinkingIOS', 'React');
link('Libraries/Settings', 'React');
link('ReactCommon/hermes', 'reacthermes');
link('ReactCommon/hermes', 'jsireact');