Skip to content

Commit ebb19f4

Browse files
committed
ios and version
1 parent c9957d5 commit ebb19f4

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"editor.codeActionsOnSave": {
3-
"source.fixAll.eslint": true
3+
"source.fixAll.eslint": "explicit"
44
},
55
"editor.defaultFormatter": "esbenp.prettier-vscode",
66
"editor.formatOnSave": true,

CountlyReactNative.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'CountlyReactNative'
3-
s.version = '25.1.2'
3+
s.version = '25.4.0'
44
s.license = {
55
:type => 'COMMUNITY',
66
:text => <<-LICENSE

android/src/main/java/ly/count/android/sdk/react/CountlyReactNativeImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public class CountlyReactNativeImpl extends ReactContextBaseJavaModule implement
9292

9393
public static final String NAME = "CountlyReactNative";
9494
public static final String TAG = "CountlyRNPlugin";
95-
private String COUNTLY_RN_SDK_VERSION_STRING = "25.1.2";
95+
private String COUNTLY_RN_SDK_VERSION_STRING = "25.4.0";
9696
private String COUNTLY_RN_SDK_NAME = "js-rnb-android";
9797

9898
private static final CountlyConfig config = new CountlyConfig();

ios/src/CountlyReactNative.m

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ @interface CountlyFeedbackWidget ()
2424
+ (CountlyFeedbackWidget *)createWithDictionary:(NSDictionary *)dictionary;
2525
@end
2626

27-
NSString *const kCountlyReactNativeSDKVersion = @"25.1.2";
27+
NSString *const kCountlyReactNativeSDKVersion = @"25.4.0";
2828
NSString *const kCountlyReactNativeSDKName = @"js-rnb-ios";
2929

3030
CLYPushTestMode const CLYPushTestModeProduction = @"CLYPushTestModeProduction";
@@ -286,7 +286,17 @@ - (void) populateConfig:(id) json {
286286
config.disableBackoffMechanism = [json[@"disableBackoffMechanism"] boolValue];
287287
}
288288
if (json[@"sdkBehaviorSettings"]) {
289-
config.sdkBehaviorSettings = json[@"sdkBehaviorSettings"];
289+
if (![json[@"sdkBehaviorSettings"] isKindOfClass:[NSString class]]) {
290+
NSError *error;
291+
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:json[@"sdkBehaviorSettings"] options:0 error:&error];
292+
if (error) {
293+
COUNTLY_RN_LOG(@"Error serializing sdkBehaviorSettings: %@", error.localizedDescription);
294+
} else {
295+
config.sdkBehaviorSettings = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
296+
}
297+
} else {
298+
config.sdkBehaviorSettings = json[@"sdkBehaviorSettings"];
299+
}
290300
}
291301
}
292302

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "countly-sdk-react-native-bridge",
3-
"version": "25.1.2",
3+
"version": "25.4.0",
44
"author": "Countly <[email protected]> (https://count.ly/)",
55
"bugs": {
66
"url": "https://github.com/Countly/countly-sdk-react-native-bridge/issues"

0 commit comments

Comments
 (0)