|
34 | 34 | import com.instabug.library.InstabugColorTheme;
|
35 | 35 | import com.instabug.library.invocation.OnInvokeCallback;
|
36 | 36 | import com.instabug.library.invocation.util.InstabugVideoRecordingButtonCorner;
|
| 37 | +import com.instabug.library.invocation.util.InstabugVideoRecordingButtonPosition; |
37 | 38 | import com.instabug.library.logging.InstabugLog;
|
38 | 39 | import com.instabug.library.bugreporting.model.ReportCategory;
|
39 | 40 | import com.instabug.library.InstabugCustomTextPlaceHolder;
|
@@ -372,7 +373,7 @@ public void setViewHierarchyEnabled(boolean enabled) {
|
372 | 373 | @ReactMethod
|
373 | 374 | public void setVideoRecordingFloatingButtonPosition(String corner) {
|
374 | 375 | try {
|
375 |
| - BugReporting.setVideoRecordingFloatingButtonCorner(getVideoRecordingButtonCorner(corner)); |
| 376 | + BugReporting.setVideoRecordingFloatingButtonPosition(getVideoRecordingButtonCorner(corner)); |
376 | 377 | } catch (Exception e) {
|
377 | 378 | e.printStackTrace();
|
378 | 379 | }
|
@@ -1302,16 +1303,25 @@ public void onReportCreated(Report report) {
|
1302 | 1303 | @ReactMethod
|
1303 | 1304 | public void setPostInvocationHandler(final Callback postInvocationHandler) {
|
1304 | 1305 | try {
|
1305 |
| - BugReporting.setOnDismissCallback(new OnSdkDismissCallback() { |
1306 |
| - @Override |
1307 |
| - public void call() { |
1308 |
| -// WritableMap params = Arguments.createMap(); |
1309 |
| -// params.putString("issueState", issueState.toString()); |
1310 |
| -// params.putString("bugType", bugType.toString()); |
1311 |
| - sendEvent(getReactApplicationContext(), "IBGpostInvocationHandler", null); |
1312 |
| - } |
1313 |
| - }); |
1314 |
| - |
| 1306 | +// BugReporting.setOnDismissCallback(new OnSdkDismissCallback() { |
| 1307 | +// @Override |
| 1308 | +// public void call() { |
| 1309 | +//// WritableMap params = Arguments.createMap(); |
| 1310 | +//// params.putString("issueState", issueState.toString()); |
| 1311 | +//// params.putString("bugType", bugType.toString()); |
| 1312 | +// sendEvent(getReactApplicationContext(), "IBGpostInvocationHandler", null); |
| 1313 | +// } |
| 1314 | +// }); |
| 1315 | + |
| 1316 | + BugReporting.setOnDismissCallback(new OnSdkDismissCallback() { |
| 1317 | + @Override |
| 1318 | + public void call(DismissType dismissType, ReportType reportType) { |
| 1319 | + WritableMap params = Arguments.createMap(); |
| 1320 | + params.putString("issueState", dismissType.toString()); |
| 1321 | + params.putString("bugType", reportType.toString()); |
| 1322 | + sendEvent(getReactApplicationContext(), "IBGpostInvocationHandler", null); |
| 1323 | + } |
| 1324 | + }); |
1315 | 1325 | } catch (java.lang.Exception exception) {
|
1316 | 1326 | exception.printStackTrace();
|
1317 | 1327 | }
|
@@ -1762,17 +1772,17 @@ private InstabugCustomTextPlaceHolder.Key getStringToKeyConstant(String key) {
|
1762 | 1772 | }
|
1763 | 1773 | }
|
1764 | 1774 |
|
1765 |
| - private InstabugVideoRecordingButtonCorner getVideoRecordingButtonCorner(String cornerValue) { |
1766 |
| - InstabugVideoRecordingButtonCorner corner = InstabugVideoRecordingButtonCorner.BOTTOM_RIGHT; |
| 1775 | + private InstabugVideoRecordingButtonPosition getVideoRecordingButtonCorner(String cornerValue) { |
| 1776 | + InstabugVideoRecordingButtonPosition corner = InstabugVideoRecordingButtonPosition.BOTTOM_RIGHT; |
1767 | 1777 | try {
|
1768 | 1778 | if (cornerValue.equals(BOTTOM_RIGHT)) {
|
1769 |
| - corner = InstabugVideoRecordingButtonCorner.BOTTOM_RIGHT; |
| 1779 | + corner = InstabugVideoRecordingButtonPosition.BOTTOM_RIGHT; |
1770 | 1780 | } else if (cornerValue.equals(BOTTOM_LEFT)) {
|
1771 |
| - corner = InstabugVideoRecordingButtonCorner.BOTTOM_LEFT; |
| 1781 | + corner = InstabugVideoRecordingButtonPosition.BOTTOM_LEFT; |
1772 | 1782 | } else if (cornerValue.equals(TOP_LEFT)) {
|
1773 |
| - corner = InstabugVideoRecordingButtonCorner.TOP_LEFT; |
| 1783 | + corner = InstabugVideoRecordingButtonPosition.TOP_LEFT; |
1774 | 1784 | } else if (cornerValue.equals(TOP_RIGHT)) {
|
1775 |
| - corner = InstabugVideoRecordingButtonCorner.TOP_RIGHT; |
| 1785 | + corner = InstabugVideoRecordingButtonPosition.TOP_RIGHT; |
1776 | 1786 | }
|
1777 | 1787 |
|
1778 | 1788 | } catch (Exception e) {
|
|
0 commit comments