Skip to content

Commit

Permalink
Merge pull request #496 from Ackuq/ackuq/fix/objective-c-imports
Browse files Browse the repository at this point in the history
fix: Import when using cocapods frameworks
  • Loading branch information
rlepinski authored Apr 6, 2023
2 parents 6733263 + f15e413 commit e99796b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ios/RTNAirship.mm
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
/* Copyright Airship and Contributors */

#import "RTNAirship.h"

#if __has_include(<react_native_airship/react_native_airship-Swift.h>)
#import <react_native_airship/react_native_airship-Swift.h>
#else
#import "react_native_airship-Swift.h"
#endif

@implementation RTNAirship
RCT_EXPORT_MODULE()
Expand Down
7 changes: 6 additions & 1 deletion ios/RTNAirshipBootloader.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
/* Copyright Airship and Contributors */

#import "RTNAirshipBootloader.h"
#import "react_nativE_airship-Swift.h"

#if __has_include(<react_native_airship/react_native_airship-Swift.h>)
#import <react_native_airship/react_native_airship-Swift.h>
#else
#import "react_native_airship-Swift.h"
#endif

@implementation RTNAirshipBootloader

Expand Down
5 changes: 5 additions & 0 deletions ios/RTNAirshipMessageView.mm
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
/* Copyright Airship and Contributors */

#import "RTNAirshipMessageView.h"

#if __has_include(<react_native_airship/react_native_airship-Swift.h>)
#import <react_native_airship/react_native_airship-Swift.h>
#else
#import "react_native_airship-Swift.h"
#endif

#ifdef RCT_NEW_ARCH_ENABLED
#import <React/RCTConversions.h>
Expand Down

0 comments on commit e99796b

Please sign in to comment.