@dynatrace/react-native-plugin 2.255.1 → 2.257.1
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/LICENSE.md +1 -0
- package/README.md +41 -16
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/dynatrace/android/agent/DynatraceRNBridge.java +74 -21
- package/files/plugin.gradle +1 -1
- package/ios/DynatraceRNBridge.h +2 -2
- package/ios/DynatraceRNBridge.m +38 -17
- package/ios/lib/Dynatrace.xcframework/Info.plist +10 -10
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Dynatrace +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Dynatrace-Swift.h +46 -1
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Dynatrace.h +3 -3
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Info.plist +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.abi.json +21 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.private.swiftinterface +9 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.swiftinterface +4 -2
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/module.modulemap +2 -2
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace-Swift.h +82 -2
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +3 -3
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json +21 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +9 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -2
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json +21 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +9 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +4 -2
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/module.modulemap +2 -2
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +61 -65
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Dynatrace +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Dynatrace-Swift.h +46 -1
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Dynatrace.h +3 -3
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Info.plist +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos.swiftsourceinfo +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.abi.json +21 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.private.swiftinterface +9 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.swiftdoc +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.swiftinterface +3 -1
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/module.modulemap +2 -2
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace-Swift.h +82 -2
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +3 -3
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.abi.json +21 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.private.swiftinterface +9 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftdoc +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftinterface +3 -1
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.abi.json +21 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.private.swiftinterface +9 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface +3 -1
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/module.modulemap +2 -2
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +67 -23
- package/lib/instrumentor/DynatraceInstrumentation.js +1 -1
- package/lib/instrumentor/base/Dynatrace.js +48 -31
- package/lib/instrumentor/base/DynatraceAction.js +44 -0
- package/lib/instrumentor/base/DynatraceInternal.js +25 -0
- package/lib/instrumentor/base/DynatraceRootAction.js +38 -0
- package/lib/instrumentor/base/DynatraceWebRequestTiming.js +37 -0
- package/lib/instrumentor/base/ElementHelper.js +3 -2
- package/lib/instrumentor/base/ErrorHandler.js +2 -1
- package/lib/instrumentor/base/NullAction.js +8 -0
- package/lib/instrumentor/base/NullRootAction.js +10 -0
- package/lib/instrumentor/base/NullWebRequestTiming.js +15 -0
- package/lib/instrumentor/base/Picker.js +1 -1
- package/lib/instrumentor/base/RefreshControl.js +1 -1
- package/lib/instrumentor/base/Touchable.js +11 -7
- package/lib/instrumentor/base/configuration/AutoStartupConfiguration.js +4 -0
- package/lib/instrumentor/base/configuration/Configuration.js +1 -0
- package/lib/instrumentor/base/configuration/ConfigurationDefaults.js +4 -2
- package/lib/instrumentor/base/configuration/ManualStartupConfiguration.js +5 -5
- package/lib/instrumentor/base/{interface → configuration/interface}/IAutoConfiguration.js +0 -0
- package/lib/instrumentor/base/configuration/interface/IManualConfiguration.js +3 -0
- package/lib/instrumentor/base/interface/IDynatraceInternal.js +2 -0
- package/lib/instrumentor/base/interface/IDynatraceRootAction.js +2 -0
- package/lib/instrumentor/base/interface/IWebRequestTiming.js +1 -0
- package/lib/instrumentor/base/util/StringUtils.js +1 -0
- package/lib/react/Component.js +3 -3
- package/package.json +5 -3
- package/react-native-dynatrace.podspec +3 -2
- package/typings/react-native-dynatrace.d.ts +242 -110
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynatraceRootAction = void 0;
|
|
4
|
+
const StringUtils_1 = require("./util/StringUtils");
|
|
5
|
+
const DynatraceBridge_1 = require("./DynatraceBridge");
|
|
6
|
+
const Logger_1 = require("./Logger");
|
|
7
|
+
const DynatraceAction_1 = require("./DynatraceAction");
|
|
8
|
+
const NullAction_1 = require("./NullAction");
|
|
9
|
+
const DynatraceInternal_1 = require("./DynatraceInternal");
|
|
10
|
+
const Configuration_1 = require("./configuration/Configuration");
|
|
11
|
+
class DynatraceRootAction extends DynatraceAction_1.DynatraceAction {
|
|
12
|
+
constructor(key, name) {
|
|
13
|
+
super(key, name);
|
|
14
|
+
}
|
|
15
|
+
enterAction(name, platform) {
|
|
16
|
+
if (this.closed) {
|
|
17
|
+
Logger_1.Logger.logDebug(`DynatraceRootAction enterAction(${name}): Action was closed already!`);
|
|
18
|
+
return new NullAction_1.NullAction();
|
|
19
|
+
}
|
|
20
|
+
let childKey;
|
|
21
|
+
if (Configuration_1.Configuration.getBundleName() != null) {
|
|
22
|
+
childKey = Configuration_1.Configuration.getBundleName() + '_' + DynatraceInternal_1.DynatraceInternal.getCounter();
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
childKey = 'DEFAULT_' + DynatraceInternal_1.DynatraceInternal.getCounter();
|
|
26
|
+
}
|
|
27
|
+
if (!StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(name)) {
|
|
28
|
+
Logger_1.Logger.logDebug(`DynatraceRootAction enterAction(${name})`);
|
|
29
|
+
DynatraceBridge_1.DynatraceNative.enterManualActionWithParent(name, childKey, this.key, platform);
|
|
30
|
+
return new DynatraceAction_1.DynatraceAction(childKey, name);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
Logger_1.Logger.logDebug('Action Name was empty or null! Action will have no effect.');
|
|
34
|
+
return new NullAction_1.NullAction();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.DynatraceRootAction = DynatraceRootAction;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynatraceWebRequestTiming = void 0;
|
|
4
|
+
const DynatraceBridge_1 = require("./DynatraceBridge");
|
|
5
|
+
const Logger_1 = require("./Logger");
|
|
6
|
+
const StringUtils_1 = require("./util/StringUtils");
|
|
7
|
+
class DynatraceWebRequestTiming {
|
|
8
|
+
constructor(requestTag, url) {
|
|
9
|
+
this.requestTag = requestTag;
|
|
10
|
+
this.url = url;
|
|
11
|
+
}
|
|
12
|
+
startWebRequestTiming() {
|
|
13
|
+
if (this.requestTag != null && !StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(this.url)) {
|
|
14
|
+
DynatraceBridge_1.DynatraceNative.startWebRequestTiming(this.requestTag, this.url);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
Logger_1.Logger.logDebug('Web Request Timing could not be created!');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
stopWebRequestTiming(responseCode, responseMessage) {
|
|
21
|
+
if (this.requestTag != null && !StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(this.url) &&
|
|
22
|
+
responseCode != null && !(Boolean(StringUtils_1.StringUtils.isStringNullOrUndefined(responseMessage)))) {
|
|
23
|
+
DynatraceBridge_1.DynatraceNative.stopWebRequestTiming(this.requestTag, this.url, responseCode, responseMessage);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
Logger_1.Logger.logDebug(`Web Request Timing could not be stopped! - Request Tag:
|
|
27
|
+
${this.requestTag} Url: ${this.url} responseCode: ${responseCode} responseMessage: ${responseMessage}`);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
getRequestTag() {
|
|
31
|
+
return this.requestTag;
|
|
32
|
+
}
|
|
33
|
+
getRequestTagHeader() {
|
|
34
|
+
return 'x-dynatrace';
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.DynatraceWebRequestTiming = DynatraceWebRequestTiming;
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.isDtActionIgnore = exports.modifyElement = exports.instrumentCreateElement = void 0;
|
|
4
4
|
const Types_1 = require("../model/Types");
|
|
5
5
|
const Component_1 = require("../../react/Component");
|
|
6
|
-
const Dynatrace_1 = require("./Dynatrace");
|
|
7
6
|
const Logger_1 = require("./Logger");
|
|
8
7
|
const Picker_1 = require("./Picker");
|
|
9
8
|
const Touchable_1 = require("./Touchable");
|
|
9
|
+
const Dynatrace_1 = require("./Dynatrace");
|
|
10
10
|
const instrumentCreateElement = (reactModule) => {
|
|
11
11
|
if (reactModule != null && reactModule.createElement != null) {
|
|
12
12
|
const reactCreateElement = reactModule.createElement;
|
|
@@ -42,7 +42,8 @@ const modifyElement = (type, props, ...children) => {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
else if (props.onValueChange != null && type._dtInfo.type === Types_1.Types.Picker) {
|
|
45
|
-
props.onValueChange = (0, Picker_1.PickerHelper)(Dynatrace_1.Dynatrace, Logger_1.Logger)
|
|
45
|
+
props.onValueChange = (0, Picker_1.PickerHelper)(Dynatrace_1.Dynatrace, Logger_1.Logger)
|
|
46
|
+
.attachToOnValueChange(props.onValueChange, props.children);
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ErrorHandler = void 0;
|
|
4
|
+
const DynatraceInternal_1 = require("./DynatraceInternal");
|
|
4
5
|
const StringUtils_1 = require("./util/StringUtils");
|
|
5
6
|
const _isReactNativeGlobal = (globalScope) => globalScope.ErrorUtils !== undefined;
|
|
6
7
|
const ErrorHandler = (Dynatrace, Logger) => ({
|
|
@@ -25,7 +26,7 @@ const ErrorHandler = (Dynatrace, Logger) => ({
|
|
|
25
26
|
isFatal = false;
|
|
26
27
|
}
|
|
27
28
|
if (exception.stack != null) {
|
|
28
|
-
|
|
29
|
+
DynatraceInternal_1.DynatraceInternal.reportErrorFromHandler(isFatal, String(exception.name), exception.message, exception.stack);
|
|
29
30
|
Logger.logDebug(`ErrorHandler _reportErrorToDynatrace(${exception}, ${isFatal})`);
|
|
30
31
|
}
|
|
31
32
|
else {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NullRootAction = void 0;
|
|
4
|
+
const NullAction_1 = require("./NullAction");
|
|
5
|
+
class NullRootAction extends NullAction_1.NullAction {
|
|
6
|
+
enterAction(name, platform) {
|
|
7
|
+
return new NullAction_1.NullAction();
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.NullRootAction = NullRootAction;
|
|
@@ -5,7 +5,7 @@ const PickerHelper = (Dynatrace, Logger) => ({
|
|
|
5
5
|
attachToOnValueChange(onValueChange, children) {
|
|
6
6
|
return (itemValue, itemNumber) => {
|
|
7
7
|
const value = this.getPickerItemValue(children, itemNumber, itemValue);
|
|
8
|
-
const action = Dynatrace.
|
|
8
|
+
const action = Dynatrace.enterAutoAction(`Picked Value: ${value}`);
|
|
9
9
|
if (onValueChange !== undefined) {
|
|
10
10
|
onValueChange(itemValue, itemNumber);
|
|
11
11
|
}
|
|
@@ -22,7 +22,7 @@ const RefreshControlHelper = (Dynatrace, Logger) => ({
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
onRefresh: (refreshControl) => {
|
|
25
|
-
const action = Dynatrace.
|
|
25
|
+
const action = Dynatrace.enterAutoAction('Swipe to Refesh');
|
|
26
26
|
if (refreshControl.props.onRefresh !== undefined) {
|
|
27
27
|
refreshControl.props.onRefresh();
|
|
28
28
|
}
|
|
@@ -12,17 +12,21 @@ const TouchableHelper = (Dynatrace, Logger) => ({
|
|
|
12
12
|
return origFunction;
|
|
13
13
|
}
|
|
14
14
|
const nameOfAction = this._findActionName(props, children);
|
|
15
|
-
if (nameOfAction == null) {
|
|
16
|
-
Logger.logDebug('TouchableHelper: Skipping creation of action as no name was found!');
|
|
17
|
-
return origFunction;
|
|
18
|
-
}
|
|
19
15
|
return (event) => {
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
if (nameOfAction == null) {
|
|
17
|
+
Logger.logDebug('TouchableHelper: Skipping creation of action as no name was found!');
|
|
22
18
|
if (origFunction != null) {
|
|
23
19
|
origFunction(event);
|
|
24
20
|
}
|
|
25
|
-
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
const action = Dynatrace.enterAutoAction(`Touch on ${nameOfAction}`);
|
|
24
|
+
if (action != null) {
|
|
25
|
+
if (origFunction != null) {
|
|
26
|
+
origFunction(event);
|
|
27
|
+
}
|
|
28
|
+
action.leaveAction();
|
|
29
|
+
}
|
|
26
30
|
}
|
|
27
31
|
};
|
|
28
32
|
},
|
|
@@ -7,6 +7,7 @@ class AutoStartupConfiguration {
|
|
|
7
7
|
this.lifecycleUpdate = ConfigurationDefaults_1.DEFAULT_LIFECYCLE_UPDATE_AUTO;
|
|
8
8
|
this.logLevel = ConfigurationDefaults_1.DEFAULT_LOGLEVEL_AUTO;
|
|
9
9
|
this.actionNamePrivacy = ConfigurationDefaults_1.DEFAULT_ACTION_NAME_PRIVACY;
|
|
10
|
+
this.bundleName = ConfigurationDefaults_1.DEFAULT_BUNDLE_NAME_AUTO;
|
|
10
11
|
if (optionalAutoStartParameters === undefined) {
|
|
11
12
|
return;
|
|
12
13
|
}
|
|
@@ -19,6 +20,9 @@ class AutoStartupConfiguration {
|
|
|
19
20
|
if (optionalAutoStartParameters.actionNamePrivacy !== undefined) {
|
|
20
21
|
this.actionNamePrivacy = optionalAutoStartParameters.actionNamePrivacy;
|
|
21
22
|
}
|
|
23
|
+
if (optionalAutoStartParameters.bundleName !== undefined) {
|
|
24
|
+
this.bundleName = optionalAutoStartParameters.bundleName;
|
|
25
|
+
}
|
|
22
26
|
}
|
|
23
27
|
}
|
|
24
28
|
exports.AutoStartupConfiguration = AutoStartupConfiguration;
|
|
@@ -17,4 +17,5 @@ exports.Configuration = {
|
|
|
17
17
|
isDebugEnabled: () => mainConfig.logLevel === LogLevel_1.LogLevel.Debug,
|
|
18
18
|
isLifecycleUpdateEnabled: () => mainConfig.lifecycleUpdate,
|
|
19
19
|
isActionNamePrivacyEnabled: () => mainConfig.actionNamePrivacy,
|
|
20
|
+
getBundleName: () => mainConfig.bundleName,
|
|
20
21
|
};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DEFAULT_BUNDLE_NAME_AUTO = exports.DEFAULT_BUNDLE_NAME = exports.DEFAULT_ACTION_NAME_PRIVACY = exports.DEFAULT_USER_OPT_IN = exports.DEFAULT_REPORT_CRASH = exports.DEFAULT_LOGLEVEL_AUTO = exports.DEFAULT_LOGLEVEL = exports.DEFAULT_LIFECYCLE_UPDATE_AUTO = exports.DEFAULT_LIFECYCLE_UPDATE = void 0;
|
|
4
4
|
const LogLevel_1 = require("../model/LogLevel");
|
|
5
5
|
const debugAuto = false;
|
|
6
6
|
const lifecycleUpdateAuto = false;
|
|
7
7
|
const actionNamePrivacyAuto = false;
|
|
8
|
+
const bundleNameAuto = undefined;
|
|
8
9
|
exports.DEFAULT_LIFECYCLE_UPDATE = false;
|
|
9
10
|
exports.DEFAULT_LIFECYCLE_UPDATE_AUTO = lifecycleUpdateAuto;
|
|
10
11
|
exports.DEFAULT_LOGLEVEL = LogLevel_1.LogLevel.Info;
|
|
11
12
|
exports.DEFAULT_LOGLEVEL_AUTO = debugAuto ? LogLevel_1.LogLevel.Debug : LogLevel_1.LogLevel.Info;
|
|
12
13
|
exports.DEFAULT_REPORT_CRASH = true;
|
|
13
|
-
exports.DEFAULT_CERTIFICATE_VALIDATION = true;
|
|
14
14
|
exports.DEFAULT_USER_OPT_IN = false;
|
|
15
15
|
exports.DEFAULT_ACTION_NAME_PRIVACY = actionNamePrivacyAuto;
|
|
16
|
+
exports.DEFAULT_BUNDLE_NAME = undefined;
|
|
17
|
+
exports.DEFAULT_BUNDLE_NAME_AUTO = bundleNameAuto;
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ManualStartupConfiguration = void 0;
|
|
4
4
|
const ConfigurationDefaults_1 = require("./ConfigurationDefaults");
|
|
5
5
|
class ManualStartupConfiguration {
|
|
6
|
-
constructor(beaconUrl, applicationId, reportCrash, logLevel, lifecycleUpdate,
|
|
6
|
+
constructor(beaconUrl, applicationId, reportCrash, logLevel, lifecycleUpdate, userOptIn, actionNamePrivacy, bundleName) {
|
|
7
7
|
this.reportCrash = ConfigurationDefaults_1.DEFAULT_REPORT_CRASH;
|
|
8
|
-
this.certificateValidation = ConfigurationDefaults_1.DEFAULT_CERTIFICATE_VALIDATION;
|
|
9
8
|
this.userOptIn = ConfigurationDefaults_1.DEFAULT_USER_OPT_IN;
|
|
10
9
|
this.logLevel = ConfigurationDefaults_1.DEFAULT_LOGLEVEL;
|
|
11
10
|
this.lifecycleUpdate = ConfigurationDefaults_1.DEFAULT_LIFECYCLE_UPDATE;
|
|
12
11
|
this.actionNamePrivacy = ConfigurationDefaults_1.DEFAULT_ACTION_NAME_PRIVACY;
|
|
12
|
+
this.bundleName = ConfigurationDefaults_1.DEFAULT_BUNDLE_NAME;
|
|
13
13
|
if (!applicationId || !beaconUrl) {
|
|
14
14
|
throw new Error('Dynatrace Startup Configuration is not correct! Missing applicationId and beaconUrl!');
|
|
15
15
|
}
|
|
@@ -18,9 +18,6 @@ class ManualStartupConfiguration {
|
|
|
18
18
|
if (reportCrash != null) {
|
|
19
19
|
this.reportCrash = reportCrash;
|
|
20
20
|
}
|
|
21
|
-
if (certificateValidation != null) {
|
|
22
|
-
this.certificateValidation = certificateValidation;
|
|
23
|
-
}
|
|
24
21
|
if (userOptIn != null) {
|
|
25
22
|
this.userOptIn = userOptIn;
|
|
26
23
|
}
|
|
@@ -33,6 +30,9 @@ class ManualStartupConfiguration {
|
|
|
33
30
|
if (actionNamePrivacy != null) {
|
|
34
31
|
this.actionNamePrivacy = actionNamePrivacy;
|
|
35
32
|
}
|
|
33
|
+
if (bundleName != null) {
|
|
34
|
+
this.bundleName = bundleName;
|
|
35
|
+
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
exports.ManualStartupConfiguration = ManualStartupConfiguration;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -3,4 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.StringUtils = void 0;
|
|
4
4
|
exports.StringUtils = {
|
|
5
5
|
isStringNullEmptyOrUndefined: (value) => !(value != null && value.length !== undefined && value.length > 0),
|
|
6
|
+
isStringNullOrUndefined: (value) => value == null || value === undefined,
|
|
6
7
|
};
|
package/lib/react/Component.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DynatraceClassWrapper = exports.DynatraceFnWrapper = void 0;
|
|
4
4
|
const React = require("react");
|
|
5
|
-
const Dynatrace_1 = require("../instrumentor/base/Dynatrace");
|
|
6
5
|
const Configuration_1 = require("../instrumentor/base/configuration/Configuration");
|
|
7
6
|
const Logger_1 = require("../instrumentor/base/Logger");
|
|
8
7
|
const NullAction_1 = require("../instrumentor/base/NullAction");
|
|
8
|
+
const Dynatrace_1 = require("../instrumentor/base/Dynatrace");
|
|
9
9
|
const DynatraceFnWrapper = (props) => {
|
|
10
10
|
const componentName = getNameFromComponent(props);
|
|
11
|
-
const action = Dynatrace_1.Dynatrace.
|
|
11
|
+
const action = Dynatrace_1.Dynatrace.enterAutoAction(`Render ${componentName}`);
|
|
12
12
|
if (action instanceof NullAction_1.NullAction) {
|
|
13
13
|
Logger_1.Logger.logInfo(`Component ${componentName}: React Native plugin has not been started yet! Component will not be reported!`);
|
|
14
14
|
}
|
|
@@ -32,7 +32,7 @@ class DynatraceClassWrapper extends React.Component {
|
|
|
32
32
|
if ((this.componentMounted && Configuration_1.Configuration.isLifecycleUpdateEnabled()) ||
|
|
33
33
|
!this.componentMounted) {
|
|
34
34
|
const actionPrefix = !this.componentMounted ? 'Render ' : 'Update ';
|
|
35
|
-
this.internalAction = Dynatrace_1.Dynatrace.
|
|
35
|
+
this.internalAction = Dynatrace_1.Dynatrace.enterAutoAction(actionPrefix + this.wrappingName);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
return this.props.children;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynatrace/react-native-plugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.257.1",
|
|
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",
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"usePathForSuiteName": "true"
|
|
70
70
|
},
|
|
71
71
|
"author": "Dynatrace",
|
|
72
|
-
"license": "
|
|
72
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@babel/runtime": "^7.20.
|
|
74
|
+
"@babel/runtime": "^7.20.13",
|
|
75
75
|
"jscodeshift": "^0.14.0",
|
|
76
76
|
"plist": "^3.0.6",
|
|
77
77
|
"proxy-polyfill": "^0.3.2",
|
|
@@ -138,6 +138,7 @@
|
|
|
138
138
|
"lib/instrumentor/base/*.js",
|
|
139
139
|
"lib/instrumentor/base/model/*.js",
|
|
140
140
|
"lib/instrumentor/base/configuration/*.js",
|
|
141
|
+
"lib/instrumentor/base/configuration/interface/*.js",
|
|
141
142
|
"lib/instrumentor/base/interface/*.js",
|
|
142
143
|
"lib/instrumentor/base/util/*.js",
|
|
143
144
|
"lib/instrumentor/model/*.js",
|
|
@@ -153,6 +154,7 @@
|
|
|
153
154
|
"react-native-dynatrace.js",
|
|
154
155
|
"react-native-dynatrace.podspec",
|
|
155
156
|
"README.md",
|
|
157
|
+
"LICENSE.md",
|
|
156
158
|
"scripts/*",
|
|
157
159
|
"scripts/api/*",
|
|
158
160
|
"scripts/core/*",
|
|
@@ -9,12 +9,13 @@ Pod::Spec.new do |s|
|
|
|
9
9
|
s.name = "react-native-dynatrace"
|
|
10
10
|
s.version = package['version']
|
|
11
11
|
s.summary = package['description']
|
|
12
|
-
s.license = package['license']
|
|
13
12
|
s.homepage = package['homepage']
|
|
14
|
-
s.ios.deployment_target = "
|
|
13
|
+
s.ios.deployment_target = "11.0"
|
|
15
14
|
s.source_files = ["ios/*.{h,m}","ios/lib/*.h"]
|
|
16
15
|
s.vendored_frameworks = 'ios/lib/Dynatrace.xcframework'
|
|
17
16
|
|
|
17
|
+
s.license = { :type => 'Commercial', :text => 'https://github.com/Dynatrace/dem-license/blob/main/LICENSE.md'}
|
|
18
|
+
|
|
18
19
|
s.ios.frameworks = "CoreLocation", "CoreTelephony", "Security", "SystemConfiguration", "MessageUI", "WebKit"
|
|
19
20
|
s.libraries = "sqlite3", "z", "c++"
|
|
20
21
|
s.requires_arc = true
|