Skip to content

Commit

Permalink
Merge pull request #701 from WoLewicki/@wolewicki/use-frameworks-support
Browse files Browse the repository at this point in the history
  • Loading branch information
dtroupe-plaid authored Aug 23, 2024
2 parents 3f571e7 + 5502c82 commit b077dea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
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

0 comments on commit b077dea

Please sign in to comment.