react-native-clarity 4.5.0 → 4.5.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
@@ -18,7 +18,7 @@ RCT_EXPORT_METHOD(initialize:(NSString *)projectId
18
18
 
19
19
  config.userId = [self sanitizeBridgedValue:userId];
20
20
  config.logLevel = [self convertLogLevelToEnum:logLevel];
21
- config.applicationFramework = ApplicationFrameworkReactNative;
21
+ config.applicationFramework = ClarityApplicationFrameworkReactNative;
22
22
 
23
23
  resolve(@([ClaritySDK initializeWithConfig:config]));
24
24
  });
@@ -123,29 +123,29 @@ RCT_EXPORT_METHOD(setCurrentScreenName:(NSString *)currentScreenName
123
123
  });
124
124
  }
125
125
 
126
- - (LogLevel)convertLogLevelToEnum:(NSString*)logLevel
126
+ - (ClarityLogLevel)convertLogLevelToEnum:(NSString*)logLevel
127
127
  {
128
128
  if ([logLevel isEqual:@"Verbose"]) {
129
- return LogLevelVerbose;
129
+ return ClarityLogLevelVerbose;
130
130
  }
131
131
 
132
132
  if ([logLevel isEqual:@"Debug"]) {
133
- return LogLevelDebug;
133
+ return ClarityLogLevelDebug;
134
134
  }
135
135
 
136
136
  if ([logLevel isEqual:@"Info"]) {
137
- return LogLevelInfo;
137
+ return ClarityLogLevelInfo;
138
138
  }
139
139
 
140
140
  if ([logLevel isEqual:@"Warning"]) {
141
- return LogLevelWarning;
141
+ return ClarityLogLevelWarning;
142
142
  }
143
143
 
144
144
  if ([logLevel isEqual:@"Error"]) {
145
- return LogLevelError;
145
+ return ClarityLogLevelError;
146
146
  }
147
147
 
148
- return LogLevelNone;
148
+ return ClarityLogLevelNone;
149
149
  }
150
150
 
151
151
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-clarity",
3
- "version": "4.5.0",
3
+ "version": "4.5.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",
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
  s.source_files = "ios/**/*.{h,m,mm}"
17
17
 
18
18
  s.dependency "React-Core"
19
- s.dependency "Clarity", '3.3.4'
19
+ s.dependency "Clarity", '3.4.0'
20
20
 
21
21
  # Don't install the dependencies when we run `pod install` in the old architecture.
22
22
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then