|
4 | 4 | import android.net.Uri;
|
5 | 5 | import android.os.Handler;
|
6 | 6 | import android.os.Looper;
|
7 |
| -import android.support.annotation.Nullable; |
8 | 7 | import android.util.Log;
|
9 | 8 |
|
10 | 9 | import com.facebook.react.bridge.Arguments;
|
@@ -1987,27 +1986,6 @@ public void setEmailFieldRequiredForActions(boolean isEmailRequired, ReadableArr
|
1987 | 1986 | }
|
1988 | 1987 | }
|
1989 | 1988 |
|
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 |
| - |
2011 | 1989 | private InstabugCustomTextPlaceHolder.Key getStringToKeyConstant(String key) {
|
2012 | 1990 | switch (key) {
|
2013 | 1991 | case SHAKE_HINT:
|
@@ -2158,7 +2136,7 @@ private Locale getLocaleByKey(String instabugLocale) {
|
2158 | 2136 |
|
2159 | 2137 | private void sendEvent(ReactApplicationContext reactContext,
|
2160 | 2138 | String eventName,
|
2161 |
| - @Nullable WritableMap params) { |
| 2139 | + WritableMap params) { |
2162 | 2140 | reactContext
|
2163 | 2141 | .getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
|
2164 | 2142 | .emit(eventName, params);
|
|
0 commit comments