@datadog/mobile-react-native 1.8.5 → 1.9.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.
- package/android/build.gradle +10 -0
- package/ios/Sources/DdTraceImplementation.swift +2 -3
- package/jest/mock.js +1 -0
- 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
package/android/build.gradle
CHANGED
|
@@ -84,6 +84,16 @@ def getExtOrIntegerDefault(name) {
|
|
|
84
84
|
android {
|
|
85
85
|
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
|
|
86
86
|
buildToolsVersion getExtOrDefault('buildToolsVersion')
|
|
87
|
+
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
|
|
88
|
+
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
|
|
89
|
+
namespace = "com.datadog.reactnative"
|
|
90
|
+
}
|
|
91
|
+
if (agpVersion.tokenize('.')[0].toInteger() >= 8) {
|
|
92
|
+
buildFeatures {
|
|
93
|
+
buildConfig = true
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
87
97
|
defaultConfig {
|
|
88
98
|
minSdkVersion 21
|
|
89
99
|
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
|
|
@@ -44,14 +44,13 @@ public class DdTraceImplementation: NSObject {
|
|
|
44
44
|
public func finishSpan(spanId: NSString, context: NSDictionary, timestampMs: Double, resolve:RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) -> Void {
|
|
45
45
|
objc_sync_enter(self)
|
|
46
46
|
let optionalSpan = spanDictionary.removeValue(forKey: spanId)
|
|
47
|
-
objc_sync_exit(self)
|
|
48
|
-
|
|
49
47
|
if let span = optionalSpan {
|
|
50
48
|
set(tags: castAttributesToSwift(context).mergeWithGlobalAttributes(), to: span)
|
|
51
49
|
let timeIntervalSince1970: TimeInterval = timestampMs / 1_000
|
|
52
50
|
span.finish(at: Date(timeIntervalSince1970: timeIntervalSince1970))
|
|
53
51
|
}
|
|
54
|
-
|
|
52
|
+
objc_sync_exit(self)
|
|
53
|
+
|
|
55
54
|
resolve(nil)
|
|
56
55
|
}
|
|
57
56
|
|
package/jest/mock.js
CHANGED
|
@@ -18,6 +18,7 @@ const actualDatadog = jest.requireActual('@datadog/mobile-react-native');
|
|
|
18
18
|
const DatadogProviderMock = ({ children }) => {
|
|
19
19
|
return <>{children}</>;
|
|
20
20
|
};
|
|
21
|
+
DatadogProviderMock.initialize = jest.fn().mockResolvedValue();
|
|
21
22
|
|
|
22
23
|
module.exports = {
|
|
23
24
|
...actualDatadog,
|
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 = '1.
|
|
1
|
+
{"version":3,"sources":["version.ts"],"names":["version"],"mappings":";;;;;;AAAA;AACO,MAAMA,OAAO,GAAG,OAAhB","sourcesContent":["// generated by genversion\nexport const version = '1.9.0';\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 = '1.
|
|
1
|
+
{"version":3,"sources":["version.ts"],"names":["version"],"mappings":"AAAA;AACA,OAAO,MAAMA,OAAO,GAAG,OAAhB","sourcesContent":["// generated by genversion\nexport const version = '1.9.0';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.
|
|
1
|
+
export declare const version = "1.9.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datadog/mobile-react-native",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "A client-side React Native module to interact with Datadog",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datadog",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"javaPackageName": "com.datadog.reactnative"
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "83bae8e19d5a0a84fd57bdeea2b0b49009cdbeb5"
|
|
90
90
|
}
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by genversion
|
|
2
|
-
export const version = '1.
|
|
2
|
+
export const version = '1.9.0';
|