Skip to content

Commit

Permalink
[LOCAL] properly support both libraries and use_frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccardo Cipolleschi committed Dec 13, 2022
1 parent ed16fdb commit 509c3be
Show file tree
Hide file tree
Showing 3 changed files with 2,344 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ReactCommon/ReactCommon.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ Pod::Spec.new do |s|
ss.subspec "core" do |sss|
sss.source_files = "react/nativemodule/core/ReactCommon/**/*.{cpp,h}",
"react/nativemodule/core/platform/ios/**/*.{mm,cpp,h}"
sss.exclude_files = "react/nativemodule/core/ReactCommon/{LongLivedObject,CallbackWrapper}.h"
excluded_files = ENV['USE_FRAMEWORKS'] == nil
? "react/nativemodule/core/ReactCommon/LongLivedObject.h"
: "react/nativemodule/core/ReactCommon/{LongLivedObject,CallbackWrapper}.h"
sss.exclude_files = excluded_files
end

s.subspec "react_debug_core" do |sss|
Expand Down
Loading

0 comments on commit 509c3be

Please sign in to comment.