Skip to content

Commit

Permalink
Merge pull request #88 from dozoisch/fix_imports_for_use_framework
Browse files Browse the repository at this point in the history
fix: build with use_framework within CocoaPods
  • Loading branch information
waltjones authored Nov 1, 2019
2 parents 9c1e233 + ccdf1d1 commit 98399b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/RollbarReactNative.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
#else
#import "RCTBridgeModule.h"
#endif
#if __has_include(<Rollbar/Rollbar.h>)
#import <Rollbar/Rollbar.h>
#else
#import "Rollbar.h"
#endif

@interface RollbarReactNative : NSObject <RCTBridgeModule>

Expand Down
4 changes: 4 additions & 0 deletions ios/RollbarReactNative.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#import "RollbarReactNative.h"
#if __has_include(<React/RCTConvert.h>)
#import <React/RCTConvert.h>
#else
#import "RCTConvert.h"
#endif

@implementation RollbarReactNative

Expand Down

0 comments on commit 98399b4

Please sign in to comment.