Skip to content

Commit 509c3be

Browse files
author
Riccardo Cipolleschi
committed
[LOCAL] properly support both libraries and use_frameworks
1 parent ed16fdb commit 509c3be

File tree

3 files changed

+2344
-1
lines changed

3 files changed

+2344
-1
lines changed

ReactCommon/ReactCommon.podspec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ Pod::Spec.new do |s|
6161
ss.subspec "core" do |sss|
6262
sss.source_files = "react/nativemodule/core/ReactCommon/**/*.{cpp,h}",
6363
"react/nativemodule/core/platform/ios/**/*.{mm,cpp,h}"
64-
sss.exclude_files = "react/nativemodule/core/ReactCommon/{LongLivedObject,CallbackWrapper}.h"
64+
excluded_files = ENV['USE_FRAMEWORKS'] == nil
65+
? "react/nativemodule/core/ReactCommon/LongLivedObject.h"
66+
: "react/nativemodule/core/ReactCommon/{LongLivedObject,CallbackWrapper}.h"
67+
sss.exclude_files = excluded_files
6568
end
6669

6770
s.subspec "react_debug_core" do |sss|

0 commit comments

Comments
 (0)