Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ios/PLKFabricHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@
#if __has_include(<rnplaidlink/react_native_plaid_link_sdk-Swift.h>)
#import <rnplaidlink/react_native_plaid_link_sdk-Swift.h>
#else
#ifdef USE_FRAMEWORKS
#import <react_native_plaid_link_sdk/react_native_plaid_link_sdk-Swift.h>
#else
#import <react_native_plaid_link_sdk-Swift.h>
#endif
#endif

// copied from RCTFollyConvert
folly::dynamic PLKConvertIdToFollyDynamic(id json)
Expand Down
7 changes: 7 additions & 0 deletions react-native-plaid-link-sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ Pod::Spec.new do |s|
# we don't want this to be seen by Swift
s.private_header_files = 'ios/PLKFabricHelpers.h'

if ENV['USE_FRAMEWORKS'] == '1'
s.pod_target_xcconfig = {
"OTHER_CFLAGS" => "$(inherited) -DUSE_FRAMEWORKS",
"OTHER_CPLUSPLUSFLAGS" => "$(inherited) -DUSE_FRAMEWORKS",
}
end

if fabric_enabled
install_modules_dependencies(s)
else
Expand Down