shakebug-react-native 2.2.9 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shakebug-react-native",
3
3
  "title": "shakebug-react-native",
4
- "version": "2.2.9",
4
+ "version": "2.3.0",
5
5
  "description": "Shakebug allows users to report the bug from your mobile phone for your application. Here users just need to shake their mobile and all the data regarding bugs & crashes can be seen by developers through their log in panel easily",
6
6
  "main": "src/index.tsx",
7
7
  "scripts": {
@@ -29,8 +29,8 @@ async function AddIssueApi(session_id, application_id, path, isVideo, desc, emai
29
29
  let appversion = DeviceInfo.getVersion();
30
30
  let memory = await DeviceInfo.getTotalMemory() - await DeviceInfo.getUsedMemory()
31
31
  let osversion = await DeviceInfo.getSystemVersion()
32
- const type = isVideo ? 'video/mp4' : 'image/png';
33
- const name = isVideo ? 'video' : 'photo.png';
32
+ const type = isVideo ? 'video/mp4' : 'image/jpg';
33
+ const name = isVideo ? 'video.mp4' : 'photo.jpg';
34
34
  const media = isVideo ? `file://'${path}` : path;
35
35
 
36
36
 
@@ -40,7 +40,7 @@ async function AddIssueApi(session_id, application_id, path, isVideo, desc, emai
40
40
  formData.append("applicationsid", application_id);
41
41
  formData.append("session_id", session_id);
42
42
  formData.append("batteryLevel", batteryLevel);
43
- formData.append("image", media);
43
+ formData.append("image", {uri: media, name: name, type: type});
44
44
  formData.append("memory", memory);
45
45
  formData.append("email", email);
46
46
  formData.append("devicemodel", `${architecture[0]} -- ${model}`);
@@ -52,7 +52,7 @@ global.isScreeenShotTaken = false;
52
52
  global.restrictedViews = [];
53
53
  global.currentScreen = ""
54
54
  global.isShakebugSDKOpen = false;
55
- global.sdk_version = "2.2.9";
55
+ global.sdk_version = "2.3.0";
56
56
  global.app_lunch_count = 0;
57
57
  global.POPUP_LAUNCH_THRESHOLD = 3;
58
58
  global.POPUP_COOLDOWN_DAYS = 2;