Skip to content

Commit 1e9911f

Browse files
committed
🎨 cleanup
1 parent 48e2e5d commit 1e9911f

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

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

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,27 +1986,6 @@ public void setEmailFieldRequiredForActions(boolean isEmailRequired, ReadableArr
19861986
}
19871987
}
19881988

1989-
/**
1990-
* Extracts HTTP connection properties. Request method, Headers, Date, Url and Response code
1991-
*
1992-
* @param jsonObject the JSON object containing all HTTP connection properties
1993-
* @throws JSONException
1994-
*/
1995-
@ReactMethod
1996-
public void networkLog(String jsonObject) throws JSONException {
1997-
NetworkLog networkLog = new NetworkLog();
1998-
String date = System.currentTimeMillis()+"";
1999-
networkLog.setDate(date);
2000-
JSONObject newJSONObject = new JSONObject(jsonObject);
2001-
networkLog.setUrl(newJSONObject.getString("url"));
2002-
networkLog.setRequest(newJSONObject.getString("requestBody"));
2003-
networkLog.setResponse(newJSONObject.getString("responseBody"));
2004-
networkLog.setMethod(newJSONObject.getString("method"));
2005-
networkLog.setResponseCode(newJSONObject.getInt("responseCode"));
2006-
networkLog.setRequestHeaders(newJSONObject.getString("headers"));
2007-
networkLog.insert();
2008-
}
2009-
20101989
private InstabugCustomTextPlaceHolder.Key getStringToKeyConstant(String key) {
20111990
switch (key) {
20121991
case SHAKE_HINT:

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.

0 commit comments

Comments
 (0)