@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.
- package/android/src/main/kotlin/com/datadog/reactnative/DdSdkConfigurationExt.kt +1 -1
- package/android/src/main/kotlin/com/datadog/reactnative/SdkVersion.kt +1 -1
- package/android/src/test/kotlin/com/datadog/tools/unit/DdSdkConfigurationExt.kt +1 -1
- package/ios/Sources/DatadogSDKWrapper.swift +3 -3
- package/ios/Sources/DdLogsImplementation.swift +1 -1
- package/ios/Sources/DdSdkNativeInitialization.swift +1 -1
- package/ios/Sources/SdkVersion.swift +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/commonjs/version.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/module/version.js.map +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/package.json +2 -2
- package/src/version.ts +1 -1
|
@@ -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("
|
|
37
|
+
additionalConfig = getMap("additionalConfiguration")?.toHashMap(),
|
|
38
38
|
configurationForTelemetry = getMap(
|
|
39
39
|
"configurationForTelemetry"
|
|
40
40
|
)?.asConfigurationForTelemetry(),
|
|
@@ -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("
|
|
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
|
|
package/lib/commonjs/version.js
CHANGED
|
@@ -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.
|
|
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"]}
|
package/lib/module/version.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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": "
|
|
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.
|
|
2
|
+
export const version = '2.3.1';
|