@dynatrace/react-native-plugin 2.275.1 → 2.279.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/README.md +128 -41
- package/android/build.gradle +1 -1
- package/files/plugin.gradle +1 -1
- package/index.js +1 -0
- package/ios/lib/Dynatrace.xcframework/Info.plist +9 -9
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Dynatrace +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Dynatrace.h +1 -1
- 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 +1 -1
- 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.h +1 -1
- 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 +1 -1
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json +1 -1
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +15 -15
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Dynatrace +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Dynatrace.h +1 -1
- 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_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +1 -1
- 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/_CodeSignature/CodeResources +11 -11
- package/lib/instrumentor/DynatraceInstrumentation.js +1 -1
- package/lib/instrumentor/base/Application.js +4 -3
- package/lib/instrumentor/base/Dynatrace.js +27 -27
- package/lib/instrumentor/base/DynatraceRootAction.js +3 -3
- package/lib/instrumentor/base/Logger.js +2 -2
- package/lib/instrumentor/base/Touchable.js +3 -3
- package/lib/instrumentor/base/configuration/Configuration.js +13 -18
- package/lib/instrumentor/base/configuration/ConfigurationBuilder.js +56 -0
- package/lib/instrumentor/base/configuration/ConfigurationDefaults.js +2 -10
- package/lib/instrumentor/base/configuration/ConfigurationHandler.js +15 -0
- package/lib/instrumentor/base/configuration/ConfigurationPreset.js +23 -0
- package/lib/instrumentor/base/configuration/ManualStartupConfiguration.js +6 -4
- package/lib/react/Component.js +6 -6
- package/lib/react-navigation/ReactNavigation.js +22 -0
- package/package.json +1 -1
- package/scripts/Config.js +3 -0
- package/typings/react-native-dynatrace.d.ts +189 -3
- package/lib/instrumentor/base/configuration/AutoStartupConfiguration.js +0 -28
- package/lib/instrumentor/base/configuration/interface/IAutoConfiguration.js +0 -2
- /package/lib/instrumentor/base/configuration/{interface/IManualConfiguration.js → IConfiguration.js} +0 -0
package/README.md
CHANGED
|
@@ -17,8 +17,8 @@ If you want to start using this plugin and are not a Dynatrace customer yet, hea
|
|
|
17
17
|
* Typescript bindings to add manual instrumentation
|
|
18
18
|
|
|
19
19
|
## Requirements
|
|
20
|
-
* React
|
|
21
|
-
* React Native
|
|
20
|
+
* React v16.8 or newer
|
|
21
|
+
* React Native v0.59 or newer
|
|
22
22
|
* For Android users:
|
|
23
23
|
* SDK version 21+
|
|
24
24
|
* Gradle version 6.1.1+ ([How to update?](#updating-to-gradle-6))
|
|
@@ -29,8 +29,8 @@ If you want to start using this plugin and are not a Dynatrace customer yet, hea
|
|
|
29
29
|
## Agent Versions
|
|
30
30
|
This agent versions are configured in this plugin:
|
|
31
31
|
|
|
32
|
-
* Android Agent: 8.
|
|
33
|
-
* iOS Agent: 8.
|
|
32
|
+
* Android Agent: 8.279.1.1002
|
|
33
|
+
* iOS Agent: 8.279.1.1008
|
|
34
34
|
|
|
35
35
|
## Quick Setup
|
|
36
36
|
|
|
@@ -88,12 +88,12 @@ This agent versions are configured in this plugin:
|
|
|
88
88
|
|
|
89
89
|
# Quick Setup
|
|
90
90
|
|
|
91
|
-
> **Note**: If you are upgrading to React Native
|
|
91
|
+
> **Note**: If you are upgrading to React Native v0.70 (or newer) or using the @react-native-community/cli 9.x+ version, be aware that our automated script running before every start/run-android/run-ios command is no longer working. When your *dynatrace.config.js* changed be sure to execute `npx instrumentDynatrace` beforehand.
|
|
92
92
|
|
|
93
93
|
## 1. Install the plugin
|
|
94
94
|
1. Install the plugin by calling:
|
|
95
|
-
-
|
|
96
|
-
-
|
|
95
|
+
- React Native v0.60 or newer : `npm install @dynatrace/react-native-plugin`
|
|
96
|
+
- React Native v0.59.x : `react-native install @dynatrace/react-native-plugin`.
|
|
97
97
|
2. **iOS only :** If you use pods, you need to go into your `ios` directory and execute `pod install` to install the new Dynatrace dependency to your xCode project.
|
|
98
98
|
|
|
99
99
|
### Troubleshooting
|
|
@@ -105,17 +105,44 @@ This agent versions are configured in this plugin:
|
|
|
105
105
|
|
|
106
106
|
Depending on your React Native version, you will need to use a different way to register the transformer. If you don't know the version, enter `react-native --version` in your terminal.
|
|
107
107
|
|
|
108
|
-
The following configuration must be added.
|
|
108
|
+
The following configuration must be added. If you already have a babel transformer (babelTransformerPath) in place, you need to [use the upstreamTransformer property in dynatrace.config.js](#using-a-second-transformer-besides-the-dynatrace-transformer) to use a transformer besides our dynatrace transformer.
|
|
109
109
|
|
|
110
|
-
In your project's root directory, create or extend `metro.config.js` so that it contains the `transformer.babelTransformerPath`
|
|
110
|
+
In your project's root directory, create or extend `metro.config.js` so that it contains the following configuration properties `transformer.babelTransformerPath` and `reporter`:
|
|
111
|
+
|
|
112
|
+
#### For React Native v0.72.1 or newer
|
|
111
113
|
|
|
112
114
|
```js
|
|
113
|
-
|
|
115
|
+
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
|
|
116
|
+
const defaultConfig = getDefaultConfig(__dirname);
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Metro configuration
|
|
120
|
+
* https://facebook.github.io/metro/docs/configuration
|
|
121
|
+
*
|
|
122
|
+
* @type {import('metro-config').MetroConfig}
|
|
123
|
+
*/
|
|
124
|
+
const config = {
|
|
114
125
|
transformer: {
|
|
115
|
-
babelTransformerPath: require.resolve(
|
|
126
|
+
babelTransformerPath: require.resolve(
|
|
127
|
+
'@dynatrace/react-native-plugin/lib/dynatrace-transformer',
|
|
128
|
+
),
|
|
116
129
|
},
|
|
130
|
+
reporter: require('@dynatrace/react-native-plugin/lib/dynatrace-reporter'),
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
module.exports = mergeConfig(defaultConfig, config);
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
#### For React Native v0.59 or newer
|
|
117
137
|
|
|
118
|
-
|
|
138
|
+
```js
|
|
139
|
+
module.exports = {
|
|
140
|
+
transformer: {
|
|
141
|
+
babelTransformerPath: require.resolve(
|
|
142
|
+
'@dynatrace/react-native-plugin/lib/dynatrace-transformer'
|
|
143
|
+
)
|
|
144
|
+
},
|
|
145
|
+
reporter: require('@dynatrace/react-native-plugin/lib/dynatrace-reporter'),
|
|
119
146
|
};
|
|
120
147
|
```
|
|
121
148
|
|
|
@@ -135,8 +162,8 @@ Depending on your version of Metro or Expo (if used), your babel configuration `
|
|
|
135
162
|
|
|
136
163
|
The changes have to be done in the following cases:
|
|
137
164
|
|
|
138
|
-
- metro
|
|
139
|
-
- expo
|
|
165
|
+
- metro v0.72.0 or newer: https://github.com/facebook/metro/releases/tag/v0.72.0
|
|
166
|
+
- expo v44.0.0 or newer or babel-preset-expo v9.0.0 or newer: https://github.com/expo/expo/blob/main/packages/babel-preset-expo/CHANGELOG.md#900--2021-12-03
|
|
140
167
|
|
|
141
168
|
The required changes for the versions above can be found [here](#react-automatic-runtime).
|
|
142
169
|
|
|
@@ -191,9 +218,9 @@ module.exports = {
|
|
|
191
218
|
Example of a startup call:
|
|
192
219
|
|
|
193
220
|
```js
|
|
194
|
-
import { Dynatrace,
|
|
221
|
+
import { Dynatrace, ConfigurationBuilder } from '@dynatrace/react-native-plugin';
|
|
195
222
|
|
|
196
|
-
Dynatrace.start(new
|
|
223
|
+
Dynatrace.start(new ConfigurationBuilder("beaconUrl", "applicationId").buildConfiguration());
|
|
197
224
|
```
|
|
198
225
|
|
|
199
226
|
For more details see the section about [startup API](#plugin-startup).
|
|
@@ -210,21 +237,23 @@ import { Dynatrace, Platform } from '@dynatrace/react-native-plugin';
|
|
|
210
237
|
|
|
211
238
|
### Plugin startup
|
|
212
239
|
|
|
213
|
-
The manual startup of the plugin is triggered via the `start(configuration:
|
|
240
|
+
The manual startup of the plugin is triggered via the `start(configuration: IConfiguration)` method. If you configured `dynatrace.config.js` for manual startup then the plugin doesn't send any data when not calling this function. Besides the application id and the beacon URL, there are several optional configuration parameters, which are shown in the table below.
|
|
214
241
|
|
|
215
242
|
```js
|
|
216
|
-
new
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
)
|
|
243
|
+
const configurationBuilder = new ConfigurationBuilder("beaconUrl", "applicationId");
|
|
244
|
+
|
|
245
|
+
configurationBuilder.withCrashReporting(true)
|
|
246
|
+
.withLogLevel(LogLevel.Info)
|
|
247
|
+
.withLifecycleUpdate(false)
|
|
248
|
+
.withUserOptIn(false)
|
|
249
|
+
.withActionNamePrivacy(false)
|
|
250
|
+
.withBundleName(undefined);
|
|
251
|
+
|
|
252
|
+
Dynatrace.start(configurationBuilder.buildConfiguration());
|
|
226
253
|
```
|
|
227
254
|
|
|
255
|
+
**Info**: The values used in the function calls for the parameters are also their default value.
|
|
256
|
+
|
|
228
257
|
| Property name | Type | Default | Description |
|
|
229
258
|
|------------------|--------|-------------|---------------------------------------------------|
|
|
230
259
|
|beaconUrl |string |undefined |Identifies your environment within Dynatrace. This property is mandatory for [manual startup](#manual-oneagent-startup). OneAgent issues an error when the key isn't present.|
|
|
@@ -236,11 +265,9 @@ new ManualStartupConfiguration(
|
|
|
236
265
|
|actionNamePrivacy|boolean|false|Activates a privacy mode especially for Touchables and Buttons. Setting this option to true means that a name for the control will no longer be shown, e.g. "Touch on Button". When setting a dtActionName onto the component this setting will be ignored.
|
|
237
266
|
|bundleName|string|undefined|Should be used only if you have a multiple bundle setup where you load several .bundle files within your React Native application. Enter the name of your bundle. This should be unique in comparison to your other bundle names. This will ensure that actions coming from different bundles will not interfere with each other.
|
|
238
267
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
**Attention:** Please use those parameters only when doing a manual startup. If you want to do an automated startup, please configure the properties via the [auto startup configuration](#manual-startup-counterparts). You will find a list which explains all the counterparts for the available options here.
|
|
268
|
+
**Attention:**
|
|
269
|
+
* Keep in mind that configuration within the `dynatrace.config.js` file is the basis, even for manual startup. When we look at the lifecycleUpdate property: Per default if not used, it is false. If enabled (set to true) in `dynatrace.config.js` file, this will be also true if manual startup is used. You can still override this behavior by calling `ConfigurationBuilder.withLifecycleUpdate(false)`.
|
|
270
|
+
* Please use those parameters only when doing a manual startup. If you want to do an automated startup, please configure the properties via the [auto startup configuration](#manual-startup-counterparts). You will find a list which explains all the counterparts for the available options here.
|
|
244
271
|
|
|
245
272
|
### Monitor a Component
|
|
246
273
|
|
|
@@ -582,7 +609,7 @@ npx configDynatrace [optional: config=...]
|
|
|
582
609
|
|
|
583
610
|
## Customizing paths for configuration
|
|
584
611
|
|
|
585
|
-
> **Note:** This feature works directly on run-android, run-ios or start command only for
|
|
612
|
+
> **Note:** This feature works directly on run-android, run-ios or start command only for React Native v0.60.1 or newer until v0.69.x.
|
|
586
613
|
|
|
587
614
|
> **MacOS Users:** This feature is not working correctly on MacOS. Arguments are not passed between run-ios and starting the webserver. If you still want to use custom arguments you need to start the webserver first with custom arguments and later on executing run-ios, which will then no longer create a webserver as it is already running in background.
|
|
588
615
|
|
|
@@ -594,12 +621,12 @@ Our scripts assumes that the usual React Native project structure is given. The
|
|
|
594
621
|
|
|
595
622
|
Examples:
|
|
596
623
|
|
|
597
|
-
*
|
|
624
|
+
* React Native v0.60.1 or newer:
|
|
598
625
|
```
|
|
599
626
|
npx react-native run-android config=C:\SpecialFolderForDynatrace\dynatrace.config.js --port=2000
|
|
600
627
|
```
|
|
601
628
|
|
|
602
|
-
*
|
|
629
|
+
* React Native v0.70.0 or newer:
|
|
603
630
|
```
|
|
604
631
|
npx instrumentDynatrace config=C:\SpecialFolderForDynatrace\dynatrace.config.js
|
|
605
632
|
npx react-native run-android --port=2000
|
|
@@ -665,13 +692,13 @@ Once the above is completed, follow the steps from the [install plugin](#1-insta
|
|
|
665
692
|
When you are ready to build, make sure that you use the `plist=` parameter when running the `npx instrumentDynatrace` or `npx react-native run-ios` commands for the tvOS scheme.
|
|
666
693
|
Examples:
|
|
667
694
|
|
|
668
|
-
Using React Native
|
|
695
|
+
Using React Native v0.69.x or lower and @react-native-community/cli v8.x or lower:
|
|
669
696
|
|
|
670
697
|
```js
|
|
671
698
|
npx react-native run-ios --simulator "Apple TV" --scheme "ApplicationName-tvOS" plist=/path/to/application/ios/ApplicationName-tvOS/Info.plist
|
|
672
699
|
```
|
|
673
700
|
|
|
674
|
-
Using React Native
|
|
701
|
+
Using React Native v0.70 or higher or @react-native-community/cli v9.x or higher:
|
|
675
702
|
|
|
676
703
|
```js
|
|
677
704
|
// Update the Info.plist with the properties from the dynatrace.config.js file
|
|
@@ -988,7 +1015,7 @@ JavaScript:
|
|
|
988
1015
|
|
|
989
1016
|
## React Automatic Runtime
|
|
990
1017
|
|
|
991
|
-
React introduced with React
|
|
1018
|
+
React introduced with React v17.x, React v16.14.0, React v15.7.0, and React v14.10 the automatic runtime which changes the JSX transformation (https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html).
|
|
992
1019
|
|
|
993
1020
|
This impacts our instrumentation as well. To keep the instrumentation in place you need to change your babel configuration.
|
|
994
1021
|
|
|
@@ -1046,7 +1073,9 @@ module.exports = {
|
|
|
1046
1073
|
|
|
1047
1074
|
If you want to register the Dynatrace transformer in your configuration and you already have a transformer in place, change the upstreaming transformer for the Dynatrace transformer.
|
|
1048
1075
|
|
|
1049
|
-
This can be done via a configuration value in the `dynatrace.config.js`
|
|
1076
|
+
This can be done via a configuration value in the `dynatrace.config.js`. The following example shows how the configuration might look like for the popular `react-native-svg-transformer`. Be aware that the following example is targeting *React Native v0.72.1* or newer.
|
|
1077
|
+
|
|
1078
|
+
#### dynatrace.config.js
|
|
1050
1079
|
|
|
1051
1080
|
```js
|
|
1052
1081
|
// The `...` only indicates that there are other values as well, but we've omitted them in this example.
|
|
@@ -1059,6 +1088,56 @@ module.exports = {
|
|
|
1059
1088
|
}
|
|
1060
1089
|
```
|
|
1061
1090
|
|
|
1091
|
+
#### metro.config.js for React Native v0.72.1 or newer
|
|
1092
|
+
```js
|
|
1093
|
+
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
|
|
1094
|
+
const defaultConfig = getDefaultConfig(__dirname);
|
|
1095
|
+
const {assetExts, sourceExts} = defaultConfig.resolver;
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Metro configuration
|
|
1099
|
+
* https://facebook.github.io/metro/docs/configuration
|
|
1100
|
+
*
|
|
1101
|
+
* @type {import('metro-config').MetroConfig}
|
|
1102
|
+
*/
|
|
1103
|
+
const config = {
|
|
1104
|
+
transformer: {
|
|
1105
|
+
babelTransformerPath: require.resolve(
|
|
1106
|
+
'@dynatrace/react-native-plugin/lib/dynatrace-transformer',
|
|
1107
|
+
),
|
|
1108
|
+
},
|
|
1109
|
+
reporter: require('@dynatrace/react-native-plugin/lib/dynatrace-reporter'),
|
|
1110
|
+
resolver: {
|
|
1111
|
+
assetExts: assetExts.filter(ext => ext !== 'svg'),
|
|
1112
|
+
sourceExts: [...sourceExts, 'cjs', 'svg'],
|
|
1113
|
+
},
|
|
1114
|
+
};
|
|
1115
|
+
|
|
1116
|
+
module.exports = mergeConfig(defaultConfig, config);
|
|
1117
|
+
```
|
|
1118
|
+
|
|
1119
|
+
#### metro.config.js for React Native v0.59 or newer
|
|
1120
|
+
|
|
1121
|
+
```js
|
|
1122
|
+
const { getDefaultConfig } = require("metro-config");
|
|
1123
|
+
|
|
1124
|
+
module.exports = (async () => {
|
|
1125
|
+
const {
|
|
1126
|
+
resolver: { sourceExts, assetExts }
|
|
1127
|
+
} = await getDefaultConfig();
|
|
1128
|
+
return {
|
|
1129
|
+
transformer: {
|
|
1130
|
+
babelTransformerPath: require.resolve('@dynatrace/react-native-plugin/lib/dynatrace-transformer')
|
|
1131
|
+
},
|
|
1132
|
+
reporter: require('@dynatrace/react-native-plugin/lib/dynatrace-reporter'),
|
|
1133
|
+
resolver: {
|
|
1134
|
+
assetExts: assetExts.filter((ext) => ext !== "svg"),
|
|
1135
|
+
sourceExts: [...sourceExts, "cjs", "svg"]
|
|
1136
|
+
}
|
|
1137
|
+
};
|
|
1138
|
+
})();
|
|
1139
|
+
```
|
|
1140
|
+
|
|
1062
1141
|
## Maven Central in top-level gradle file
|
|
1063
1142
|
|
|
1064
1143
|
Because the Dynatrace Android agent now requires the MavenCentral repository, if either `jcenter()` or `mavenCentral()` is not added inside of **ALL** the repositories blocks via the [top-level build.gradle](https://dt-url.net/jm610pso), the build will fail.
|
|
@@ -1076,13 +1155,13 @@ JCenter has noted its [sunset](https://jfrog.com/blog/into-the-sunset-bintray-jc
|
|
|
1076
1155
|
|
|
1077
1156
|
Updating Gradle only affects your Android build. To update your project to Gradle 6, modify the following 3 files in your Android folder.
|
|
1078
1157
|
|
|
1079
|
-
- `ProjectFolder\android\gradle\wrapper\gradle-wrapper.properties` Update the distributionUrl to get a
|
|
1158
|
+
- `ProjectFolder\android\gradle\wrapper\gradle-wrapper.properties` Update the distributionUrl to get a newer gradle version.
|
|
1080
1159
|
|
|
1081
1160
|
```
|
|
1082
1161
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
|
|
1083
1162
|
```
|
|
1084
1163
|
|
|
1085
|
-
- `ProjectFolder\android\build.gradle` Update the version of your Android gradle plugin (minimum 4.x) as Gradle 6 needs a
|
|
1164
|
+
- `ProjectFolder\android\build.gradle` Update the version of your Android gradle plugin (minimum 4.x) as Gradle 6 needs a newer one. To get the newer versions, add `google()` in your repositories. Example of a build.gradle file:
|
|
1086
1165
|
|
|
1087
1166
|
```
|
|
1088
1167
|
buildscript {
|
|
@@ -1195,6 +1274,14 @@ If you are struggling with a problem, submit a support ticket to Dynatrace (supp
|
|
|
1195
1274
|
<br/><br/>
|
|
1196
1275
|
## Changelog
|
|
1197
1276
|
|
|
1277
|
+
2.279.1
|
|
1278
|
+
* Update Android (8.279.1.1002) & iOS Agent (8.279.1.1008)
|
|
1279
|
+
|
|
1280
|
+
2.277.1
|
|
1281
|
+
* Update Android (8.277.1.1003) & iOS Agent (8.277.1.1004)
|
|
1282
|
+
* Introduced `ConfigurationBuilder` for Manual Startup
|
|
1283
|
+
* Deprecating `ManualStartupConfiguration` for Manual Startup
|
|
1284
|
+
|
|
1198
1285
|
2.275.1
|
|
1199
1286
|
* Update iOS Agent (8.275.1.1006)
|
|
1200
1287
|
* Add documentation for manually tagging web requests
|
package/android/build.gradle
CHANGED
|
@@ -36,7 +36,7 @@ repositories {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
dependencies {
|
|
39
|
-
implementation 'com.dynatrace.agent:agent-android:8.
|
|
39
|
+
implementation 'com.dynatrace.agent:agent-android:8.279.1.1002'
|
|
40
40
|
implementation "com.facebook.react:react-native:${safeExtGet('reactNative', '+')}"
|
|
41
41
|
}
|
|
42
42
|
|
package/files/plugin.gradle
CHANGED
package/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { Dynatrace } from './lib/instrumentor/base/Dynatrace';
|
|
2
2
|
export { DataCollectionLevel } from './lib/instrumentor/base/model/DataCollectionLevel';
|
|
3
3
|
export { ManualStartupConfiguration } from './lib/instrumentor/base/configuration/ManualStartupConfiguration';
|
|
4
|
+
export { ConfigurationBuilder } from './lib/instrumentor/base/configuration/ConfigurationBuilder';
|
|
4
5
|
export { Platform } from './lib/instrumentor/base/model/Platform';
|
|
5
6
|
export { LogLevel } from './lib/instrumentor/base/model/LogLevel';
|
|
6
7
|
export { ApplicationHandler } from './lib/instrumentor/base/Application';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<array>
|
|
7
7
|
<dict>
|
|
8
8
|
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>
|
|
9
|
+
<string>tvos-arm64</string>
|
|
10
10
|
<key>LibraryPath</key>
|
|
11
11
|
<string>Dynatrace.framework</string>
|
|
12
12
|
<key>SupportedArchitectures</key>
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
<string>arm64</string>
|
|
15
15
|
</array>
|
|
16
16
|
<key>SupportedPlatform</key>
|
|
17
|
-
<string>
|
|
17
|
+
<string>tvos</string>
|
|
18
18
|
</dict>
|
|
19
19
|
<dict>
|
|
20
20
|
<key>LibraryIdentifier</key>
|
|
21
|
-
<string>
|
|
21
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
22
22
|
<key>LibraryPath</key>
|
|
23
23
|
<string>Dynatrace.framework</string>
|
|
24
24
|
<key>SupportedArchitectures</key>
|
|
@@ -27,36 +27,36 @@
|
|
|
27
27
|
<string>x86_64</string>
|
|
28
28
|
</array>
|
|
29
29
|
<key>SupportedPlatform</key>
|
|
30
|
-
<string>
|
|
30
|
+
<string>ios</string>
|
|
31
31
|
<key>SupportedPlatformVariant</key>
|
|
32
32
|
<string>simulator</string>
|
|
33
33
|
</dict>
|
|
34
34
|
<dict>
|
|
35
35
|
<key>LibraryIdentifier</key>
|
|
36
|
-
<string>tvos-
|
|
36
|
+
<string>tvos-arm64_x86_64-simulator</string>
|
|
37
37
|
<key>LibraryPath</key>
|
|
38
38
|
<string>Dynatrace.framework</string>
|
|
39
39
|
<key>SupportedArchitectures</key>
|
|
40
40
|
<array>
|
|
41
41
|
<string>arm64</string>
|
|
42
|
+
<string>x86_64</string>
|
|
42
43
|
</array>
|
|
43
44
|
<key>SupportedPlatform</key>
|
|
44
45
|
<string>tvos</string>
|
|
46
|
+
<key>SupportedPlatformVariant</key>
|
|
47
|
+
<string>simulator</string>
|
|
45
48
|
</dict>
|
|
46
49
|
<dict>
|
|
47
50
|
<key>LibraryIdentifier</key>
|
|
48
|
-
<string>ios-
|
|
51
|
+
<string>ios-arm64</string>
|
|
49
52
|
<key>LibraryPath</key>
|
|
50
53
|
<string>Dynatrace.framework</string>
|
|
51
54
|
<key>SupportedArchitectures</key>
|
|
52
55
|
<array>
|
|
53
56
|
<string>arm64</string>
|
|
54
|
-
<string>x86_64</string>
|
|
55
57
|
</array>
|
|
56
58
|
<key>SupportedPlatform</key>
|
|
57
59
|
<string>ios</string>
|
|
58
|
-
<key>SupportedPlatformVariant</key>
|
|
59
|
-
<string>simulator</string>
|
|
60
60
|
</dict>
|
|
61
61
|
</array>
|
|
62
62
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -572,7 +572,7 @@
|
|
|
572
572
|
},
|
|
573
573
|
"ConstValues": [
|
|
574
574
|
{
|
|
575
|
-
"filePath": "\/opt\/jenkins\/workspace\/eAgent_ios-agent_release_8.
|
|
575
|
+
"filePath": "\/opt\/jenkins\/workspace\/eAgent_ios-agent_release_8.279.x\/adk\/DynatraceUEM\/Dynatrace\/SwiftUIExtensions.swift",
|
|
576
576
|
"kind": "BooleanLiteral",
|
|
577
577
|
"offset": 1277,
|
|
578
578
|
"length": 4,
|
package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace
CHANGED
|
Binary file
|
package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Info.plist
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -572,7 +572,7 @@
|
|
|
572
572
|
},
|
|
573
573
|
"ConstValues": [
|
|
574
574
|
{
|
|
575
|
-
"filePath": "\/opt\/jenkins\/workspace\/eAgent_ios-agent_release_8.
|
|
575
|
+
"filePath": "\/opt\/jenkins\/workspace\/eAgent_ios-agent_release_8.279.x\/adk\/DynatraceUEM\/Dynatrace\/SwiftUIExtensions.swift",
|
|
576
576
|
"kind": "BooleanLiteral",
|
|
577
577
|
"offset": 1277,
|
|
578
578
|
"length": 4,
|
|
@@ -572,7 +572,7 @@
|
|
|
572
572
|
},
|
|
573
573
|
"ConstValues": [
|
|
574
574
|
{
|
|
575
|
-
"filePath": "\/opt\/jenkins\/workspace\/eAgent_ios-agent_release_8.
|
|
575
|
+
"filePath": "\/opt\/jenkins\/workspace\/eAgent_ios-agent_release_8.279.x\/adk\/DynatraceUEM\/Dynatrace\/SwiftUIExtensions.swift",
|
|
576
576
|
"kind": "BooleanLiteral",
|
|
577
577
|
"offset": 1277,
|
|
578
578
|
"length": 4,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</data>
|
|
11
11
|
<key>Headers/Dynatrace.h</key>
|
|
12
12
|
<data>
|
|
13
|
-
|
|
13
|
+
4R14YNDzQ2t6gVLICOR9y5SdsTQ=
|
|
14
14
|
</data>
|
|
15
15
|
<key>Headers/DynatraceSwiftUI.h</key>
|
|
16
16
|
<data>
|
|
@@ -22,19 +22,19 @@
|
|
|
22
22
|
</data>
|
|
23
23
|
<key>Info.plist</key>
|
|
24
24
|
<data>
|
|
25
|
-
|
|
25
|
+
YxznMhoJbJd0XUOYxNlbV5t/axE=
|
|
26
26
|
</data>
|
|
27
27
|
<key>Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
IvyunfBrYVZfGk40Ofg8TNHvz7o=
|
|
30
30
|
</data>
|
|
31
31
|
<key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
|
|
32
32
|
<data>
|
|
33
|
-
|
|
33
|
+
afkhswQOQrvBK0pYTn3QObAA+4Y=
|
|
34
34
|
</data>
|
|
35
35
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
36
36
|
<data>
|
|
37
|
-
|
|
37
|
+
xv2Ho3pny/r5G2cLYIotrVqBC4o=
|
|
38
38
|
</data>
|
|
39
39
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
40
40
|
<data>
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
</data>
|
|
51
51
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
|
52
52
|
<data>
|
|
53
|
-
|
|
53
|
+
McIMSYevb7EMazqlTDW/axnAPck=
|
|
54
54
|
</data>
|
|
55
55
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
56
56
|
<data>
|
|
57
|
-
|
|
57
|
+
xv2Ho3pny/r5G2cLYIotrVqBC4o=
|
|
58
58
|
</data>
|
|
59
59
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
60
60
|
<data>
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
</data>
|
|
71
71
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
|
72
72
|
<data>
|
|
73
|
-
|
|
73
|
+
OPbffP0WHjrZAAnHb+NQ8zA0Xfs=
|
|
74
74
|
</data>
|
|
75
75
|
<key>Modules/module.modulemap</key>
|
|
76
76
|
<data>
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
<dict>
|
|
91
91
|
<key>hash2</key>
|
|
92
92
|
<data>
|
|
93
|
-
|
|
93
|
+
U9eGbN/8QljNwyzW+pX6rSlRquji362/5Bsv0ZbexOc=
|
|
94
94
|
</data>
|
|
95
95
|
</dict>
|
|
96
96
|
<key>Headers/DynatraceSwiftUI.h</key>
|
|
@@ -111,21 +111,21 @@
|
|
|
111
111
|
<dict>
|
|
112
112
|
<key>hash2</key>
|
|
113
113
|
<data>
|
|
114
|
-
|
|
114
|
+
icxKwDtCgMuB9/sVmz/HxDjcRNbCSUKRZ4vKV3rdlBs=
|
|
115
115
|
</data>
|
|
116
116
|
</dict>
|
|
117
117
|
<key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
|
|
118
118
|
<dict>
|
|
119
119
|
<key>hash2</key>
|
|
120
120
|
<data>
|
|
121
|
-
|
|
121
|
+
+Wx01nOWAEn0jCjkkYo6kDhEAFpRXt1AVC7FWoScpXg=
|
|
122
122
|
</data>
|
|
123
123
|
</dict>
|
|
124
124
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
125
125
|
<dict>
|
|
126
126
|
<key>hash2</key>
|
|
127
127
|
<data>
|
|
128
|
-
|
|
128
|
+
H7xvM6xiHnJcWchlKEKnEgZlr9CKS8IeaM8rKwZGo9Y=
|
|
129
129
|
</data>
|
|
130
130
|
</dict>
|
|
131
131
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
@@ -153,14 +153,14 @@
|
|
|
153
153
|
<dict>
|
|
154
154
|
<key>hash2</key>
|
|
155
155
|
<data>
|
|
156
|
-
|
|
156
|
+
1CfxTeEJBsxtg9l0KUEfcULcNMhLlhrlJS/k5C+GufU=
|
|
157
157
|
</data>
|
|
158
158
|
</dict>
|
|
159
159
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
160
160
|
<dict>
|
|
161
161
|
<key>hash2</key>
|
|
162
162
|
<data>
|
|
163
|
-
|
|
163
|
+
H7xvM6xiHnJcWchlKEKnEgZlr9CKS8IeaM8rKwZGo9Y=
|
|
164
164
|
</data>
|
|
165
165
|
</dict>
|
|
166
166
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
<dict>
|
|
189
189
|
<key>hash2</key>
|
|
190
190
|
<data>
|
|
191
|
-
|
|
191
|
+
8nbYuGCzAnNBz33m1LvZJPmHWne8stV6BIcCU1KtMME=
|
|
192
192
|
</data>
|
|
193
193
|
</dict>
|
|
194
194
|
<key>Modules/module.modulemap</key>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace
CHANGED
|
Binary file
|
package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Info.plist
CHANGED
|
Binary file
|
|
Binary file
|