Skip to content

Commit b077dea

Browse files
Merge pull request #701 from WoLewicki/@wolewicki/use-frameworks-support
2 parents 3f571e7 + 5502c82 commit b077dea

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

ios/PLKFabricHelpers.h

+4
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@
55
#if __has_include(<rnplaidlink/react_native_plaid_link_sdk-Swift.h>)
66
#import <rnplaidlink/react_native_plaid_link_sdk-Swift.h>
77
#else
8+
#ifdef USE_FRAMEWORKS
9+
#import <react_native_plaid_link_sdk/react_native_plaid_link_sdk-Swift.h>
10+
#else
811
#import <react_native_plaid_link_sdk-Swift.h>
912
#endif
13+
#endif
1014

1115
// copied from RCTFollyConvert
1216
folly::dynamic PLKConvertIdToFollyDynamic(id json)

react-native-plaid-link-sdk.podspec

+7
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ Pod::Spec.new do |s|
2121
# we don't want this to be seen by Swift
2222
s.private_header_files = 'ios/PLKFabricHelpers.h'
2323

24+
if ENV['USE_FRAMEWORKS'] == '1'
25+
s.pod_target_xcconfig = {
26+
"OTHER_CFLAGS" => "$(inherited) -DUSE_FRAMEWORKS",
27+
"OTHER_CPLUSPLUSFLAGS" => "$(inherited) -DUSE_FRAMEWORKS",
28+
}
29+
end
30+
2431
if fabric_enabled
2532
install_modules_dependencies(s)
2633
else

0 commit comments

Comments
 (0)