Skip to content

Commit 735ef87

Browse files
authored
🤝 Merge pull request #33 from Instabug/fix/androidX
Fix/android x
2 parents 2fb61de + 1e9911f commit 735ef87

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
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;
@@ -1987,27 +1986,6 @@ public void setEmailFieldRequiredForActions(boolean isEmailRequired, ReadableArr
19871986
}
19881987
}
19891988

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

21592137
private void sendEvent(ReactApplicationContext reactContext,
21602138
String eventName,
2161-
@Nullable WritableMap params) {
2139+
WritableMap params) {
21622140
reactContext
21632141
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
21642142
.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.

0 commit comments

Comments
 (0)