@datadog/mobile-react-native 2.3.0 → 2.3.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.
@@ -34,7 +34,7 @@ internal fun ReadableMap.asDdSdkConfiguration(): DdSdkConfiguration {
34
34
  batchSize = getString("batchSize"),
35
35
  trackBackgroundEvents = getBoolean("trackBackgroundEvents"),
36
36
  customEndpoints = getMap("customEndpoints")?.asCustomEndpoints(),
37
- additionalConfig = getMap("additionalConfig")?.toHashMap(),
37
+ additionalConfig = getMap("additionalConfiguration")?.toHashMap(),
38
38
  configurationForTelemetry = getMap(
39
39
  "configurationForTelemetry"
40
40
  )?.asConfigurationForTelemetry(),
@@ -7,4 +7,4 @@
7
7
  package com.datadog.reactnative
8
8
 
9
9
  // This is automatically updated by the update-version.sh script
10
- internal const val SDK_VERSION = "2.3.0"
10
+ internal const val SDK_VERSION = "2.3.1"
@@ -82,7 +82,7 @@ fun DdSdkConfiguration.toReadableJavaOnlyMap(): ReadableMap {
82
82
  customEndpoints?.let {
83
83
  map.put("customEndpoints", it.toReadableJavaOnlyMap())
84
84
  }
85
- additionalConfig?.let { map.put("additionalConfig", it.toReadableMap()) }
85
+ additionalConfig?.let { map.put("additionalConfiguration", it.toReadableMap()) }
86
86
  configurationForTelemetry?.let {
87
87
  map.put("configurationForTelemetry", it.toReadableJavaOnlyMap())
88
88
  }
@@ -23,7 +23,7 @@ public class DatadogSDKWrapper {
23
23
 
24
24
  // Initialization callbacks
25
25
  internal var onCoreInitializedListeners: [OnCoreInitializedListener] = []
26
- internal var loggerConfiguration = Logger.Configuration()
26
+ internal var loggerConfiguration = DatadogLogs.Logger.Configuration()
27
27
  // Core instance
28
28
  private var coreInstance: DatadogCoreProtocol? = nil
29
29
 
@@ -46,7 +46,7 @@ public class DatadogSDKWrapper {
46
46
  // SDK Wrapper
47
47
  internal func initialize(
48
48
  coreConfiguration: Datadog.Configuration,
49
- loggerConfiguration: Logger.Configuration,
49
+ loggerConfiguration: DatadogLogs.Logger.Configuration,
50
50
  trackingConsent: TrackingConsent
51
51
  ) -> Void {
52
52
  let core = Datadog.initialize(with: coreConfiguration, trackingConsent: trackingConsent)
@@ -109,7 +109,7 @@ public class DatadogSDKWrapper {
109
109
  return CoreRegistry.default
110
110
  }()
111
111
 
112
- return Logger.create(with: loggerConfiguration, in: core)
112
+ return DatadogLogs.Logger.create(with: loggerConfiguration, in: core)
113
113
  }
114
114
 
115
115
  // Telemetry
@@ -112,7 +112,7 @@ public class DdLogsImplementation: NSObject {
112
112
  }
113
113
  }
114
114
 
115
- internal extension Logger.Configuration {
115
+ internal extension DatadogLogs.Logger.Configuration {
116
116
  /// Creates a Logger configuration from briged configuration dictionary.
117
117
  ///
118
118
  /// - Parameter dictionnary: The configuration from the bridge.
@@ -43,7 +43,7 @@ public class DdSdkNativeInitialization: NSObject {
43
43
  let coreConfiguration = self.buildSDKConfiguration(configuration: sdkConfiguration)
44
44
  DatadogSDKWrapper.shared.initialize(
45
45
  coreConfiguration: coreConfiguration,
46
- loggerConfiguration: Logger.Configuration(sdkConfiguration),
46
+ loggerConfiguration: DatadogLogs.Logger.Configuration(sdkConfiguration),
47
47
  trackingConsent: sdkConfiguration.trackingConsent
48
48
  )
49
49
 
@@ -7,4 +7,4 @@
7
7
  import Foundation
8
8
 
9
9
  // This is automatically updated by the update-version.sh script
10
- let SdkVersion = "2.3.0"
10
+ let SdkVersion = "2.3.1"
@@ -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.3.0';
8
+ const version = '2.3.1';
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.3.0';\n"]}
1
+ {"version":3,"sources":["version.ts"],"names":["version"],"mappings":";;;;;;AAAA;AACO,MAAMA,OAAO,GAAG,OAAhB","sourcesContent":["// generated by genversion\nexport const version = '2.3.1';\n"]}
@@ -1,3 +1,3 @@
1
1
  // generated by genversion
2
- export const version = '2.3.0';
2
+ export const version = '2.3.1';
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.3.0';\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.3.1';\n"]}
@@ -1 +1 @@
1
- export declare const version = "2.3.0";
1
+ export declare const version = "2.3.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datadog/mobile-react-native",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "A client-side React Native module to interact with Datadog",
5
5
  "keywords": [
6
6
  "datadog",
@@ -97,5 +97,5 @@
97
97
  "javaPackageName": "com.datadog.reactnative"
98
98
  }
99
99
  },
100
- "gitHead": "0025757ecf55fd259a4816fd76ae94c8f217c83b"
100
+ "gitHead": "5908b74a76a4046ed2e6993560eb616a6500cdf7"
101
101
  }
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- export const version = '2.3.0';
2
+ export const version = '2.3.1';