-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50ebe95
commit e125aec
Showing
2 changed files
with
65 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
diff --git a/node_modules/react-native-plaid-link-sdk/ios/PLKFabricHelpers.h b/node_modules/react-native-plaid-link-sdk/ios/PLKFabricHelpers.h | ||
index cf70d5e..4e34cd2 100644 | ||
--- a/node_modules/react-native-plaid-link-sdk/ios/PLKFabricHelpers.h | ||
+++ b/node_modules/react-native-plaid-link-sdk/ios/PLKFabricHelpers.h | ||
@@ -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) | ||
diff --git a/node_modules/react-native-plaid-link-sdk/react-native-plaid-link-sdk.podspec b/node_modules/react-native-plaid-link-sdk/react-native-plaid-link-sdk.podspec | ||
index 7c60081..4a13a3c 100644 | ||
--- a/node_modules/react-native-plaid-link-sdk/react-native-plaid-link-sdk.podspec | ||
+++ b/node_modules/react-native-plaid-link-sdk/react-native-plaid-link-sdk.podspec | ||
@@ -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 |