shakebug-react-native 2.0.0 → 2.1.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.
|
|
4
|
+
"version": "2.1.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": {
|
package/src/APIs/StartSession.js
CHANGED
|
@@ -34,8 +34,6 @@ async function SessionStartApi(latitude, longitude, application_id) {
|
|
|
34
34
|
let uuid = null;
|
|
35
35
|
let idFromStorege = await ShakebugSDKSharedPreferencesModule.getString("uuid");
|
|
36
36
|
|
|
37
|
-
console.log("idFromStorege", idFromStorege);
|
|
38
|
-
|
|
39
37
|
if (idFromStorege == "" || idFromStorege == undefined) {
|
|
40
38
|
let id = await DeviceInfo.getUniqueId();
|
|
41
39
|
ShakebugSDKSharedPreferencesModule.setString("uuid", id)
|
|
@@ -45,10 +43,6 @@ async function SessionStartApi(latitude, longitude, application_id) {
|
|
|
45
43
|
uuid = idFromStorege;
|
|
46
44
|
}
|
|
47
45
|
|
|
48
|
-
console.log("uuid", uuid);
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
46
|
let system_version = await DeviceInfo.getSystemVersion()
|
|
53
47
|
|
|
54
48
|
let app_version = await DeviceInfo.getVersion()
|
|
@@ -418,7 +418,7 @@ const AddDetailsScreen = ({ media, updateParent, mediaType, themeColor, SDKScree
|
|
|
418
418
|
</View>
|
|
419
419
|
|
|
420
420
|
<View style={{ alignItems: 'flex-end', marginHorizontal: 15, marginTop: '1%' }}>
|
|
421
|
-
<Text style={{ fontSize: 12, color: "gray", fontWeight: '300' }}>© <Text>ShakeBug v2.
|
|
421
|
+
<Text style={{ fontSize: 12, color: "gray", fontWeight: '300' }}>© <Text>ShakeBug v2.1</Text></Text>
|
|
422
422
|
</View>
|
|
423
423
|
|
|
424
424
|
</View>
|
package/src/index.tsx
CHANGED
|
@@ -55,7 +55,7 @@ const ShakebugView: React.FC<ShakebugViewProps> = ({
|
|
|
55
55
|
changeSDKScreenTitle={changeSDKScreenTitle}
|
|
56
56
|
allowToReportBugByScreenCapture={allowToReportBugByScreenCapture}
|
|
57
57
|
allowToReportBugByShakingMobile={allowToReportBugByShakingMobile}
|
|
58
|
-
allowCrashReport={allowCrashReport}
|
|
58
|
+
allowCrashReport={__DEV__ ? false : allowCrashReport}
|
|
59
59
|
makeLogEnabled={makeLogEnabled}
|
|
60
60
|
ShakebugLanguage={Languages.includes(ShakebugLanguage) ? ShakebugLanguage : LocalLanguage != -1 ? Languages[LocalLanguage] : "ENGLISH"}
|
|
61
61
|
setShakebugSDKEndPointURL={setShakebugSDKEndPointURL}
|
|
@@ -77,7 +77,7 @@ export const triggerBugReporting = (): void => {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
export const ShakebugSdkProtectedView = (
|
|
80
|
+
export const ShakebugSdkProtectedView = ({ children }) => {
|
|
81
81
|
|
|
82
82
|
const { isRecordingStart, isScreenShot } = useGlobalState();
|
|
83
83
|
if (isRecordingStart == true || isScreenShot == true) {
|