2019-03-16 09:56:17 +03:00
|
|
|
|
# Copyright (c) Facebook, Inc. and its 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.
|
2021-04-15 23:29:06 +03:00
|
|
|
|
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
2019-03-16 09:56:17 +03:00
|
|
|
|
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'
|
2021-09-17 08:22:31 +03:00
|
|
|
|
folly_version = '2021.06.28.00-v2'
|
2020-12-22 19:33:56 +03:00
|
|
|
|
folly_dep_name = 'RCT-Folly/Fabric'
|
2019-03-16 09:56:17 +03:00
|
|
|
|
boost_compiler_flags = '-Wno-documentation'
|
2021-09-11 02:06:43 +03:00
|
|
|
|
react_native_path = ".."
|
2019-03-16 09:56:17 +03:00
|
|
|
|
|
|
|
|
|
Pod::Spec.new do |s|
|
|
|
|
|
s.name = "React-Fabric"
|
|
|
|
|
s.version = version
|
|
|
|
|
s.summary = "Fabric for React Native."
|
2020-02-25 00:06:47 +03:00
|
|
|
|
s.homepage = "https://reactnative.dev/"
|
2019-03-16 09:56:17 +03:00
|
|
|
|
s.license = package["license"]
|
|
|
|
|
s.author = "Facebook, Inc. and its affiliates"
|
2021-01-12 03:43:51 +03:00
|
|
|
|
s.platforms = { :ios => "11.0" }
|
2019-03-16 09:56:17 +03:00
|
|
|
|
s.source = source
|
|
|
|
|
s.source_files = "dummyFile.cpp"
|
|
|
|
|
s.pod_target_xcconfig = { "USE_HEADERMAP" => "YES",
|
2021-04-01 14:49:14 +03:00
|
|
|
|
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17" }
|
2019-03-16 09:56:17 +03:00
|
|
|
|
|
|
|
|
|
s.dependency folly_dep_name, folly_version
|
|
|
|
|
s.dependency "React-graphics", version
|
|
|
|
|
s.dependency "React-jsiexecutor", version
|
2019-09-12 14:15:31 +03:00
|
|
|
|
s.dependency "RCTRequired", version
|
|
|
|
|
s.dependency "RCTTypeSafety", version
|
|
|
|
|
s.dependency "ReactCommon/turbomodule/core", version
|
Fix Cocoapods builds
Summary:
## Problem
For some reason, D20831545 broke the `use_frameworks!` build of RNTester.
## Building RNTester
```
pushd ~/fbsource/xplat/js/react-native-github/RNTester && USE_FRAMEWORKS=1 pod install && open RNTesterPods.xcworkspace && popd;
```
## Error
I built RNTester locally, and the error was this:
```
Undefined symbols for architecture x86_64:
"facebook::jsi::HostObject::set(facebook::jsi::Runtime&, facebook::jsi::PropNameID const&, facebook::jsi::Value const&)", referenced from:
vtable for facebook::react::ObjCTurboModule in RCTImageEditingManager.o
vtable for facebook::react::ObjCTurboModule in RCTImageLoader.o
vtable for facebook::react::ObjCTurboModule in RCTImageStoreManager.o
"facebook::jsi::HostObject::getPropertyNames(facebook::jsi::Runtime&)", referenced from:
vtable for facebook::react::ObjCTurboModule in RCTImageEditingManager.o
vtable for facebook::react::ObjCTurboModule in RCTImageLoader.o
vtable for facebook::react::ObjCTurboModule in RCTImageStoreManager.o
ld: symbol(s) not found for architecture x86_64
```
## Fix
It looked like libraries that depend on "ReactCommon/turbomodule/core" weren't linking to JSI correctly. So, I modified all such Podspecs to also depend on "React-jsi":
```
arc rfr ' s.dependency "ReactCommon/turbomodule/core", version' ' s.dependency "ReactCommon/turbomodule/core", version\n s.dependency "React-jsi", version'
```
This seemed to do the trick. In buck, we'd fix this problem using exported_dependencies. I skimmed through cocoapods, and couldn't find such a configuration option there. So, I guess this will have to do?
Changelog:
[iOS][Fixed] - Fix Cocoapods builds of RNTester
Reviewed By: fkgozali, hramos
Differential Revision: D20905465
fbshipit-source-id: 60218c8274ec165752a428f2a7a9a546607c8fec
2020-04-08 05:04:25 +03:00
|
|
|
|
s.dependency "React-jsi", version
|
2019-03-16 09:56:17 +03:00
|
|
|
|
|
2020-12-22 19:33:56 +03:00
|
|
|
|
s.subspec "animations" do |ss|
|
|
|
|
|
ss.dependency folly_dep_name, folly_version
|
|
|
|
|
ss.compiler_flags = folly_compiler_flags
|
|
|
|
|
ss.source_files = "react/renderer/animations/**/*.{m,mm,cpp,h}"
|
|
|
|
|
ss.exclude_files = "react/renderer/animations/tests"
|
|
|
|
|
ss.header_dir = "react/renderer/animations"
|
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
|
|
|
|
end
|
|
|
|
|
|
2019-03-16 09:56:17 +03:00
|
|
|
|
s.subspec "attributedstring" do |ss|
|
|
|
|
|
ss.dependency folly_dep_name, folly_version
|
|
|
|
|
ss.compiler_flags = folly_compiler_flags
|
2020-12-22 19:33:56 +03:00
|
|
|
|
ss.source_files = "react/renderer/attributedstring/**/*.{m,mm,cpp,h}"
|
|
|
|
|
ss.exclude_files = "react/renderer/attributedstring/tests"
|
|
|
|
|
ss.header_dir = "react/renderer/attributedstring"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2019-03-16 09:56:17 +03:00
|
|
|
|
end
|
|
|
|
|
|
2021-12-21 09:23:18 +03:00
|
|
|
|
s.subspec "butter" do |ss|
|
2019-03-16 09:56:17 +03:00
|
|
|
|
ss.dependency folly_dep_name, folly_version
|
|
|
|
|
ss.compiler_flags = folly_compiler_flags
|
2021-12-21 09:23:18 +03:00
|
|
|
|
ss.source_files = "butter/**/*.{m,mm,cpp,h}"
|
|
|
|
|
ss.exclude_files = "butter/tests"
|
|
|
|
|
ss.header_dir = "butter"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2019-03-16 09:56:17 +03:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
s.subspec "config" do |ss|
|
2020-12-22 19:33:56 +03:00
|
|
|
|
ss.source_files = "react/config/*.{m,mm,cpp,h}"
|
2019-03-16 09:56:17 +03:00
|
|
|
|
ss.header_dir = "react/config"
|
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\"" }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
s.subspec "core" do |ss|
|
|
|
|
|
ss.dependency folly_dep_name, folly_version
|
|
|
|
|
ss.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
|
2020-12-22 19:33:56 +03:00
|
|
|
|
ss.source_files = "react/renderer/core/**/*.{m,mm,cpp,h}"
|
|
|
|
|
ss.exclude_files = "react/renderer/core/tests"
|
|
|
|
|
ss.header_dir = "react/renderer/core"
|
2021-07-17 01:11:34 +03:00
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2019-03-16 09:56:17 +03:00
|
|
|
|
end
|
|
|
|
|
|
2020-12-22 19:33:56 +03:00
|
|
|
|
s.subspec "componentregistry" do |ss|
|
|
|
|
|
ss.dependency folly_dep_name, folly_version
|
|
|
|
|
ss.compiler_flags = folly_compiler_flags
|
|
|
|
|
ss.source_files = "react/renderer/componentregistry/**/*.{m,mm,cpp,h}"
|
|
|
|
|
ss.header_dir = "react/renderer/componentregistry"
|
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
|
|
|
|
end
|
|
|
|
|
|
2021-03-15 13:36:06 +03:00
|
|
|
|
s.subspec "componentregistrynative" do |ss|
|
|
|
|
|
ss.dependency folly_dep_name, folly_version
|
|
|
|
|
ss.compiler_flags = folly_compiler_flags
|
|
|
|
|
ss.source_files = "react/renderer/componentregistry/native/**/*.{m,mm,cpp,h}"
|
|
|
|
|
ss.header_dir = "react/renderer/componentregistry/native"
|
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
|
|
|
|
end
|
|
|
|
|
|
2019-03-16 09:56:17 +03:00
|
|
|
|
s.subspec "components" do |ss|
|
|
|
|
|
ss.subspec "activityindicator" do |sss|
|
|
|
|
|
sss.dependency folly_dep_name, folly_version
|
|
|
|
|
sss.compiler_flags = folly_compiler_flags
|
2020-12-22 19:33:56 +03:00
|
|
|
|
sss.source_files = "react/renderer/components/activityindicator/**/*.{m,mm,cpp,h}"
|
|
|
|
|
sss.exclude_files = "react/renderer/components/activityindicator/tests"
|
|
|
|
|
sss.header_dir = "react/renderer/components/activityindicator"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
sss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2019-03-16 09:56:17 +03:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
ss.subspec "image" do |sss|
|
|
|
|
|
sss.dependency folly_dep_name, folly_version
|
|
|
|
|
sss.compiler_flags = folly_compiler_flags
|
2020-12-22 19:33:56 +03:00
|
|
|
|
sss.source_files = "react/renderer/components/image/**/*.{m,mm,cpp,h}"
|
|
|
|
|
sss.exclude_files = "react/renderer/components/image/tests"
|
|
|
|
|
sss.header_dir = "react/renderer/components/image"
|
|
|
|
|
sss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
ss.subspec "inputaccessory" do |sss|
|
|
|
|
|
sss.dependency folly_dep_name, folly_version
|
|
|
|
|
sss.compiler_flags = folly_compiler_flags
|
|
|
|
|
sss.source_files = "react/renderer/components/inputaccessory/**/*.{m,mm,cpp,h}"
|
|
|
|
|
sss.exclude_files = "react/renderer/components/inputaccessory/tests"
|
|
|
|
|
sss.header_dir = "react/renderer/components/inputaccessory"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
sss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2019-03-16 09:56:17 +03:00
|
|
|
|
end
|
|
|
|
|
|
2020-06-12 20:48:25 +03:00
|
|
|
|
ss.subspec "legacyviewmanagerinterop" do |sss|
|
|
|
|
|
sss.dependency folly_dep_name, folly_version
|
|
|
|
|
sss.compiler_flags = folly_compiler_flags
|
2020-12-22 19:33:56 +03:00
|
|
|
|
sss.source_files = "react/renderer/components/legacyviewmanagerinterop/**/*.{m,mm,cpp,h}"
|
|
|
|
|
sss.exclude_files = "react/renderer/components/legacyviewmanagerinterop/tests"
|
|
|
|
|
sss.header_dir = "react/renderer/components/legacyviewmanagerinterop"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
sss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/Headers/Private/React-Core\"" }
|
2020-06-12 20:48:25 +03:00
|
|
|
|
end
|
|
|
|
|
|
2019-09-12 14:15:31 +03:00
|
|
|
|
ss.subspec "modal" do |sss|
|
|
|
|
|
sss.dependency folly_dep_name, folly_version
|
|
|
|
|
sss.compiler_flags = folly_compiler_flags
|
2020-12-22 19:33:56 +03:00
|
|
|
|
sss.source_files = "react/renderer/components/modal/**/*.{m,mm,cpp,h}"
|
|
|
|
|
sss.exclude_files = "react/renderer/components/modal/tests"
|
|
|
|
|
sss.header_dir = "react/renderer/components/modal"
|
|
|
|
|
sss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
|
|
|
|
end
|
|
|
|
|
|
2019-03-16 09:56:17 +03:00
|
|
|
|
ss.subspec "root" do |sss|
|
|
|
|
|
sss.dependency folly_dep_name, folly_version
|
|
|
|
|
sss.compiler_flags = folly_compiler_flags
|
2020-12-22 19:33:56 +03:00
|
|
|
|
sss.source_files = "react/renderer/components/root/**/*.{m,mm,cpp,h}"
|
|
|
|
|
sss.exclude_files = "react/renderer/components/root/tests"
|
|
|
|
|
sss.header_dir = "react/renderer/components/root"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
sss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2019-03-16 09:56:17 +03:00
|
|
|
|
end
|
|
|
|
|
|
2020-06-12 20:48:25 +03:00
|
|
|
|
ss.subspec "safeareaview" do |sss|
|
|
|
|
|
sss.dependency folly_dep_name, folly_version
|
|
|
|
|
sss.compiler_flags = folly_compiler_flags
|
2020-12-22 19:33:56 +03:00
|
|
|
|
sss.source_files = "react/renderer/components/safeareaview/**/*.{m,mm,cpp,h}"
|
|
|
|
|
sss.exclude_files = "react/renderer/components/safeareaview/tests"
|
|
|
|
|
sss.header_dir = "react/renderer/components/safeareaview"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
sss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2020-06-12 20:48:25 +03:00
|
|
|
|
end
|
|
|
|
|
|
2019-03-16 09:56:17 +03:00
|
|
|
|
ss.subspec "scrollview" do |sss|
|
|
|
|
|
sss.dependency folly_dep_name, folly_version
|
|
|
|
|
sss.compiler_flags = folly_compiler_flags
|
2020-12-22 19:33:56 +03:00
|
|
|
|
sss.source_files = "react/renderer/components/scrollview/**/*.{m,mm,cpp,h}"
|
|
|
|
|
sss.exclude_files = "react/renderer/components/scrollview/tests"
|
|
|
|
|
sss.header_dir = "react/renderer/components/scrollview"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
sss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2019-03-16 09:56:17 +03:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
ss.subspec "slider" do |sss|
|
|
|
|
|
sss.dependency folly_dep_name, folly_version
|
|
|
|
|
sss.compiler_flags = folly_compiler_flags
|
2020-12-22 19:33:56 +03:00
|
|
|
|
sss.source_files = "react/renderer/components/slider/**/*.{m,mm,cpp,h}"
|
|
|
|
|
sss.exclude_files = "react/renderer/components/slider/tests/**/*",
|
|
|
|
|
"react/renderer/components/slider/platform/android"
|
|
|
|
|
sss.header_dir = "react/renderer/components/slider"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
sss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2019-03-16 09:56:17 +03:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
ss.subspec "text" do |sss|
|
|
|
|
|
sss.dependency folly_dep_name, folly_version
|
|
|
|
|
sss.compiler_flags = folly_compiler_flags
|
2020-12-22 19:33:56 +03:00
|
|
|
|
sss.source_files = "react/renderer/components/text/**/*.{m,mm,cpp,h}"
|
|
|
|
|
sss.exclude_files = "react/renderer/components/text/tests"
|
|
|
|
|
sss.header_dir = "react/renderer/components/text"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
sss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2019-03-16 09:56:17 +03:00
|
|
|
|
end
|
|
|
|
|
|
2020-06-12 20:48:25 +03:00
|
|
|
|
ss.subspec "textinput" do |sss|
|
|
|
|
|
sss.dependency folly_dep_name, folly_version
|
|
|
|
|
sss.compiler_flags = folly_compiler_flags
|
2020-12-22 19:33:56 +03:00
|
|
|
|
sss.source_files = "react/renderer/components/textinput/iostextinput/**/*.{m,mm,cpp,h}"
|
|
|
|
|
sss.exclude_files = "react/renderer/components/textinput/iostextinput/tests"
|
|
|
|
|
sss.header_dir = "react/renderer/components/iostextinput"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
sss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2020-06-12 20:48:25 +03:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
ss.subspec "unimplementedview" do |sss|
|
|
|
|
|
sss.dependency folly_dep_name, folly_version
|
|
|
|
|
sss.compiler_flags = folly_compiler_flags
|
2020-12-22 19:33:56 +03:00
|
|
|
|
sss.source_files = "react/renderer/components/unimplementedview/**/*.{m,mm,cpp,h}"
|
|
|
|
|
sss.exclude_files = "react/renderer/components/unimplementedview/tests"
|
|
|
|
|
sss.header_dir = "react/renderer/components/unimplementedview"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
sss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2020-06-12 20:48:25 +03:00
|
|
|
|
end
|
|
|
|
|
|
2019-03-16 09:56:17 +03:00
|
|
|
|
ss.subspec "view" do |sss|
|
|
|
|
|
sss.dependency folly_dep_name, folly_version
|
2019-10-10 17:32:55 +03:00
|
|
|
|
sss.dependency "Yoga"
|
2019-03-16 09:56:17 +03:00
|
|
|
|
sss.compiler_flags = folly_compiler_flags
|
2020-12-22 19:33:56 +03:00
|
|
|
|
sss.source_files = "react/renderer/components/view/**/*.{m,mm,cpp,h}"
|
|
|
|
|
sss.exclude_files = "react/renderer/components/view/tests"
|
|
|
|
|
sss.header_dir = "react/renderer/components/view"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
sss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2019-03-16 09:56:17 +03:00
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
2021-02-18 04:57:43 +03:00
|
|
|
|
s.subspec "debug_core" do |ss|
|
|
|
|
|
ss.dependency folly_dep_name, folly_version
|
|
|
|
|
ss.compiler_flags = folly_compiler_flags
|
|
|
|
|
ss.source_files = "react/debug/**/*.{m,mm,cpp,h}"
|
|
|
|
|
ss.exclude_files = "react/debug/tests"
|
|
|
|
|
ss.header_dir = "react/debug"
|
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
s.subspec "debug_renderer" do |ss|
|
2019-03-16 09:56:17 +03:00
|
|
|
|
ss.dependency folly_dep_name, folly_version
|
|
|
|
|
ss.compiler_flags = folly_compiler_flags
|
2020-12-22 19:33:56 +03:00
|
|
|
|
ss.source_files = "react/renderer/debug/**/*.{m,mm,cpp,h}"
|
|
|
|
|
ss.exclude_files = "react/renderer/debug/tests"
|
|
|
|
|
ss.header_dir = "react/renderer/debug"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2019-03-16 09:56:17 +03:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
s.subspec "imagemanager" do |ss|
|
|
|
|
|
ss.dependency "React-RCTImage", version
|
|
|
|
|
ss.dependency folly_dep_name, folly_version
|
|
|
|
|
ss.compiler_flags = folly_compiler_flags
|
2020-12-22 19:33:56 +03:00
|
|
|
|
ss.source_files = "react/renderer/imagemanager/**/*.{m,mm,cpp,h}"
|
|
|
|
|
ss.exclude_files = "react/renderer/imagemanager/tests",
|
|
|
|
|
"react/renderer/imagemanager/platform/android",
|
|
|
|
|
"react/renderer/imagemanager/platform/cxx"
|
|
|
|
|
ss.header_dir = "react/renderer/imagemanager"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2019-03-16 09:56:17 +03:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
s.subspec "mounting" do |ss|
|
|
|
|
|
ss.dependency folly_dep_name, folly_version
|
|
|
|
|
ss.compiler_flags = folly_compiler_flags
|
2020-12-22 19:33:56 +03:00
|
|
|
|
ss.source_files = "react/renderer/mounting/**/*.{m,mm,cpp,h}"
|
|
|
|
|
ss.exclude_files = "react/renderer/mounting/tests"
|
|
|
|
|
ss.header_dir = "react/renderer/mounting"
|
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
s.subspec "scheduler" do |ss|
|
|
|
|
|
ss.dependency folly_dep_name, folly_version
|
|
|
|
|
ss.compiler_flags = folly_compiler_flags
|
|
|
|
|
ss.source_files = "react/renderer/scheduler/**/*.{m,mm,cpp,h}"
|
|
|
|
|
ss.header_dir = "react/renderer/scheduler"
|
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
s.subspec "templateprocessor" do |ss|
|
|
|
|
|
ss.dependency folly_dep_name, folly_version
|
|
|
|
|
ss.compiler_flags = folly_compiler_flags
|
|
|
|
|
ss.source_files = "react/renderer/templateprocessor/**/*.{m,mm,cpp,h}"
|
|
|
|
|
ss.exclude_files = "react/renderer/templateprocessor/tests"
|
|
|
|
|
ss.header_dir = "react/renderer/templateprocessor"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2019-03-16 09:56:17 +03:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
s.subspec "textlayoutmanager" do |ss|
|
|
|
|
|
ss.dependency folly_dep_name, folly_version
|
2020-12-22 19:33:56 +03:00
|
|
|
|
ss.dependency "React-Fabric/uimanager"
|
2019-03-16 09:56:17 +03:00
|
|
|
|
ss.compiler_flags = folly_compiler_flags
|
2020-12-22 19:33:56 +03:00
|
|
|
|
ss.source_files = "react/renderer/textlayoutmanager/platform/ios/**/*.{m,mm,cpp,h}",
|
|
|
|
|
"react/renderer/textlayoutmanager/*.{m,mm,cpp,h}"
|
|
|
|
|
ss.exclude_files = "react/renderer/textlayoutmanager/tests",
|
|
|
|
|
"react/renderer/textlayoutmanager/platform/android",
|
|
|
|
|
"react/renderer/textlayoutmanager/platform/cxx"
|
|
|
|
|
ss.header_dir = "react/renderer/textlayoutmanager"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2019-03-16 09:56:17 +03:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
s.subspec "uimanager" do |ss|
|
|
|
|
|
ss.dependency folly_dep_name, folly_version
|
|
|
|
|
ss.compiler_flags = folly_compiler_flags
|
2020-12-22 19:33:56 +03:00
|
|
|
|
ss.source_files = "react/renderer/uimanager/**/*.{m,mm,cpp,h}"
|
|
|
|
|
ss.exclude_files = "react/renderer/uimanager/tests"
|
|
|
|
|
ss.header_dir = "react/renderer/uimanager"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2019-03-16 09:56:17 +03:00
|
|
|
|
end
|
|
|
|
|
|
2021-03-29 15:11:13 +03:00
|
|
|
|
s.subspec "telemetry" do |ss|
|
|
|
|
|
ss.dependency folly_dep_name, folly_version
|
|
|
|
|
ss.compiler_flags = folly_compiler_flags
|
|
|
|
|
ss.source_files = "react/renderer/telemetry/**/*.{m,mm,cpp,h}"
|
|
|
|
|
ss.exclude_files = "react/renderer/telemetry/tests"
|
|
|
|
|
ss.header_dir = "react/renderer/telemetry"
|
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
|
|
|
|
end
|
|
|
|
|
|
2021-03-17 12:54:51 +03:00
|
|
|
|
s.subspec "leakchecker" do |ss|
|
|
|
|
|
ss.dependency folly_dep_name, folly_version
|
|
|
|
|
ss.compiler_flags = folly_compiler_flags
|
|
|
|
|
ss.source_files = "react/renderer/leakchecker/**/*.{cpp,h}"
|
|
|
|
|
ss.exclude_files = "react/renderer/leakchecker/tests"
|
|
|
|
|
ss.header_dir = "react/renderer/leakchecker"
|
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
|
|
|
|
end
|
|
|
|
|
|
2021-04-08 14:05:53 +03:00
|
|
|
|
s.subspec "runtimescheduler" do |ss|
|
|
|
|
|
ss.dependency folly_dep_name, folly_version
|
|
|
|
|
ss.compiler_flags = folly_compiler_flags
|
|
|
|
|
ss.source_files = "react/renderer/runtimescheduler/**/*.{cpp,h}"
|
|
|
|
|
ss.exclude_files = "react/renderer/runtimescheduler/tests"
|
|
|
|
|
ss.header_dir = "react/renderer/runtimescheduler"
|
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
|
|
|
|
end
|
|
|
|
|
|
2019-03-16 09:56:17 +03:00
|
|
|
|
s.subspec "utils" do |ss|
|
2020-12-22 19:33:56 +03:00
|
|
|
|
ss.source_files = "react/utils/*.{m,mm,cpp,h}"
|
2019-03-16 09:56:17 +03:00
|
|
|
|
ss.header_dir = "react/utils"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2019-03-16 09:56:17 +03:00
|
|
|
|
end
|
2021-09-11 02:06:43 +03:00
|
|
|
|
|
2019-03-16 09:56:17 +03:00
|
|
|
|
end
|