File tree Expand file tree Collapse file tree 5 files changed +16
-6
lines changed
android/src/main/java/ly/count/android/sdk/react Expand file tree Collapse file tree 5 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 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 ,
Original file line number Diff line number Diff line change 11Pod ::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
Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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 " ;
2828NSString *const kCountlyReactNativeSDKName = @" js-rnb-ios" ;
2929
3030CLYPushTestMode 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
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments