Skip to content

Commit

Permalink
💎 Bump version to 8.0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
salmamali committed Jan 13, 2019
2 parents 995d6cb + 735ef87 commit 7407660
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import android.net.Uri;
import android.os.Handler;
import android.os.Looper;
import android.support.annotation.Nullable;
import android.util.Log;

import com.facebook.react.bridge.Arguments;
Expand Down Expand Up @@ -1992,27 +1991,6 @@ public void setEmailFieldRequiredForActions(boolean isEmailRequired, ReadableArr
}
}

/**
* Extracts HTTP connection properties. Request method, Headers, Date, Url and Response code
*
* @param jsonObject the JSON object containing all HTTP connection properties
* @throws JSONException
*/
@ReactMethod
public void networkLog(String jsonObject) throws JSONException {
NetworkLog networkLog = new NetworkLog();
String date = System.currentTimeMillis()+"";
networkLog.setDate(date);
JSONObject newJSONObject = new JSONObject(jsonObject);
networkLog.setUrl(newJSONObject.getString("url"));
networkLog.setRequest(newJSONObject.getString("requestBody"));
networkLog.setResponse(newJSONObject.getString("responseBody"));
networkLog.setMethod(newJSONObject.getString("method"));
networkLog.setResponseCode(newJSONObject.getInt("responseCode"));
networkLog.setRequestHeaders(newJSONObject.getString("headers"));
networkLog.insert();
}

private InstabugCustomTextPlaceHolder.Key getStringToKeyConstant(String key) {
switch (key) {
case SHAKE_HINT:
Expand Down Expand Up @@ -2163,7 +2141,7 @@ private Locale getLocaleByKey(String instabugLocale) {

private void sendEvent(ReactApplicationContext reactContext,
String eventName,
@Nullable WritableMap params) {
WritableMap params) {
reactContext
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
.emit(eventName, params);
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ const InstabugModule = {
},

/**
* @deprecated use {@link BugReporting.setInvocationOptions}
* Sets whether users are required to enter an email address or not when
* sending reports.
* Defaults to YES.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "instabug-reactnative",
"version": "8.0.20",
"version": "8.0.21",
"description": "React Native plugin for integrating the Instabug SDK",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit 7407660

Please sign in to comment.