Skip to content

Commit 7d78e95

Browse files
author
AliAbdelfattah
authored
Merge pull request #364 from Instabug/fix/android-crash-reporting
Release/8.5.5
2 parents 411dfe3 + c5c8ee6 commit 7d78e95

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## v8.5.5 (2019-08-17)
2+
3+
* Fixes an issue with the email validation when reporting a bug on Android.
4+
* Fixes an issue with the crash reporting which prevented the report from being submitted on Android.
5+
16
## v8.5.4 (2019-08-10)
27

38
* Hot Fixes an issue with `Instabug.setFloatingButtonEdge` and `Instabug.setEnabledAttachmentTypes` causing the app to crash.

InstabugSample/__tests__/instabugUtils.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('Test global error handler', () => {
6161
Platform.OS = 'android';
6262
Instabug._isOnReportHandlerSet = jest.fn(() => true);
6363
const handler = global.ErrorUtils.getGlobalHandler();
64-
IBGEventEmitter.addListener(IBGConstants.SEND_UNHANDLED_CRASH, (actual) => {
64+
IBGEventEmitter.addListener(Instabug, IBGConstants.SEND_UNHANDLED_CRASH, (actual) => {
6565
const expected = {
6666
message: 'TypeError - This is a type error.',
6767
os: 'android',

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ android {
2727

2828
dependencies {
2929
implementation 'com.facebook.react:react-native:+'
30-
api('com.instabug.library:instabug:8.5.0.11') {
30+
api('com.instabug.library:instabug:8.5.0.17') {
3131
exclude group: 'com.android.support:appcompat-v7'
3232
}
3333
testImplementation 'org.mockito:mockito-core:1.10.19'

android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ public void setFileAttachment(String fileUri, String fileNameWithExtension) {
455455
public void sendJSCrash(String exceptionObject) {
456456
try {
457457
JSONObject jsonObject = new JSONObject(exceptionObject);
458-
sendJSCrashByReflection(jsonObject, false, null);
458+
sendJSCrashByReflection(jsonObject, false);
459459
} catch (Exception e) {
460460
e.printStackTrace();
461461
}
@@ -470,7 +470,7 @@ public void sendJSCrash(String exceptionObject) {
470470
public void sendHandledJSCrash(String exceptionObject) {
471471
try {
472472
JSONObject jsonObject = new JSONObject(exceptionObject);
473-
sendJSCrashByReflection(jsonObject, true, null);
473+
sendJSCrashByReflection(jsonObject, true);
474474
} catch (Exception e) {
475475
e.printStackTrace();
476476
}
@@ -494,11 +494,11 @@ public void setCrashReportingEnabled(boolean isEnabled) {
494494
}
495495
}
496496

497-
private void sendJSCrashByReflection(JSONObject exceptionObject, boolean isHandled, Report report) {
497+
private void sendJSCrashByReflection(JSONObject exceptionObject, boolean isHandled) {
498498
try {
499-
Method method = getMethod(Class.forName("com.instabug.crash.CrashReporting"), "reportException", JSONObject.class, boolean.class, Report.class);
499+
Method method = getMethod(Class.forName("com.instabug.crash.CrashReporting"), "reportException", JSONObject.class, boolean.class);
500500
if (method != null) {
501-
method.invoke(null, exceptionObject, isHandled, currentReport);
501+
method.invoke(null, exceptionObject, isHandled);
502502
currentReport = null;
503503
}
504504
} catch (ClassNotFoundException e) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "instabug-reactnative",
3-
"version": "8.5.4",
3+
"version": "8.5.5",
44
"description": "React Native plugin for integrating the Instabug SDK",
55
"main": "index.js",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)