Skip to content

Commit

Permalink
Merge pull request #83 from rollbar/wj-compat-fixes
Browse files Browse the repository at this point in the history
Compatibility fixes
  • Loading branch information
waltjones authored Sep 13, 2019
2 parents 4ccc7cf + 8e24fe2 commit 72249b0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ios/RollbarReactNative.m
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ + (void)critical:(NSString*)message exception:(NSException*)exception data:(NSDi
config.endpoint = [RCTConvert NSString:options[@"endpoint"]];
}
if (options[@"logLevel"]) {
config.crashLevel = [RCTConvert NSString:options[@"endpoint"]];
config.crashLevel = [RCTConvert NSString:options[@"logLevel"]];
}
if (options[@"notifier"]) {
NSDictionary *notifierConfig = [RCTConvert NSDictionary:options[@"notifier"]];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"react-native": ">=0.50"
},
"dependencies": {
"buffer": "^5.0.7",
"buffer": "^4.9.1 || ^5.0.7",
"promise": "^8.0.1",
"rollbar": "^2.13.0",
"url": "^0.11.0"
Expand Down
10 changes: 10 additions & 0 deletions react-native.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
dependency: {
platforms: {
android: {
"packageInstance": "RollbarReactNative.getPackage()",
"packageImportPath": "import com.rollbar.RollbarReactNative;"
},
}
}
}

0 comments on commit 72249b0

Please sign in to comment.