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.
|
|
|
|
|
source[:commit] = `git rev-parse HEAD`.strip
|
|
|
|
|
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'
|
2020-01-21 23:41:45 +03:00
|
|
|
|
folly_version = '2020.01.13.00'
|
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'
|
|
|
|
|
|
|
|
|
|
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"
|
remove most of tvOS remnants from the code (#29407)
Summary:
Refs: [0.62 release](https://reactnative.dev/blog/#moving-apple-tv-to-react-native-tvos), https://github.com/facebook/react-native/issues/28706, https://github.com/facebook/react-native/issues/28743, https://github.com/facebook/react-native/issues/29018
This PR removes most of the tvOS remnants in the code. Most of the changes are related to the tvOS platform removal from `.podspec` files, tvOS specific conditionals removal (Obj-C + JS) or tvOS CI/testing pipeline related code.
In addition to the changes listed above I have removed the deprecated `Platform.isTVOS` method. I'm not sure how `Platform.isTV` method is correlated with Android TV devices support which is technically not deprecated in the core so I left this method untouched for now.
## Changelog
<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://github.com/facebook/react-native/wiki/Changelog
-->
* **[Internal] [Removed]** - remove most of tvOS remnants from the code:
* `TVEventHandler`, `TVTouchable`, `RCTTVView`, `RCTTVRemoteHandler` and `RCTTVNavigationEventEmitter`
* **[Internal] [Removed]** - remove `TARGET_TV_OS` flag and all the usages
* **[iOS] [Removed]** - remove deprecated `Platform.isTVOS` method
* **[iOS] [Removed]** - remove deprecated and TV related props from View:
* `isTVSelectable`, `hasTVPreferredFocus` and `tvParallaxProperties`
* **[iOS] [Removed]** - remove `BackHandler` utility implementation
Pull Request resolved: https://github.com/facebook/react-native/pull/29407
Test Plan: Local tests (and iOS CI run) do not yield any errors, but I'm not sure how the CI pipeline would react to those changes. That is the reason why this PR is being posted as Draft. Some tweaks and code adjustment could be required.
Reviewed By: PeteTheHeat
Differential Revision: D22619441
Pulled By: shergin
fbshipit-source-id: 9aaf3840c5e8bd469c2cfcfa7c5b441ef71b30b6
2020-09-29 07:24:45 +03:00
|
|
|
|
s.platforms = { :ios => "10.0" }
|
2019-03-16 09:56:17 +03:00
|
|
|
|
s.source = source
|
|
|
|
|
s.source_files = "dummyFile.cpp"
|
|
|
|
|
s.library = "stdc++"
|
|
|
|
|
s.pod_target_xcconfig = { "USE_HEADERMAP" => "YES",
|
|
|
|
|
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14" }
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
s.subspec "better" do |ss|
|
|
|
|
|
ss.dependency folly_dep_name, folly_version
|
|
|
|
|
ss.compiler_flags = folly_compiler_flags
|
|
|
|
|
ss.source_files = "better/**/*.{m,mm,cpp,h}"
|
2020-12-22 19:33:56 +03:00
|
|
|
|
ss.exclude_files = "better/tests"
|
2019-03-16 09:56:17 +03:00
|
|
|
|
ss.header_dir = "better"
|
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"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost-for-react-native\" \"$(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
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
ss.subspec "picker" do |sss|
|
|
|
|
|
sss.dependency folly_dep_name, folly_version
|
|
|
|
|
sss.compiler_flags = folly_compiler_flags
|
|
|
|
|
sss.source_files = "react/renderer/components/picker/iospicker/**/*.{m,mm,cpp,h}"
|
|
|
|
|
sss.exclude_files = "react/renderer/components/picker/iospicker/tests"
|
|
|
|
|
sss.header_dir = "react/renderer/components/iospicker"
|
2020-08-27 11:16:30 +03:00
|
|
|
|
sss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" }
|
2019-09-12 14:15:31 +03:00
|
|
|
|
end
|
|
|
|
|
|
2019-03-16 09:56:17 +03:00
|
|
|
|
ss.subspec "rncore" 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/rncore/**/*.{m,mm,cpp,h}"
|
|
|
|
|
sss.exclude_files = "react/renderer/components/rncore/tests"
|
|
|
|
|
sss.header_dir = "react/renderer/components/rncore"
|
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 "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
|
|
|
|
|
|
|
|
|
|
s.subspec "debug" 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/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
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
end
|