|
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; |
@@ -1992,27 +1991,6 @@ public void setEmailFieldRequiredForActions(boolean isEmailRequired, ReadableArr |
1992 | 1991 | } |
1993 | 1992 | } |
1994 | 1993 |
|
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 | | - |
2016 | 1994 | private InstabugCustomTextPlaceHolder.Key getStringToKeyConstant(String key) { |
2017 | 1995 | switch (key) { |
2018 | 1996 | case SHAKE_HINT: |
@@ -2163,7 +2141,7 @@ private Locale getLocaleByKey(String instabugLocale) { |
2163 | 2141 |
|
2164 | 2142 | private void sendEvent(ReactApplicationContext reactContext, |
2165 | 2143 | String eventName, |
2166 | | - @Nullable WritableMap params) { |
| 2144 | + WritableMap params) { |
2167 | 2145 | reactContext |
2168 | 2146 | .getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class) |
2169 | 2147 | .emit(eventName, params); |
|
0 commit comments