Skip to content

Commit 7407660

Browse files
committed
💎 Bump version to 8.0.21
2 parents 995d6cb + 735ef87 commit 7407660

File tree

3 files changed

+3
-24
lines changed

3 files changed

+3
-24
lines changed

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

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import android.net.Uri;
55
import android.os.Handler;
66
import android.os.Looper;
7-
import android.support.annotation.Nullable;
87
import android.util.Log;
98

109
import com.facebook.react.bridge.Arguments;
@@ -1992,27 +1991,6 @@ public void setEmailFieldRequiredForActions(boolean isEmailRequired, ReadableArr
19921991
}
19931992
}
19941993

1995-
/**
1996-
* Extracts HTTP connection properties. Request method, Headers, Date, Url and Response code
1997-
*
1998-
* @param jsonObject the JSON object containing all HTTP connection properties
1999-
* @throws JSONException
2000-
*/
2001-
@ReactMethod
2002-
public void networkLog(String jsonObject) throws JSONException {
2003-
NetworkLog networkLog = new NetworkLog();
2004-
String date = System.currentTimeMillis()+"";
2005-
networkLog.setDate(date);
2006-
JSONObject newJSONObject = new JSONObject(jsonObject);
2007-
networkLog.setUrl(newJSONObject.getString("url"));
2008-
networkLog.setRequest(newJSONObject.getString("requestBody"));
2009-
networkLog.setResponse(newJSONObject.getString("responseBody"));
2010-
networkLog.setMethod(newJSONObject.getString("method"));
2011-
networkLog.setResponseCode(newJSONObject.getInt("responseCode"));
2012-
networkLog.setRequestHeaders(newJSONObject.getString("headers"));
2013-
networkLog.insert();
2014-
}
2015-
20161994
private InstabugCustomTextPlaceHolder.Key getStringToKeyConstant(String key) {
20171995
switch (key) {
20181996
case SHAKE_HINT:
@@ -2163,7 +2141,7 @@ private Locale getLocaleByKey(String instabugLocale) {
21632141

21642142
private void sendEvent(ReactApplicationContext reactContext,
21652143
String eventName,
2166-
@Nullable WritableMap params) {
2144+
WritableMap params) {
21672145
reactContext
21682146
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
21692147
.emit(eventName, params);

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ const InstabugModule = {
348348
},
349349

350350
/**
351+
* @deprecated use {@link BugReporting.setInvocationOptions}
351352
* Sets whether users are required to enter an email address or not when
352353
* sending reports.
353354
* Defaults to YES.

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.0.20",
3+
"version": "8.0.21",
44
"description": "React Native plugin for integrating the Instabug SDK",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)