@dynatrace/react-native-plugin 2.311.1 → 2.311.2
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.
|
@@ -25,16 +25,15 @@ internal object DynatraceUtils {
|
|
|
25
25
|
) {
|
|
26
26
|
// This is a int
|
|
27
27
|
arrayList.add(array.getDouble(i).toInt())
|
|
28
|
-
}
|
|
29
|
-
if (value >= Long.MIN_VALUE && value <= Long.MAX_VALUE && value == value.toLong()
|
|
28
|
+
} else if (value >= Long.MIN_VALUE && value <= Long.MAX_VALUE && value == value.toLong()
|
|
30
29
|
.toDouble()
|
|
31
30
|
) {
|
|
32
31
|
// This is a long
|
|
33
32
|
arrayList.add(array.getDouble(i).toLong())
|
|
34
33
|
}
|
|
35
|
-
|
|
34
|
+
} else {
|
|
35
|
+
arrayList.add(array.getDouble(i))
|
|
36
36
|
}
|
|
37
|
-
arrayList.add(array.getDouble(i))
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
ReadableType.String -> arrayList.add(array.getString(i))
|
|
@@ -63,16 +62,15 @@ internal object DynatraceUtils {
|
|
|
63
62
|
) {
|
|
64
63
|
// This is a int
|
|
65
64
|
hashMap[key] = map.getDouble(key).toInt()
|
|
66
|
-
}
|
|
67
|
-
if (value >= Long.MIN_VALUE && value <= Long.MAX_VALUE && value == value.toLong()
|
|
65
|
+
} else if (value >= Long.MIN_VALUE && value <= Long.MAX_VALUE && value == value.toLong()
|
|
68
66
|
.toDouble()
|
|
69
67
|
) {
|
|
70
68
|
// This is a long
|
|
71
69
|
hashMap[key] = map.getDouble(key).toLong()
|
|
72
70
|
}
|
|
73
|
-
|
|
71
|
+
} else {
|
|
72
|
+
hashMap[key] = map.getDouble(key)
|
|
74
73
|
}
|
|
75
|
-
hashMap[key] = map.getDouble(key)
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
ReadableType.String -> hashMap[key] = map.getString(key)
|
|
@@ -13,26 +13,26 @@ var AppStartType;
|
|
|
13
13
|
exports.AppStartTypeKeyMapping = [
|
|
14
14
|
{
|
|
15
15
|
type: AppStartType.RELOAD,
|
|
16
|
-
key: "app_start.react_native.
|
|
16
|
+
key: "app_start.react_native.run_js_bundle.load_time",
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
type: AppStartType.DOWNLOAD_START,
|
|
20
|
-
key: "app_start.react_native.
|
|
20
|
+
key: "app_start.react_native.download.start_time",
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
type: AppStartType.RUN_JS_BUNDLE_START,
|
|
24
|
-
key: "app_start.react_native.
|
|
24
|
+
key: "app_start.react_native.run_js_bundle.start_time",
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
type: AppStartType.DOWNLOAD_END,
|
|
28
|
-
key: "app_start.react_native.
|
|
28
|
+
key: "app_start.react_native.download.end_time",
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
type: AppStartType.RUN_JS_BUNDLE_END,
|
|
32
|
-
key: "app_start.react_native.
|
|
32
|
+
key: "app_start.react_native.run_js_bundle.end_time",
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
type: AppStartType.CONTENT_APPEARED,
|
|
36
|
-
key: "app_start.react_native.
|
|
36
|
+
key: "app_start.react_native.content_appeared",
|
|
37
37
|
},
|
|
38
38
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynatrace/react-native-plugin",
|
|
3
|
-
"version": "2.311.
|
|
3
|
+
"version": "2.311.2",
|
|
4
4
|
"description": "This plugin gives you the ability to use the Dynatrace Mobile agent in your react native application.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "typings/react-native-dynatrace.d.ts",
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
"uninstall": "node ./scripts/Uninstall.js",
|
|
25
25
|
"test": "jest --runInBand",
|
|
26
26
|
"test:debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand",
|
|
27
|
+
"test:local": "npm run lint && node runner.js test",
|
|
28
|
+
"tsc:local": "tsc -p tsconfig.local.json",
|
|
27
29
|
"tsc": "tsc",
|
|
28
30
|
"tsc:prod": "tsc -p tsconfig.release.json",
|
|
29
31
|
"lint": "eslint --cache src/**/*.ts --ignore-pattern .gitignore",
|
|
@@ -66,7 +68,7 @@
|
|
|
66
68
|
},
|
|
67
69
|
"jest-junit": {
|
|
68
70
|
"suiteName": "jest tests",
|
|
69
|
-
"outputDirectory": "
|
|
71
|
+
"outputDirectory": "test_report",
|
|
70
72
|
"outputName": "junit.xml",
|
|
71
73
|
"uniqueOutputName": "true",
|
|
72
74
|
"ancestorSeparator": " › ",
|
package/scripts/Android.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.copyGradleConfigFile = exports.writeGradleConfig = exports.instrumentAndroidPlatform = exports.GRADLE_APPLY_BUILDSCRIPT = exports.GRADLE_DYNATRACE_FILE = void 0;
|
|
5
|
+
const path_1 = require("path");
|
|
5
6
|
const Logger_1 = require("./Logger");
|
|
6
7
|
const FileOperationHelper_1 = require("./FileOperationHelper");
|
|
7
8
|
const PathsConstants_1 = require("./PathsConstants");
|
|
8
|
-
const path_1 = require("path");
|
|
9
9
|
const GRADLE_CONFIG_IDENTIFIER = '// AUTO - INSERTED';
|
|
10
10
|
exports.GRADLE_DYNATRACE_FILE = `apply from: "./${PathsConstants_1.DYNATRACE_CONFIG_GRADLE_FILE}"`;
|
|
11
11
|
const GRADLE_BUILDSCRIPT_IDENTIFIER = 'buildscript';
|
package/scripts/Config.js
CHANGED
package/scripts/Ios.js
CHANGED
|
@@ -130,7 +130,9 @@ const updatedExcludedStr = (config) => {
|
|
|
130
130
|
const controlsArr = Object.keys(PlistConstants_1.CONTROLS_PROP_OPTIONS);
|
|
131
131
|
let updatedStr = `${PlistConstants_1.START_CONTROLS_PROP}${PlistConstants_1.CONTROLS_PROP_OPTIONS.PickerView}${PlistConstants_1.CONTROLS_PROP_OPTIONS.Switch}`;
|
|
132
132
|
for (let index = 0; index < controlsArr.length; index++) {
|
|
133
|
-
if (controlsArr[index] !== 'PickerView'
|
|
133
|
+
if (controlsArr[index] !== 'PickerView'
|
|
134
|
+
&& controlsArr[index] !== 'Switch'
|
|
135
|
+
&& config.indexOf(PlistConstants_1.CONTROLS_PROP_OPTIONS[controlsArr[index]].trim()) >= 0) {
|
|
134
136
|
updatedStr = updatedStr + PlistConstants_1.CONTROLS_PROP_OPTIONS[controlsArr[index]];
|
|
135
137
|
}
|
|
136
138
|
}
|