@coralogix/react-native-plugin 0.1.8 → 0.1.10
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/CHANGELOG.md +13 -1
- package/CxSdk.podspec +2 -2
- package/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/ios/CxSdk.mm +4 -0
- package/ios/CxSdk.swift +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 0.1.10 (2025-11-11)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
Fix iOS not sending custom measurement
|
|
6
|
+
|
|
7
|
+
## 0.1.9 (2025-11-10)
|
|
8
|
+
|
|
9
|
+
### 🩹 Patch
|
|
10
|
+
|
|
11
|
+
- Bump iOS native version to 1.4.0
|
|
12
|
+
|
|
1
13
|
## 0.1.8 (2025-11-04)
|
|
2
14
|
|
|
3
15
|
### 🩹 Fixes
|
|
@@ -8,7 +20,7 @@
|
|
|
8
20
|
|
|
9
21
|
### 🚀 Features
|
|
10
22
|
|
|
11
|
-
- added automatic navigation detection using the
|
|
23
|
+
- added automatic navigation detection using the react-navigation/native package
|
|
12
24
|
|
|
13
25
|
### Patch
|
|
14
26
|
- Bump android native version to 2.5.6
|
package/CxSdk.podspec
CHANGED
|
@@ -16,8 +16,8 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
18
|
|
|
19
|
-
s.dependency 'Coralogix','1.
|
|
20
|
-
s.dependency 'CoralogixInternal','1.
|
|
19
|
+
s.dependency 'Coralogix','1.4.0'
|
|
20
|
+
s.dependency 'CoralogixInternal','1.4.0'
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
package/index.cjs.js
CHANGED
package/index.esm.js
CHANGED
package/ios/CxSdk.mm
CHANGED
|
@@ -74,6 +74,10 @@ RCT_EXTERN_METHOD(reportMobileVitalsMeasurement:(NSString *)type
|
|
|
74
74
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
75
75
|
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
76
76
|
|
|
77
|
+
RCT_EXTERN_METHOD(sendCustomMeasurement:(NSDictionary *)measurement
|
|
78
|
+
withResolver:(RCTPromiseResolveBlock)resolve
|
|
79
|
+
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
80
|
+
|
|
77
81
|
+ (BOOL)requiresMainQueueSetup
|
|
78
82
|
{
|
|
79
83
|
return NO;
|
package/ios/CxSdk.swift
CHANGED
|
@@ -220,6 +220,16 @@ class CxSdk: RCTEventEmitter {
|
|
|
220
220
|
resolve("reportMobileVitalsMeasurement success")
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
+
@objc(sendCustomMeasurement:withResolver:withRejecter:)
|
|
224
|
+
func sendCustomMeasurement(measurement: NSDictionary,
|
|
225
|
+
resolve:RCTPromiseResolveBlock,
|
|
226
|
+
reject:RCTPromiseRejectBlock) -> Void {
|
|
227
|
+
let name = measurement["name"] as? String ?? ""
|
|
228
|
+
let value = measurement["value"] as? Double ?? 0.0
|
|
229
|
+
coralogixRum?.sendCustomMeasurement(name: name, value: value)
|
|
230
|
+
resolve("sendCustomMeasurement success")
|
|
231
|
+
}
|
|
232
|
+
|
|
223
233
|
private func toHybridMetricList(metrics: NSArray) -> [HybridMetric] {
|
|
224
234
|
let array = metrics as? [[String: Any]] ?? []
|
|
225
235
|
|