Skip to content

Commit

Permalink
updating underlying sdks (#200)
Browse files Browse the repository at this point in the history
* 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 <kadikis.arturs@gmail.com>
  • Loading branch information
peterBrxwn and ArtursKadikis authored May 19, 2023
1 parent c32b6b4 commit 6a8b6bd
Show file tree
Hide file tree
Showing 35 changed files with 558 additions and 226 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 23.2.1
* Default max segmentation value count changed from 30 to 100
* Fixed a bug on Android devices that prevented device ID to be changed when there is no consent given
* Fixed a race condition bug by emptying event queue before sending user profile changes.

* Updated underlying Android SDK version to 22.09.4
* Updated underlying iOS SDK version to 23.02.2

## 23.02.0
* Added a new SDK initialization call 'initWithConfig', and a configuration object to configure it.
* Added 'recordDirectAttribution' and 'recordIndirectAttribution' calls.
Expand All @@ -17,7 +25,7 @@
- 'enableAttribution'
- 'recordAttributionID'

* Underlying Android SDK version is 22.09.3
* Updated underlying Android SDK to version 22.09.3
* Underlying iOS SDK version is 22.06.2

## 22.06.5
Expand Down
2 changes: 1 addition & 1 deletion CountlyReactNative.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'CountlyReactNative'
s.version = '23.02.0'
s.version = '23.2.1'
s.license = {
:type => 'COMMUNITY',
:text => <<-LICENSE
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ repositories {

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

// Import the BoM for the Firebase platform
// The BoM version of 28.4.2 is the newest release that will target firebase-messaging version 22
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public String toString() {
public class CountlyReactNative extends ReactContextBaseJavaModule implements LifecycleEventListener {

public static final String TAG = "CountlyRNPlugin";
private String COUNTLY_RN_SDK_VERSION_STRING = "23.02.0";
private String COUNTLY_RN_SDK_VERSION_STRING = "23.2.1";
private String COUNTLY_RN_SDK_NAME = "js-rnb-android";

private static final CountlyConfig config = new CountlyConfig();
Expand Down
2 changes: 1 addition & 1 deletion example/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ rm App.js
curl https://raw.githubusercontent.com/Countly/countly-sdk-react-native-bridge/master/example/App.js --output App.js
curl https://raw.githubusercontent.com/Countly/countly-sdk-react-native-bridge/master/example/Example.js --output Example.js

yarn add countly-sdk-react-native-bridge@23.02.0
yarn add countly-sdk-react-native-bridge@23.2.1

cd ./ios
pod install
Expand Down
22 changes: 22 additions & 0 deletions ios/src/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
## 23.02.2
- Added server configuration functionality. This is an experimental feature.
- Not reporting battery level in the crash handler to prevent hanging

## 23.02.1
- Added previous event ID and sending it with custom events.
- Updated default `maxSegmentationValues` from 30 to 100

## 23.02.0
- Added event IDs
- Added current and previous view IDs to events
- Added sending pending events before sending user details on `save` call.

## 22.09.0
- Deleted previously deprecated `userLoggedIn:` and `userLoggedOut` methods
- Added new exception recording methods: `recordException:`, `recordException:isFatal:`, `recordException:isFatal:stackTrace:segmentation:`
- Deprecated existing exception recording methods: `recordHandledException:`, `recordHandledException:withStackTrace:`, `recordUnhandledException:withStackTrace:`
- Added `recordError:stackTrace:`, `recordError:isFatal:stackTrace:segmentation:` methods for Swift errors

- Other various improvements
- Added device info to SDK initialization logs

## 22.06.2
- Added direct requests support
- Fixed missing remote config consent in consents request
Expand Down
2 changes: 1 addition & 1 deletion ios/src/Countly-PL.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Countly-PL'
s.version = '22.06.2'
s.version = '23.02.2'
s.license = { :type => 'MIT', :file => 'LICENSE.md' }
s.summary = 'Countly is an innovative, real-time, open source mobile analytics platform.'
s.homepage = 'https://github.com/Countly/countly-sdk-ios'
Expand Down
64 changes: 47 additions & 17 deletions ios/src/Countly.h
Original file line number Diff line number Diff line change
Expand Up @@ -412,26 +412,70 @@ NS_ASSUME_NONNULL_BEGIN

#pragma mark - Crash Reporting

/**
* Records an non-fatal exception.
* @discussion A convenience method for @c recordException:isFatal:stackTrace:segmentation:
* with isFatal passed as @c NO, stack trace and segmentation are passed as @c nil.
* @param exception Exception to be recorded
*/
- (void)recordException:(NSException *)exception;

/**
* Records an exception with fatality information.
* @discussion A convenience method for @c recordException:isFatal:stackTrace:segmentation:
* with stack trace and segmentation are passed as @c nil.
* @param isFatal Whether the exception is fatal or not
*/
- (void)recordException:(NSException *)exception isFatal:(BOOL)isFatal;

/**
* Records an exception with fatality information, given stack trace and segmentation.
* @discussion For manually recording all exceptions, fatal or not, with an ability to pass custom stack trace and segmentation data.
* @param exception Exception to be recorded
* @param isFatal Whether the exception is fatal or not
* @param stackTrace Stack trace to be recorded
* @param segmentation Crash segmentation to override @c crashSegmentation set on initial configuration
*/
- (void)recordException:(NSException *)exception isFatal:(BOOL)isFatal stackTrace:(NSArray * _Nullable)stackTrace segmentation:(NSDictionary<NSString *, NSString *> * _Nullable)segmentation;

/**
* Records a Swift error with given stack trace.
* @discussion For manually recording Swift errors with an ability to pass custom stack trace.
* @param errorName A name describing the error to be recorded, a non-zero length valid string
* @param stackTrace Stack trace to be recorded
*/
- (void)recordError:(NSString *)errorName stackTrace:(NSArray * _Nullable)stackTrace;

/**
* Records a Swift error with fatality information, given stack trace and segmentation.
* @discussion For manually recording Swift errors with an ability to pass custom stack trace and segmentation data.
* @param errorName A name describing the error to be recorded, a non-zero length valid string
* @param isFatal Whether the error is fatal or not
* @param stackTrace Stack trace to be recorded
* @param segmentation Crash segmentation to override @c crashSegmentation set on initial configuration
*/
- (void)recordError:(NSString *)errorName isFatal:(BOOL)isFatal stackTrace:(NSArray * _Nullable)stackTrace segmentation:(NSDictionary<NSString *, NSString *> * _Nullable)segmentation;

/**
* Records a handled exception manually.
* @param exception Exception to be recorded
*/
- (void)recordHandledException:(NSException *)exception;
- (void)recordHandledException:(NSException *)exception DEPRECATED_MSG_ATTRIBUTE("Use 'recordException:' method instead!");

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

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

/**
* Records custom logs to be delivered with crash report.
Expand Down Expand Up @@ -505,20 +549,6 @@ NS_ASSUME_NONNULL_BEGIN
*/
+ (CountlyUserDetails *)user;

/**
* Handles switching from device ID to custom user ID for logged in users
* @discussion When a user logs in, this user can be tracked with custom user ID instead of device ID.
* @discussion This is just a convenience method that handles setting user ID as new device ID and merging existing data on Countly Server.
* @param userID Custom user ID uniquely defining the logged in user
*/
- (void)userLoggedIn:(NSString *)userID DEPRECATED_MSG_ATTRIBUTE("Use 'setNewDeviceID:onServer:' method instead!");

/**
* Handles switching from custom user ID to device ID for logged out users
* @discussion When a user logs out, all the data can be tracked with default device ID henceforth.
* @discussion This is just a convenience method that handles resetting device ID to default one and starting a new session.
*/
- (void)userLoggedOut DEPRECATED_MSG_ATTRIBUTE("Use 'setNewDeviceID:onServer:' method instead!");



Expand Down
Loading

0 comments on commit 6a8b6bd

Please sign in to comment.