Skip to content

Commit 906ad42

Browse files
ahood12kadikraman
authored andcommitted
Update AppAuth import (#245)
This fix allows AppAuth.h to be imported correctly with and without the `use_frameworks` flag set in `Podfile`
1 parent 727945d commit 906ad42

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ios/RNAppAuth.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#import "RNAppAuth.h"
2+
#if __has_include("<AppAuth/AppAuth.h>")
23
#import <AppAuth/AppAuth.h>
4+
#else
5+
#import "AppAuth.h"
6+
#endif
37
#import <React/RCTLog.h>
48
#import <React/RCTConvert.h>
59
#import "RNAppAuthAuthorizationFlowManager.h"

0 commit comments

Comments
 (0)