From 7ee42b44277ff00c64e446125908e3324c3b9a8c Mon Sep 17 00:00:00 2001 From: Walt Jones Date: Fri, 13 Sep 2019 10:26:00 -0700 Subject: [PATCH 1/3] fix(ios): assign correct option for logLevel --- ios/RollbarReactNative.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RollbarReactNative.m b/ios/RollbarReactNative.m index 1c3eea1..9e4810b 100644 --- a/ios/RollbarReactNative.m +++ b/ios/RollbarReactNative.m @@ -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"]]; From 0f60b1e5b7a07113b0d30ebbd65692b442902595 Mon Sep 17 00:00:00 2001 From: Walt Jones Date: Fri, 13 Sep 2019 11:50:58 -0700 Subject: [PATCH 2/3] fix: allow buffer 4.x for android 8 compat --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 579e8bb..4cc42b9 100644 --- a/package.json +++ b/package.json @@ -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" From 8e24fe2db9e2466e5eddab1e473e1da8e71daa39 Mon Sep 17 00:00:00 2001 From: Walt Jones Date: Fri, 13 Sep 2019 15:37:58 -0700 Subject: [PATCH 3/3] fix: react-native cli >2.4.0 expects react-native.config.js --- react-native.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 react-native.config.js diff --git a/react-native.config.js b/react-native.config.js new file mode 100644 index 0000000..11955a6 --- /dev/null +++ b/react-native.config.js @@ -0,0 +1,10 @@ +module.exports = { + dependency: { + platforms: { + android: { + "packageInstance": "RollbarReactNative.getPackage()", + "packageImportPath": "import com.rollbar.RollbarReactNative;" + }, + } + } +}