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 +8 -8
- package/package.json +1 -1
- package/react-native-clarity.podspec +1 -1
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 =
|
|
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
|
-
- (
|
|
126
|
+
- (ClarityLogLevel)convertLogLevelToEnum:(NSString*)logLevel
|
|
127
127
|
{
|
|
128
128
|
if ([logLevel isEqual:@"Verbose"]) {
|
|
129
|
-
return
|
|
129
|
+
return ClarityLogLevelVerbose;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
if ([logLevel isEqual:@"Debug"]) {
|
|
133
|
-
return
|
|
133
|
+
return ClarityLogLevelDebug;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
if ([logLevel isEqual:@"Info"]) {
|
|
137
|
-
return
|
|
137
|
+
return ClarityLogLevelInfo;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
if ([logLevel isEqual:@"Warning"]) {
|
|
141
|
-
return
|
|
141
|
+
return ClarityLogLevelWarning;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
if ([logLevel isEqual:@"Error"]) {
|
|
145
|
-
return
|
|
145
|
+
return ClarityLogLevelError;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
return
|
|
148
|
+
return ClarityLogLevelNone;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
/**
|
package/package.json
CHANGED
|
@@ -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.
|
|
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
|