react-native-clarity 3.0.1 → 3.0.2

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/ios/Clarity.m CHANGED
@@ -19,14 +19,14 @@ RCT_EXPORT_METHOD(initialize:(NSString *)projectId
19
19
  rejecter:(RCTPromiseRejectBlock)reject)
20
20
  {
21
21
  dispatch_async(dispatch_get_main_queue(), ^{
22
- ClarityConfig* config = [[ClarityConfig alloc]
23
- initWithProjectId:projectId
24
- userId:userId
25
- logLevel:[self convertLogLevelToEnum:logLevel]
26
- allowMeteredNetworkUsage:allowMeteredNetworkUsage
27
- enableWebViewCapture:enableWebViewCapture
28
- disableOnLowEndDevices:disableOnLowEndDevices
29
- applicationFramework:ApplicationFrameworkReactNative];
22
+ ClarityConfig* config = [[ClarityConfig alloc] initWithProjectId:projectId];
23
+
24
+ config.userId = userId;
25
+ config.logLevel = [self convertLogLevelToEnum:logLevel];
26
+ config.allowMeteredNetworkUsage = allowMeteredNetworkUsage;
27
+ config.enableWebViewCapture = enableWebViewCapture;
28
+ config.disableOnLowEndDevices = disableOnLowEndDevices;
29
+ config.applicationFramework = ApplicationFrameworkReactNative;
30
30
 
31
31
  [ClaritySDK initializeWithConfig:config];
32
32
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-clarity",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "A plugin to provide the Clarity experience for the React Native applications.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
  s.source_files = "ios/**/*.{h,m,mm}"
18
18
 
19
19
  s.dependency "React-Core"
20
- s.dependency "Clarity", '1.0.0'
20
+ s.dependency "Clarity", '2.1.0'
21
21
 
22
22
  # Don't install the dependencies when we run `pod install` in the old architecture.
23
23
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then