Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ Pod::Spec.new do |s|
s.header_dir = "RCTActionSheet"

s.dependency "React-Core/RCTActionSheetHeaders", version

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,6 @@ Pod::Spec.new do |s|
depend_on_js_engine(s)
add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
2 changes: 2 additions & 0 deletions packages/react-native/Libraries/Blob/React-RCTBlob.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,6 @@ Pod::Spec.new do |s|

add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ Pod::Spec.new do |s|
s.source_files = podspec_sources("**/*.{c,h,m,mm,cpp}", "**/*.h")
s.header_dir = "FBLazyVector"

mark_as_react_native_build(s)
end
2 changes: 2 additions & 0 deletions packages/react-native/Libraries/Image/React-RCTImage.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ Pod::Spec.new do |s|

add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,6 @@ Pod::Spec.new do |s|
add_dependency(s, "React-RCTFBReactNativeSpec")
add_dependency(s, "ReactCommon", :subspec => "turbomodule/core", :additional_framework_paths => ["react/nativemodule/core"])
add_dependency(s, "React-NativeModulesApple", :additional_framework_paths => ["build/generated/ios"])

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,6 @@ Pod::Spec.new do |s|

add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ Pod::Spec.new do |s|

add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ Pod::Spec.new do |s|
add_dependency(s, "React-NativeModulesApple")

add_rncore_dependency(s)

mark_as_react_native_build(s)
end
2 changes: 2 additions & 0 deletions packages/react-native/Libraries/Required/RCTRequired.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ Pod::Spec.new do |s|
s.source = source
s.source_files = podspec_sources("**/*.{c,h,m,mm,cpp}", "**/*.h")
s.header_dir = "RCTRequired"

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ Pod::Spec.new do |s|

add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
2 changes: 2 additions & 0 deletions packages/react-native/Libraries/Text/React-RCTText.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ Pod::Spec.new do |s|

s.dependency "Yoga"
s.dependency "React-Core/RCTTextHeaders", version

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ Pod::Spec.new do |s|
s.dependency "FBLazyVector", version
s.dependency "RCTRequired", version
s.dependency "React-Core", version

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ Pod::Spec.new do |s|

add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
5 changes: 5 additions & 0 deletions packages/react-native/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,10 @@ extension Target {
CXXSetting.headerSearchPath(relativeSearchPath(numOfSlash + 1, ".build/headers/React")),
]

// Every target built through this factory is React Native's own, so RN_BUILDING
// keeps the react/cxxstableapi guards inert for internal sources. cxxSettings are
// per-target and are not inherited by packages that depend on React, so this does
// not exempt consumers from the guards.
let cxxSettings =
[
.unsafeFlags(["-std=c++20"]),
Expand All @@ -956,6 +960,7 @@ extension Target {
.define("USE_HERMES", to: "1"),
.define("RCT_REMOVE_LEGACY_ARCH", to: "1"),
.define("HERMES_V1_ENABLED", to: "1"),
.define("RN_BUILDING", to: "1"),
] + defines + cxxCommonHeaderPaths

return .target(
Expand Down
2 changes: 2 additions & 0 deletions packages/react-native/React-Core-prebuilt.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,6 @@ Pod::Spec.new do |s|

s.script_phase = script_phase
end

mark_as_react_native_build(s)
end
2 changes: 2 additions & 0 deletions packages/react-native/React-Core.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,6 @@ Pod::Spec.new do |s|
depend_on_js_engine(s)
add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
2 changes: 2 additions & 0 deletions packages/react-native/React.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,6 @@ Pod::Spec.new do |s|
s.dependency "React-RCTSettings", version
s.dependency "React-RCTText", version
s.dependency "React-RCTVibration", version

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,6 @@ Pod::Spec.new do |s|

add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,6 @@ fi
EOS
}
]

mark_as_react_native_build(s)
end
2 changes: 2 additions & 0 deletions packages/react-native/React/React-RCTFabric.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,6 @@ Pod::Spec.new do |s|
test_spec.source_files = podspec_sources("Tests/**/*.{mm}", "")
test_spec.framework = "XCTest"
end

mark_as_react_native_build(s)
end
2 changes: 2 additions & 0 deletions packages/react-native/React/Runtime/React-RCTRuntime.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,6 @@ Pod::Spec.new do |s|
depend_on_js_engine(s)
add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ add_react_third_party_ndk_subdir(fast_float)
add_react_third_party_ndk_subdir(fmt)
add_react_third_party_ndk_subdir(folly)

# Marks everything added below as React Native's own build, so the
# react/cxxstableapi guards let internal sources keep including the
# fine-grained headers they fence off from consumers. Deliberately declared
# after the third-party subdirectories so it never reaches them, and this
# project never compiles app or third-party module code (those build against
# the prefab artifacts through ReactNative-application.cmake).
add_compile_definitions(RN_BUILDING)

# Common targets
add_react_common_subdir(yoga)
add_react_common_subdir(runtimeexecutor)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ Pod::Spec.new do |s|
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard()
}
s.compiler_flags = "-Wnullable-to-nonnull-conversion -Wnullability-completeness"

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,6 @@ Pod::Spec.new do |s|
depend_on_js_engine(s)
add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ Pod::Spec.new do |s|
"DEFINES_MODULE" => "YES",
}

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ Pod::Spec.new do |s|
"SWIFT_VERSION" => "5.0",
}

mark_as_react_native_build(s)
end
2 changes: 2 additions & 0 deletions packages/react-native/ReactCommon/React-Fabric.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -236,4 +236,6 @@ Pod::Spec.new do |s|
ss.source_files = podspec_sources("react/renderer/viewtransition/**/*.{m,mm,cpp,h}", "react/renderer/viewtransition/**/*.h")
ss.header_dir = "react/renderer/viewtransition"
end

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,6 @@ Pod::Spec.new do |s|
"react/renderer/textlayoutmanager/platform/cxx"
ss.header_dir = "react/renderer/textlayoutmanager"
end

mark_as_react_native_build(s)
end
2 changes: 2 additions & 0 deletions packages/react-native/ReactCommon/React-FabricImage.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,6 @@ Pod::Spec.new do |s|
depend_on_js_engine(s)
add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
2 changes: 2 additions & 0 deletions packages/react-native/ReactCommon/React-Mapbuffer.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ Pod::Spec.new do |s|
add_dependency(s, "React-debug")
add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
2 changes: 2 additions & 0 deletions packages/react-native/ReactCommon/ReactCommon.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,6 @@ Pod::Spec.new do |s|
sss.dependency "React-utils", version
end
end

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ Pod::Spec.new do |s|
s.source = source
s.source_files = podspec_sources("**/*.{cpp,h}", "**/*.h")
s.header_dir = "ReactCommon"

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,6 @@ Pod::Spec.new do |s|

add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
2 changes: 2 additions & 0 deletions packages/react-native/ReactCommon/hermes/React-hermes.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,6 @@ Pod::Spec.new do |s|

add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ Pod::Spec.new do |s|
resolve_use_frameworks(s, header_mappings_dir: './', module_name: "React_jsitracing")

s.dependency "React-jsi"

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ Pod::Spec.new do |s|
add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
2 changes: 2 additions & 0 deletions packages/react-native/ReactCommon/jsi/React-jsi.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ Pod::Spec.new do |s|

add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,6 @@ Pod::Spec.new do |s|

add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,6 @@ Pod::Spec.new do |s|

add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,6 @@ Pod::Spec.new do |s|

add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ Pod::Spec.new do |s|

add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,6 @@ Pod::Spec.new do |s|

add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ Pod::Spec.new do |s|

add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
2 changes: 2 additions & 0 deletions packages/react-native/ReactCommon/logger/React-logger.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ Pod::Spec.new do |s|

add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ Pod::Spec.new do |s|
s.source_files = podspec_sources("*.{cpp,h}", "*.{h}")
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "" }
s.header_dir = "oscompat"

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ Pod::Spec.new do |s|

add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ Pod::Spec.new do |s|
"DEFINES_MODULE" => "YES" }

resolve_use_frameworks(s, header_mappings_dir: "../..", module_name: "React_cxxstableapi")

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ Pod::Spec.new do |s|
ss.exclude_files = "redbox/tests/**/*.{cpp,h}"
ss.header_dir = "react/debug/redbox"
end

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ Pod::Spec.new do |s|

add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,6 @@ Pod::Spec.new do |s|
depend_on_js_engine(s)
add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,6 @@ Pod::Spec.new do |s|
add_dependency(s, "React-RCTFBReactNativeSpec")
add_dependency(s, "React-featureflags")
add_dependency(s, "React-featureflagsnativemodule")

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ Pod::Spec.new do |s|
add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"])
add_dependency(s, "React-graphics", :additional_framework_paths => ["react/renderer/graphics/platform/ios"])
add_dependency(s, "React-RCTFBReactNativeSpec")

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ Pod::Spec.new do |s|
s.dependency "ReactCommon/turbomodule/core"
s.dependency "React-RCTFBReactNativeSpec"
s.dependency "React-featureflags"

mark_as_react_native_build(s)
end
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ Pod::Spec.new do |s|
add_dependency(s, "React-RCTFBReactNativeSpec")
add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"])

mark_as_react_native_build(s)
end
Loading
Loading