We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47b88a1 commit 5b0eb51Copy full SHA for 5b0eb51
1 file changed
ios/PCAppsFlyer.m
@@ -7,7 +7,15 @@
7
8
#if __has_include(<PurchaseConnector/PurchaseConnector.h>)
9
#import <PurchaseConnector/PurchaseConnector.h>
10
+// Try modular import path first (for newer CocoaPods configurations)
11
+#if __has_include(<react_native_appsflyer/react_native_appsflyer-Swift.h>)
12
+#import <react_native_appsflyer/react_native_appsflyer-Swift.h>
13
+#elif __has_include(<react_native_appsflyer-Swift.h>)
14
+// Fallback to legacy import path (for older CocoaPods configurations)
15
#import <react_native_appsflyer-Swift.h>
16
+#else
17
+#warning "react_native_appsflyer Swift header not found"
18
+#endif
19
20
@implementation PCAppsFlyer
21
@synthesize bridge = _bridge;
0 commit comments