Skip to content

Commit 9454b03

Browse files
fix: Fix Swift File Support (#211)
1 parent 71af330 commit 9454b03

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ios/RNMParticle/RNMParticle.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
#else
77
#import "mParticle.h"
88
#endif
9+
#if defined(__has_include) && __has_include(<mParticle_Apple_SDK/mParticle_Apple_SDK-Swift.h>)
10+
#import <mParticle_Apple_SDK/mParticle_Apple_SDK-Swift.h>
11+
#elif defined(__has_include) && __has_include(<mParticle_Apple_SDK_NoLocation/mParticle_Apple_SDK-Swift.h>)
12+
#import <mParticle_Apple_SDK_NoLocation/mParticle_Apple_SDK-Swift.h>
13+
#else
14+
#import "mParticle_Apple_SDK-Swift.h"
15+
#endif
916
#import <React/RCTConvert.h>
1017

1118
@interface MParticleUser ()

0 commit comments

Comments
 (0)