-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Pull Request resolved: #38020 Add pods for bridgeless bypass-github-export-checks Changelog: [iOS][Added] - Add pods for bridgeless Reviewed By: cipolleschi Differential Revision: D46847632 fbshipit-source-id: d472c7b3bd790bb4565aa2c929116c74346e7913
- Loading branch information
1 parent
4960fe1
commit b06c2d7
Showing
17 changed files
with
587 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
require "json" | ||
|
||
package = JSON.parse(File.read(File.join(__dir__, "..", "package.json"))) | ||
version = package['version'] | ||
|
||
source = { :git => 'https://github.com/facebook/react-native.git' } | ||
if version == '1000.0.0' | ||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in. | ||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1") | ||
else | ||
source[:tag] = "v#{version}" | ||
end | ||
|
||
Pod::Spec.new do |s| | ||
s.name = "React-Mapbuffer" | ||
s.version = version | ||
s.summary = "-" | ||
s.homepage = "https://reactnative.dev/" | ||
s.license = package["license"] | ||
s.author = "Meta Platforms, Inc. and its affiliates" | ||
s.platforms = { :ios => min_ios_version_supported } | ||
s.source = source | ||
s.source_files = "react/renderer/mapbuffer/*.{cpp,h}" | ||
s.exclude_files = "react/renderer/mapbuffer/tests" | ||
s.public_header_files = 'react/renderer/mapbuffer/*.h' | ||
s.header_dir = "react/renderer/mapbuffer" | ||
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_CONFIGURATION_BUILD_DIR)/React-debug/React_debug.framework/Headers\"", "USE_HEADERMAP" => "YES", | ||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17" } | ||
|
||
if ENV['USE_FRAMEWORKS'] | ||
s.header_mappings_dir = './' | ||
s.module_name = 'React_Mapbuffer' | ||
end | ||
|
||
s.dependency "glog" | ||
s.dependency "React-debug" | ||
|
||
end |
35 changes: 35 additions & 0 deletions
35
packages/react-native/ReactCommon/React-nativeconfig.podspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
require "json" | ||
|
||
package = JSON.parse(File.read(File.join(__dir__, "..", "package.json"))) | ||
version = package['version'] | ||
|
||
source = { :git => 'https://github.com/facebook/react-native.git' } | ||
if version == '1000.0.0' | ||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in. | ||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1") | ||
else | ||
source[:tag] = "v#{version}" | ||
end | ||
|
||
Pod::Spec.new do |s| | ||
s.name = "React-nativeconfig" | ||
s.version = version | ||
s.summary = "-" | ||
s.homepage = "https://reactnative.dev/" | ||
s.license = package["license"] | ||
s.author = "Meta Platforms, Inc. and its affiliates" | ||
s.platforms = { :ios => min_ios_version_supported } | ||
s.source = source | ||
s.source_files = "react/config/*.{m,mm,cpp,h}" | ||
s.header_dir = "react/config" | ||
|
||
if ENV['USE_FRAMEWORKS'] | ||
s.header_mappings_dir = './' | ||
s.module_name = 'React_nativeconfig' | ||
end | ||
end |
41 changes: 41 additions & 0 deletions
41
packages/react-native/ReactCommon/hermes/executor/React-jsitracing.podspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
require "json" | ||
|
||
package = JSON.parse(File.read(File.join(__dir__, "../../..", "package.json"))) | ||
version = package['version'] | ||
|
||
source = { :git => 'https://github.com/facebook/react-native.git' } | ||
if version == '1000.0.0' | ||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in. | ||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1") | ||
else | ||
source[:tag] = "v#{version}" | ||
end | ||
|
||
Pod::Spec.new do |s| | ||
s.name = "React-jsitracing" | ||
s.version = version | ||
s.summary = "Bridgeless for React Native." | ||
s.homepage = "https://reactnative.dev/" | ||
s.license = package["license"] | ||
s.author = "Meta Platforms, Inc. and its affiliates" | ||
s.platforms = { :ios => min_ios_version_supported } | ||
s.source = source | ||
s.source_files = "JSITracing.{cpp,h}" | ||
s.header_dir = "." | ||
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"${PODS_TARGET_SRCROOT}/../..\"", | ||
"USE_HEADERMAP" => "YES", | ||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17", | ||
"GCC_WARN_PEDANTIC" => "YES" } | ||
|
||
if ENV['USE_FRAMEWORKS'] | ||
s.header_mappings_dir = './' | ||
s.module_name = 'React_jsitracing' | ||
end | ||
|
||
s.dependency "React-jsi" | ||
end |
49 changes: 49 additions & 0 deletions
49
packages/react-native/ReactCommon/jserrorhandler/React-jserrorhandler.podspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
require "json" | ||
|
||
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json"))) | ||
version = package['version'] | ||
|
||
source = { :git => 'https://github.com/facebook/react-native.git' } | ||
if version == '1000.0.0' | ||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in. | ||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1") | ||
else | ||
source[:tag] = "v#{version}" | ||
end | ||
|
||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments' | ||
folly_version = '2021.07.22.00' | ||
folly_dep_name = 'RCT-Folly/Fabric' | ||
boost_compiler_flags = '-Wno-documentation' | ||
react_native_path = ".." | ||
|
||
Pod::Spec.new do |s| | ||
s.name = "React-jserrorhandler" | ||
s.version = version | ||
s.summary = "-" | ||
s.homepage = "https://reactnative.dev/" | ||
s.license = package["license"] | ||
s.author = "Meta Platforms, Inc. and its affiliates" | ||
s.platforms = { :ios => min_ios_version_supported } | ||
s.source = source | ||
s.header_dir = "jserrorhandler" | ||
s.source_files = "JsErrorHandler.{cpp,h}" | ||
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"${PODS_CONFIGURATION_BUILD_DIR}/React-Mapbuffer/React_Mapbuffer.framework/Headers\" \"$(PODS_CONFIGURATION_BUILD_DIR)/React-debug/React_debug.framework/Headers\"", "USE_HEADERMAP" => "YES", | ||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17" } | ||
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags | ||
|
||
if ENV['USE_FRAMEWORKS'] | ||
s.header_mappings_dir = './' | ||
s.module_name = 'React_jserrorhandler' | ||
end | ||
|
||
s.dependency folly_dep_name, folly_version | ||
s.dependency "React-jsi", version | ||
s.dependency "React-Mapbuffer" | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
packages/react-native/ReactCommon/react/bridgeless/React-BridgelessApple.podspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
require "json" | ||
|
||
package = JSON.parse(File.read(File.join(__dir__, "../../..", "package.json"))) | ||
version = package['version'] | ||
|
||
source = { :git => 'https://github.com/facebook/react-native.git' } | ||
if version == '1000.0.0' | ||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in. | ||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1") | ||
else | ||
source[:tag] = "v#{version}" | ||
end | ||
|
||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments' | ||
folly_version = '2021.07.22.00' | ||
folly_dep_name = 'RCT-Folly/Fabric' | ||
boost_compiler_flags = '-Wno-documentation' | ||
|
||
Pod::Spec.new do |s| | ||
s.name = "React-BridgelessApple" | ||
s.version = version | ||
s.summary = "Bridgeless for React Native." | ||
s.homepage = "https://reactnative.dev/" | ||
s.license = package["license"] | ||
s.author = "Meta Platforms, Inc. and its affiliates" | ||
s.platforms = { :ios => min_ios_version_supported } | ||
s.source = source | ||
s.source_files = "platform/ios/**/*.{mm,h}" | ||
s.header_dir = "ReactCommon" | ||
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_TARGET_SRCROOT)/../..\" \"$(PODS_TARGET_SRCROOT)/../../..\"", | ||
"USE_HEADERMAP" => "YES", | ||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17", | ||
"GCC_WARN_PEDANTIC" => "YES" } | ||
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags | ||
|
||
if ENV['USE_FRAMEWORKS'] | ||
s.header_mappings_dir = './' | ||
s.module_name = 'React_BridgelessApple' | ||
end | ||
|
||
s.dependency folly_dep_name, folly_version | ||
s.dependency "React-jsiexecutor" | ||
s.dependency "React-cxxreact" | ||
s.dependency "React-callinvoker" | ||
s.dependency "React-runtimeexecutor" | ||
s.dependency "React-utils" | ||
s.dependency "React-jsi" | ||
s.dependency "React-Core/Default" | ||
s.dependency "React-CoreModules" | ||
s.dependency "React-NativeModulesApple" | ||
s.dependency "React-RCTFabric" | ||
s.dependency "React-BridgelessCore" | ||
s.dependency "React-BridgelessHermes" | ||
s.dependency "React-Mapbuffer" | ||
s.dependency "React-jserrorhandler" | ||
|
||
if ENV["USE_HERMES"] == nil || ENV["USE_HERMES"] == "1" | ||
s.dependency "hermes-engine" | ||
else | ||
s.dependency "React-jsi" | ||
end | ||
end |
62 changes: 62 additions & 0 deletions
62
packages/react-native/ReactCommon/react/bridgeless/React-BridgelessCore.podspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
require "json" | ||
|
||
package = JSON.parse(File.read(File.join(__dir__, "../../..", "package.json"))) | ||
version = package['version'] | ||
|
||
source = { :git => 'https://github.com/facebook/react-native.git' } | ||
if version == '1000.0.0' | ||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in. | ||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1") | ||
else | ||
source[:tag] = "v#{version}" | ||
end | ||
|
||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments' | ||
folly_version = '2021.07.22.00' | ||
folly_dep_name = 'RCT-Folly/Fabric' | ||
boost_compiler_flags = '-Wno-documentation' | ||
|
||
Pod::Spec.new do |s| | ||
s.name = "React-BridgelessCore" | ||
s.version = version | ||
s.summary = "Bridgeless for React Native." | ||
s.homepage = "https://reactnative.dev/" | ||
s.license = package["license"] | ||
s.author = "Meta Platforms, Inc. and its affiliates" | ||
s.platforms = { :ios => min_ios_version_supported } | ||
s.source = source | ||
s.source_files = "*.{cpp,h}", "nativeviewconfig/*.{cpp,h}" | ||
s.exclude_files = "iostests/*", "tests/**/*.{cpp,h}" | ||
s.header_dir = "react/bridgeless" | ||
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/Headers/Private/React-Core\" \"${PODS_TARGET_SRCROOT}/../..\"", | ||
"USE_HEADERMAP" => "YES", | ||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17", | ||
"GCC_WARN_PEDANTIC" => "YES" } | ||
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags | ||
|
||
if ENV['USE_FRAMEWORKS'] | ||
s.header_mappings_dir = './' | ||
s.module_name = 'React_BridgelessCore' | ||
end | ||
|
||
s.dependency folly_dep_name, folly_version | ||
s.dependency "React-jsiexecutor" | ||
s.dependency "React-cxxreact" | ||
s.dependency "React-runtimeexecutor" | ||
s.dependency "glog" | ||
s.dependency "React-jsi" | ||
s.dependency "React-jserrorhandler" | ||
s.dependency "React-runtimescheduler" | ||
|
||
if ENV["USE_HERMES"] == nil || ENV["USE_HERMES"] == "1" | ||
s.dependency "hermes-engine" | ||
else | ||
s.dependency "React-jsi" | ||
end | ||
|
||
end |
Oops, something went wrong.