@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 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 @react-navigation/native package
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.3.0'
20
- s.dependency 'CoralogixInternal','1.3.0'
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
@@ -219,7 +219,7 @@ function stopJsRefreshRateSampler() {
219
219
  appStateSub = null;
220
220
  }
221
221
 
222
- var version = "0.1.8";
222
+ var version = "0.1.10";
223
223
  var pkg = {
224
224
  version: version};
225
225
 
package/index.esm.js CHANGED
@@ -217,7 +217,7 @@ function stopJsRefreshRateSampler() {
217
217
  appStateSub = null;
218
218
  }
219
219
 
220
- var version = "0.1.8";
220
+ var version = "0.1.10";
221
221
  var pkg = {
222
222
  version: version};
223
223
 
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coralogix/react-native-plugin",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "Official Coralogix React Native plugin",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Coralogix",