From 68bca1fbd042f87ec29b65abf8ebb3e4a8234bc1 Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Wed, 5 Jun 2019 05:08:59 -0700 Subject: [PATCH] Excluded tests file from JSI pod (#25151) Summary: Tests file exposed in https://github.com/facebook/react-native/commit/608b1b5ea2d9861816aaf3c4289e4316d9304b87. This break e2e tests, so let's excluded them from JSI pod. ## Changelog [iOS] [Fixed] - Excluded tests file from JSI pod Pull Request resolved: https://github.com/facebook/react-native/pull/25151 Differential Revision: D15645046 Pulled By: cpojer fbshipit-source-id: 19c712e4307cf712b8377d721661a2b476151732 --- ReactCommon/React-Fabric.podspec | 2 +- ReactCommon/jsi/React-jsi.podspec | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ReactCommon/React-Fabric.podspec b/ReactCommon/React-Fabric.podspec index 9fe685f5701..ea8116e2cec 100644 --- a/ReactCommon/React-Fabric.podspec +++ b/ReactCommon/React-Fabric.podspec @@ -69,7 +69,7 @@ Pod::Spec.new do |s| ss.dependency folly_dep_name, folly_version ss.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags ss.source_files = "fabric/core/**/*.{m,mm,cpp,h}" - ss.exclude_files = "**/tests/*" + ss.exclude_files = "**/tests/**/*" ss.header_dir = "react/core" ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/Folly\"" } end diff --git a/ReactCommon/jsi/React-jsi.podspec b/ReactCommon/jsi/React-jsi.podspec index 180905ca40b..0b0ff66eb58 100644 --- a/ReactCommon/jsi/React-jsi.podspec +++ b/ReactCommon/jsi/React-jsi.podspec @@ -31,6 +31,7 @@ Pod::Spec.new do |s| s.platforms = { :ios => "9.0", :tvos => "9.2" } s.source = source s.source_files = "**/*.{cpp,h}" + s.exclude_files = "**/test/*" s.framework = "JavaScriptCore" s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/Folly\"" }