Skip to content
Open
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
2 changes: 1 addition & 1 deletion ios/PCAppsFlyer.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#if __has_include(<PurchaseConnector/PurchaseConnector.h>)
#import <PurchaseConnector/PurchaseConnector.h>
#import <react_native_appsflyer-Swift.h>
#import <react_native_appsflyer/react_native_appsflyer-Swift.h>
Comment on lines 8 to +10
Copy link

Copilot AI Oct 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid build breakages across different CocoaPods configurations (e.g., static libraries vs. frameworks, modular headers off/on) and older plugin versions, guard the AppsFlyer Swift header with __has_include and provide a fallback to the previous include path. Example:
#if __has_include(<react_native_appsflyer/react_native_appsflyer-Swift.h>)
#import <react_native_appsflyer/react_native_appsflyer-Swift.h>
#elif __has_include(<react_native_appsflyer-Swift.h>)
#import <react_native_appsflyer-Swift.h>
#else
#warning "react_native_appsflyer Swift header not found"
#endif

Copilot uses AI. Check for mistakes.

@implementation PCAppsFlyer
@synthesize bridge = _bridge;
Expand Down