@datadog/mobile-react-native 2.1.1 → 2.2.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.
@@ -19,12 +19,12 @@ Pod::Spec.new do |s|
19
19
  s.dependency "React-Core"
20
20
 
21
21
  # /!\ Remember to keep the versions in sync with DatadogSDKReactNativeSessionReplay.podspec
22
- s.dependency 'DatadogCore', '~> 2.6.0'
23
- s.dependency 'DatadogLogs', '~> 2.6.0'
24
- s.dependency 'DatadogTrace', '~> 2.6.0'
25
- s.dependency 'DatadogRUM', '~> 2.6.0'
26
- s.dependency 'DatadogCrashReporting', '~> 2.6.0'
27
- s.dependency 'DatadogWebViewTracking', '~> 2.6.0'
22
+ s.dependency 'DatadogCore', '~> 2.7.1'
23
+ s.dependency 'DatadogLogs', '~> 2.7.1'
24
+ s.dependency 'DatadogTrace', '~> 2.7.1'
25
+ s.dependency 'DatadogRUM', '~> 2.7.1'
26
+ s.dependency 'DatadogCrashReporting', '~> 2.7.1'
27
+ s.dependency 'DatadogWebViewTracking', '~> 2.7.1'
28
28
 
29
29
  s.test_spec 'Tests' do |test_spec|
30
30
  test_spec.source_files = 'ios/Tests/*.swift'
@@ -186,10 +186,10 @@ dependencies {
186
186
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
187
187
  compileOnly "com.squareup.okhttp3:okhttp:3.12.13"
188
188
 
189
- implementation "com.datadoghq:dd-sdk-android-rum:2.5.0"
190
- implementation "com.datadoghq:dd-sdk-android-logs:2.5.0"
191
- implementation "com.datadoghq:dd-sdk-android-trace:2.5.0"
192
- implementation "com.datadoghq:dd-sdk-android-webview:2.5.0"
189
+ implementation "com.datadoghq:dd-sdk-android-rum:2.6.2"
190
+ implementation "com.datadoghq:dd-sdk-android-logs:2.6.2"
191
+ implementation "com.datadoghq:dd-sdk-android-trace:2.6.2"
192
+ implementation "com.datadoghq:dd-sdk-android-webview:2.6.2"
193
193
  testImplementation "org.junit.platform:junit-platform-launcher:1.6.2"
194
194
  testImplementation "org.junit.jupiter:junit-jupiter-api:5.6.2"
195
195
  testImplementation "org.junit.jupiter:junit-jupiter-engine:5.6.2"
@@ -314,6 +314,9 @@ class DdRumImplementation(private val datadog: DatadogWrapper = DatadogSDKWrappe
314
314
  "patch" -> RumResourceMethod.PATCH
315
315
  "put" -> RumResourceMethod.PUT
316
316
  "post" -> RumResourceMethod.POST
317
+ "trace" -> RumResourceMethod.TRACE
318
+ "options" -> RumResourceMethod.OPTIONS
319
+ "connect" -> RumResourceMethod.CONNECT
317
320
  else -> {
318
321
  Log.w(
319
322
  DdRum::class.java.canonicalName,
@@ -37,7 +37,7 @@ internal class ActionEventForgeryFactory :
37
37
  )
38
38
  }
39
39
  ),
40
- view = ActionEvent.View(
40
+ view = ActionEvent.ActionEventView(
41
41
  id = forge.getForgery<UUID>().toString(),
42
42
  url = forge.aStringMatching("https://[a-z]+.[a-z]{3}/[a-z0-9_/]+"),
43
43
  referrer = forge.aNullable { getForgery<URL>().toString() },
@@ -45,7 +45,7 @@ internal class ResourceEventForgeryFactory :
45
45
  )
46
46
  }
47
47
  ),
48
- view = ResourceEvent.View(
48
+ view = ResourceEvent.ResourceEventView(
49
49
  id = forge.getForgery<UUID>().toString(),
50
50
  url = forge.aStringMatching("https://[a-z]+.[a-z]{3}/[a-z0-9_/]+"),
51
51
  referrer = forge.aNullable { getForgery<URL>().toString() },
@@ -72,7 +72,7 @@ public class DatadogSDKWrapper {
72
72
  if let core = coreInstance {
73
73
  RUM.enable(with: configuration, in: core)
74
74
  } else {
75
- consolePrint("Core instance was not found when initializing RUM.")
75
+ consolePrint("Core instance was not found when initializing RUM.", .critical)
76
76
  }
77
77
  }
78
78
 
@@ -80,7 +80,7 @@ public class DatadogSDKWrapper {
80
80
  if let core = coreInstance {
81
81
  Logs.enable(with: configuration, in: core)
82
82
  } else {
83
- consolePrint("Core instance was not found when initializing Logs.")
83
+ consolePrint("Core instance was not found when initializing Logs.", .critical)
84
84
  }
85
85
  }
86
86
 
@@ -88,7 +88,7 @@ public class DatadogSDKWrapper {
88
88
  if let core = coreInstance {
89
89
  Trace.enable(with: configuration, in: core)
90
90
  } else {
91
- consolePrint("Core instance was not found when initializing Trace.")
91
+ consolePrint("Core instance was not found when initializing Trace.", .critical)
92
92
  }
93
93
  }
94
94
 
@@ -96,7 +96,7 @@ public class DatadogSDKWrapper {
96
96
  if let core = coreInstance {
97
97
  CrashReporting.enable(in: core)
98
98
  } else {
99
- consolePrint("Core instance was not found when initializing CrashReporting.")
99
+ consolePrint("Core instance was not found when initializing CrashReporting.", .critical)
100
100
  }
101
101
  }
102
102
 
@@ -104,7 +104,7 @@ public class DatadogSDKWrapper {
104
104
  if let core = coreInstance {
105
105
  return Logger.create(with: Logger.Configuration(networkInfoEnabled: true, consoleLogFormat: .short), in: core)
106
106
  } else {
107
- consolePrint("Core instance was not found when creating Logger.")
107
+ consolePrint("Core instance was not found when creating Logger.", .critical)
108
108
  return Logger.create(with: Logger.Configuration(networkInfoEnabled: true, consoleLogFormat: .short))
109
109
  }
110
110
  }
@@ -151,7 +151,7 @@ public class DatadogSDKWrapper {
151
151
  if let core = coreInstance {
152
152
  webviewMessageEmitter = WebViewTracking._internal.messageEmitter(in: core)
153
153
  } else {
154
- consolePrint("Core instance was not found when initializing Webview tracking.")
154
+ consolePrint("Core instance was not found when initializing Webview tracking.", .critical)
155
155
  }
156
156
  }
157
157
 
@@ -68,7 +68,7 @@ public class DdSdkImplementation: NSObject {
68
68
  if DatadogSDKWrapper.shared.isInitialized() {
69
69
  // Initializing the SDK twice results in Global.rum and
70
70
  // Global.sharedTracer to be set to no-op instances
71
- consolePrint("Datadog SDK is already initialized, skipping initialization.")
71
+ consolePrint("Datadog SDK is already initialized, skipping initialization.", .debug)
72
72
  DatadogSDKWrapper.shared.telemetryDebug(id: "datadog_react_native: RN SDK was already initialized in native", message: "RN SDK was already initialized in native")
73
73
 
74
74
  // This block is called when SDK is reinitialized and the javascript has been wiped out.
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = void 0;
7
7
  // generated by genversion
8
- const version = '2.1.1';
8
+ const version = '2.2.0';
9
9
  exports.version = version;
10
10
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["version.ts"],"names":["version"],"mappings":";;;;;;AAAA;AACO,MAAMA,OAAO,GAAG,OAAhB","sourcesContent":["// generated by genversion\nexport const version = '2.1.1';\n"]}
1
+ {"version":3,"sources":["version.ts"],"names":["version"],"mappings":";;;;;;AAAA;AACO,MAAMA,OAAO,GAAG,OAAhB","sourcesContent":["// generated by genversion\nexport const version = '2.2.0';\n"]}
@@ -1,3 +1,3 @@
1
1
  // generated by genversion
2
- export const version = '2.1.1';
2
+ export const version = '2.2.0';
3
3
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["version.ts"],"names":["version"],"mappings":"AAAA;AACA,OAAO,MAAMA,OAAO,GAAG,OAAhB","sourcesContent":["// generated by genversion\nexport const version = '2.1.1';\n"]}
1
+ {"version":3,"sources":["version.ts"],"names":["version"],"mappings":"AAAA;AACA,OAAO,MAAMA,OAAO,GAAG,OAAhB","sourcesContent":["// generated by genversion\nexport const version = '2.2.0';\n"]}
@@ -1 +1 @@
1
- export declare const version = "2.1.1";
1
+ export declare const version = "2.2.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datadog/mobile-react-native",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "A client-side React Native module to interact with Datadog",
5
5
  "keywords": [
6
6
  "datadog",
@@ -94,5 +94,5 @@
94
94
  "javaPackageName": "com.datadog.reactnative"
95
95
  }
96
96
  },
97
- "gitHead": "fa07844b4091630f6ce57272ca910ce9b82c6b00"
97
+ "gitHead": "dc9dbeeb115e67456bc6ab9a1dcc682c406e0a05"
98
98
  }
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- export const version = '2.1.1';
2
+ export const version = '2.2.0';