Skip to content

Commit 6a8b6bd

Browse files
updating underlying sdks (#200)
* updating underlying sdks * changelog * updating the ios/src files * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md --------- Co-authored-by: Artūrs Kadiķis <[email protected]>
1 parent c32b6b4 commit 6a8b6bd

35 files changed

+558
-226
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 23.2.1
2+
* Default max segmentation value count changed from 30 to 100
3+
* Fixed a bug on Android devices that prevented device ID to be changed when there is no consent given
4+
* Fixed a race condition bug by emptying event queue before sending user profile changes.
5+
6+
* Updated underlying Android SDK version to 22.09.4
7+
* Updated underlying iOS SDK version to 23.02.2
8+
19
## 23.02.0
210
* Added a new SDK initialization call 'initWithConfig', and a configuration object to configure it.
311
* Added 'recordDirectAttribution' and 'recordIndirectAttribution' calls.
@@ -17,7 +25,7 @@
1725
- 'enableAttribution'
1826
- 'recordAttributionID'
1927

20-
* Underlying Android SDK version is 22.09.3
28+
* Updated underlying Android SDK to version 22.09.3
2129
* Underlying iOS SDK version is 22.06.2
2230

2331
## 22.06.5

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 = '23.02.0'
3+
s.version = '23.2.1'
44
s.license = {
55
:type => 'COMMUNITY',
66
:text => <<-LICENSE

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ repositories {
4141

4242
dependencies {
4343
implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
44-
implementation 'ly.count.android:sdk:22.09.3'
44+
implementation 'ly.count.android:sdk:22.09.4'
4545

4646
// Import the BoM for the Firebase platform
4747
// The BoM version of 28.4.2 is the newest release that will target firebase-messaging version 22

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public String toString() {
8383
public class CountlyReactNative extends ReactContextBaseJavaModule implements LifecycleEventListener {
8484

8585
public static final String TAG = "CountlyRNPlugin";
86-
private String COUNTLY_RN_SDK_VERSION_STRING = "23.02.0";
86+
private String COUNTLY_RN_SDK_VERSION_STRING = "23.2.1";
8787
private String COUNTLY_RN_SDK_NAME = "js-rnb-android";
8888

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

example/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ rm App.js
1111
curl https://raw.githubusercontent.com/Countly/countly-sdk-react-native-bridge/master/example/App.js --output App.js
1212
curl https://raw.githubusercontent.com/Countly/countly-sdk-react-native-bridge/master/example/Example.js --output Example.js
1313

14-
yarn add countly-sdk-react-native-bridge@23.02.0
14+
yarn add countly-sdk-react-native-bridge@23.2.1
1515

1616
cd ./ios
1717
pod install

ios/src/CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
## 23.02.2
2+
- Added server configuration functionality. This is an experimental feature.
3+
- Not reporting battery level in the crash handler to prevent hanging
4+
5+
## 23.02.1
6+
- Added previous event ID and sending it with custom events.
7+
- Updated default `maxSegmentationValues` from 30 to 100
8+
9+
## 23.02.0
10+
- Added event IDs
11+
- Added current and previous view IDs to events
12+
- Added sending pending events before sending user details on `save` call.
13+
14+
## 22.09.0
15+
- Deleted previously deprecated `userLoggedIn:` and `userLoggedOut` methods
16+
- Added new exception recording methods: `recordException:`, `recordException:isFatal:`, `recordException:isFatal:stackTrace:segmentation:`
17+
- Deprecated existing exception recording methods: `recordHandledException:`, `recordHandledException:withStackTrace:`, `recordUnhandledException:withStackTrace:`
18+
- Added `recordError:stackTrace:`, `recordError:isFatal:stackTrace:segmentation:` methods for Swift errors
19+
20+
- Other various improvements
21+
- Added device info to SDK initialization logs
22+
123
## 22.06.2
224
- Added direct requests support
325
- Fixed missing remote config consent in consents request

ios/src/Countly-PL.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 = 'Countly-PL'
3-
s.version = '22.06.2'
3+
s.version = '23.02.2'
44
s.license = { :type => 'MIT', :file => 'LICENSE.md' }
55
s.summary = 'Countly is an innovative, real-time, open source mobile analytics platform.'
66
s.homepage = 'https://github.com/Countly/countly-sdk-ios'

ios/src/Countly.h

Lines changed: 47 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -412,26 +412,70 @@ NS_ASSUME_NONNULL_BEGIN
412412

413413
#pragma mark - Crash Reporting
414414

415+
/**
416+
* Records an non-fatal exception.
417+
* @discussion A convenience method for @c recordException:isFatal:stackTrace:segmentation:
418+
* with isFatal passed as @c NO, stack trace and segmentation are passed as @c nil.
419+
* @param exception Exception to be recorded
420+
*/
421+
- (void)recordException:(NSException *)exception;
422+
423+
/**
424+
* Records an exception with fatality information.
425+
* @discussion A convenience method for @c recordException:isFatal:stackTrace:segmentation:
426+
* with stack trace and segmentation are passed as @c nil.
427+
* @param isFatal Whether the exception is fatal or not
428+
*/
429+
- (void)recordException:(NSException *)exception isFatal:(BOOL)isFatal;
430+
431+
/**
432+
* Records an exception with fatality information, given stack trace and segmentation.
433+
* @discussion For manually recording all exceptions, fatal or not, with an ability to pass custom stack trace and segmentation data.
434+
* @param exception Exception to be recorded
435+
* @param isFatal Whether the exception is fatal or not
436+
* @param stackTrace Stack trace to be recorded
437+
* @param segmentation Crash segmentation to override @c crashSegmentation set on initial configuration
438+
*/
439+
- (void)recordException:(NSException *)exception isFatal:(BOOL)isFatal stackTrace:(NSArray * _Nullable)stackTrace segmentation:(NSDictionary<NSString *, NSString *> * _Nullable)segmentation;
440+
441+
/**
442+
* Records a Swift error with given stack trace.
443+
* @discussion For manually recording Swift errors with an ability to pass custom stack trace.
444+
* @param errorName A name describing the error to be recorded, a non-zero length valid string
445+
* @param stackTrace Stack trace to be recorded
446+
*/
447+
- (void)recordError:(NSString *)errorName stackTrace:(NSArray * _Nullable)stackTrace;
448+
449+
/**
450+
* Records a Swift error with fatality information, given stack trace and segmentation.
451+
* @discussion For manually recording Swift errors with an ability to pass custom stack trace and segmentation data.
452+
* @param errorName A name describing the error to be recorded, a non-zero length valid string
453+
* @param isFatal Whether the error is fatal or not
454+
* @param stackTrace Stack trace to be recorded
455+
* @param segmentation Crash segmentation to override @c crashSegmentation set on initial configuration
456+
*/
457+
- (void)recordError:(NSString *)errorName isFatal:(BOOL)isFatal stackTrace:(NSArray * _Nullable)stackTrace segmentation:(NSDictionary<NSString *, NSString *> * _Nullable)segmentation;
458+
415459
/**
416460
* Records a handled exception manually.
417461
* @param exception Exception to be recorded
418462
*/
419-
- (void)recordHandledException:(NSException *)exception;
463+
- (void)recordHandledException:(NSException *)exception DEPRECATED_MSG_ATTRIBUTE("Use 'recordException:' method instead!");
420464

421465
/**
422466
* Records a handled exception and given stack trace manually.
423467
* @param exception Exception to be recorded
424468
* @param stackTrace Stack trace to be recorded
425469
*/
426-
- (void)recordHandledException:(NSException *)exception withStackTrace:(NSArray * _Nullable)stackTrace;
470+
- (void)recordHandledException:(NSException *)exception withStackTrace:(NSArray * _Nullable)stackTrace DEPRECATED_MSG_ATTRIBUTE("Use 'recordException:isFatal:stackTrace:segmentation:' method instead! (passing isFatal:NO, segmentation:nil)");
427471

428472
/**
429473
* Records an unhandled exception and given stack trace manually.
430474
* @discussion For recording non-native level fatal exceptions, where the app keeps running at native level and can recover.
431475
* @param exception Exception to be recorded
432476
* @param stackTrace Stack trace to be recorded
433477
*/
434-
- (void)recordUnhandledException:(NSException *)exception withStackTrace:(NSArray * _Nullable)stackTrace;
478+
- (void)recordUnhandledException:(NSException *)exception withStackTrace:(NSArray * _Nullable)stackTrace DEPRECATED_MSG_ATTRIBUTE("Use 'recordException:isFatal:stackTrace:segmentation:' method instead! (passing isFatal:YES, segmentation:nil)");
435479

436480
/**
437481
* Records custom logs to be delivered with crash report.
@@ -505,20 +549,6 @@ NS_ASSUME_NONNULL_BEGIN
505549
*/
506550
+ (CountlyUserDetails *)user;
507551

508-
/**
509-
* Handles switching from device ID to custom user ID for logged in users
510-
* @discussion When a user logs in, this user can be tracked with custom user ID instead of device ID.
511-
* @discussion This is just a convenience method that handles setting user ID as new device ID and merging existing data on Countly Server.
512-
* @param userID Custom user ID uniquely defining the logged in user
513-
*/
514-
- (void)userLoggedIn:(NSString *)userID DEPRECATED_MSG_ATTRIBUTE("Use 'setNewDeviceID:onServer:' method instead!");
515-
516-
/**
517-
* Handles switching from custom user ID to device ID for logged out users
518-
* @discussion When a user logs out, all the data can be tracked with default device ID henceforth.
519-
* @discussion This is just a convenience method that handles resetting device ID to default one and starting a new session.
520-
*/
521-
- (void)userLoggedOut DEPRECATED_MSG_ATTRIBUTE("Use 'setNewDeviceID:onServer:' method instead!");
522552

523553

524554

0 commit comments

Comments
 (0)