Skip to content

Commit

Permalink
Release of version 4.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Kurzawa committed Sep 26, 2024
1 parent 566dbf7 commit 5d1ef8b
Show file tree
Hide file tree
Showing 28 changed files with 15,041 additions and 14,758 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@ All notable changes to this project will be documented in this file.

Note that Objective-C class names are prefixed by `SNR`. In the changelog below, these are names used in Swift, without the prefix.

## [4.22.0] - 2024-09-26

### Fixed
- Some potential issues with possible database corruption.

### Added
- `Client.updateAccountBasicInformation(context:success:failure:)` method. The new method updates anonymous users.
- `ClientUpdateAccountBasicInformationContext` model correlated with the new `Client.updateAccountBasicInformation(context:success:failure:)` method.

### Changed
- Optimization of the In-app messaging module.


## [4.21.0] - 2024-09-12

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "SyneriseSDK",
url: "https://github.com/Synerise/synerise-ios-sdk/releases/download/4.21.0/SyneriseSDK.xcframework.zip",
checksum: "c51c7f1a822d04955ca2dccc95ef662bff0223c141ace40eda0c5abda856c463"
url: "https://github.com/Synerise/synerise-ios-sdk/releases/download/4.22.0/SyneriseSDK.xcframework.zip",
checksum: "0bafd4ccd162ce50e58f2bb89b3f88ab2922c31e4d121bdc69fb207b1dcde914"
)
]
)
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Synerise iOS SDK (v4.21.0)
# Synerise iOS SDK (v4.22.0)

[![Platform](https://img.shields.io/badge/platform-iOS-orange.svg)](https://github.com/synerise/synerise-ios-sdk)
[![Languages](https://img.shields.io/badge/language-Objective--C%20%7C%20Swift-orange.svg)](https://github.com/synerise/synerise-ios-sdk)
[![GitHub release](https://img.shields.io/github/release/Synerise/ios-sdk.svg)](https://github.com/Synerise/synerise-ios-sdk/releases)
[![CocoaPods](https://img.shields.io/badge/pod-v4.21.0-green.svg)](https://cocoapods.org/pods/SyneriseSDK)
[![CocoaPods](https://img.shields.io/badge/pod-v4.22.0-green.svg)](https://cocoapods.org/pods/SyneriseSDK)
[![SPM compatible](https://img.shields.io/badge/SPM-Compatible-green.svg)](https://www.swift.org/package-manager)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-green.svg)](https://github.com/Carthage/Carthage)
[![Synerise](https://img.shields.io/badge/www-synerise-green.svg)](https://synerise.com)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>4.21.0</string>
<string>4.22.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
Binary file not shown.

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions SDK/Framework/SyneriseSDK.framework/Headers/SNRClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
@class SNRClientSimpleAuthenticationData;
@class SNRClientAccountInformation;
@class SNRClientEventData;
@class SNRClientUpdateAccountBasicInformationContext;
@class SNRClientUpdateAccountContext;
@class SNRClientPasswordResetRequestContext;
@class SNRClientPasswordResetConfirmationContext;
Expand Down Expand Up @@ -429,6 +430,17 @@ NS_SWIFT_NAME(Client)
success:(void (^)(NSArray<SNRClientEventData *> *events))success
failure:(void (^)(SNRApiError *error))failure NS_SWIFT_NAME(getEvents(apiQuery:success:failure:));

/**
* Updates a profile's account basic information.
*
* @param context `SNRClientUpdateAccountBasicInformationContext` object with account basic information to be modified. Fields that are not provided are not modified.
* @param success A block object to be executed when the operation finishes successfully.
* @param failure A block object to be executed when the operation finishes unsuccessfully.
*/
+ (void)updateAccountBasicInformation:(SNRClientUpdateAccountBasicInformationContext *)context
success:(void (^)(BOOL isSuccess))success
failure:(void (^)(SNRApiError *error))failure NS_SWIFT_NAME(updateAccountBasicInformation(context:success:failure:));

/**
* Updates a customer's account information.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
//
// SNRClientUpdateAccountBasicInformationContext.h
// SyneriseSDK
//
// Created by Synerise
// Copyright (c) 2024 Synerise. All rights reserved.
//

#import <SyneriseSDK/SNRBaseModel.h>
#import <SyneriseSDK/SNRClientSex.h>
#import <SyneriseSDK/SNRClientAgreements.h>

NS_ASSUME_NONNULL_BEGIN

/**
* @class SNRClientUpdateAccountBasicInformationContext
*/

NS_SWIFT_NAME(ClientUpdateAccountBasicInformationContext)
@interface SNRClientUpdateAccountBasicInformationContext : SNRBaseModel

@property (copy, nonatomic, nullable, readwrite) NSString *firstName;
@property (copy, nonatomic, nullable, readwrite) NSString *lastName;
@property (copy, nonatomic, nullable, readwrite) NSString *displayName;
@property (assign, nonatomic, readwrite) SNRClientSex sex;
@property (copy, nonatomic, nullable, readwrite) NSString *phone;
@property (copy, nonatomic, nullable, readwrite) NSString *company;
@property (copy, nonatomic, nullable, readwrite) NSString *address;
@property (copy, nonatomic, nullable, readwrite) NSString *city;
@property (copy, nonatomic, nullable, readwrite) NSString *province;
@property (copy, nonatomic, nullable, readwrite) NSString *zipCode;
@property (copy, nonatomic, nullable, readwrite) NSString *countryCode;
@property (copy, nonatomic, nullable, readwrite) NSString *birthDate;
@property (copy, nonatomic, nullable, readwrite) NSString *avatarUrl;

@property (copy, nonatomic, nullable, readwrite) SNRClientAgreements *agreements;

@property (copy, nonatomic, nullable, readwrite) NSDictionary *attributes;

@end

NS_ASSUME_NONNULL_END
5 changes: 3 additions & 2 deletions SDK/Framework/SyneriseSDK.framework/Headers/SyneriseSDK.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,17 @@
#import <SyneriseSDK/SNRClientRegisterAccountContext.h>
#import <SyneriseSDK/SNRClientAuthenticationContext.h>
#import <SyneriseSDK/SNRClientConditionalAuthenticationContext.h>
#import <SyneriseSDK/SNRClientSimpleAuthenticationData.h>
#import <SyneriseSDK/SNRClientOAuthAuthenticationContext.h>
#import <SyneriseSDK/SNRClientFacebookAuthenticationContext.h>
#import <SyneriseSDK/SNRClientAppleSignInAuthenticationContext.h>
#import <SyneriseSDK/SNRClientConditionalAuthStatus.h>
#import <SyneriseSDK/SNRClientConditionalAuthResult.h>
#import <SyneriseSDK/SNRClientPasswordResetRequestContext.h>
#import <SyneriseSDK/SNRClientPasswordResetConfirmationContext.h>
#import <SyneriseSDK/SNRClientUpdateAccountContext.h>
#import <SyneriseSDK/SNRClientSimpleAuthenticationData.h>
#import <SyneriseSDK/SNRClientAccountInformation.h>
#import <SyneriseSDK/SNRClientUpdateAccountBasicInformationContext.h>
#import <SyneriseSDK/SNRClientUpdateAccountContext.h>
#import <SyneriseSDK/SNRClientEventData.h>
#import <SyneriseSDK/SNRTokenOrigin.h>
#import <SyneriseSDK/SNRToken.h>
Expand Down
Binary file modified SDK/Framework/SyneriseSDK.framework/Info.plist
Binary file not shown.
Binary file not shown.
Binary file modified SDK/Framework/SyneriseSDK.framework/SyneriseSDK
Binary file not shown.
14 changes: 7 additions & 7 deletions SDK/XCFramework/SyneriseSDK.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,35 @@
<dict>
<key>BinaryPath</key>
<string>SyneriseSDK.framework/SyneriseSDK</string>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>SyneriseSDK.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>SyneriseSDK.framework/SyneriseSDK</string>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>SyneriseSDK.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
@class SNRClientSimpleAuthenticationData;
@class SNRClientAccountInformation;
@class SNRClientEventData;
@class SNRClientUpdateAccountBasicInformationContext;
@class SNRClientUpdateAccountContext;
@class SNRClientPasswordResetRequestContext;
@class SNRClientPasswordResetConfirmationContext;
Expand Down Expand Up @@ -429,6 +430,17 @@ NS_SWIFT_NAME(Client)
success:(void (^)(NSArray<SNRClientEventData *> *events))success
failure:(void (^)(SNRApiError *error))failure NS_SWIFT_NAME(getEvents(apiQuery:success:failure:));

/**
* Updates a profile's account basic information.
*
* @param context `SNRClientUpdateAccountBasicInformationContext` object with account basic information to be modified. Fields that are not provided are not modified.
* @param success A block object to be executed when the operation finishes successfully.
* @param failure A block object to be executed when the operation finishes unsuccessfully.
*/
+ (void)updateAccountBasicInformation:(SNRClientUpdateAccountBasicInformationContext *)context
success:(void (^)(BOOL isSuccess))success
failure:(void (^)(SNRApiError *error))failure NS_SWIFT_NAME(updateAccountBasicInformation(context:success:failure:));

/**
* Updates a customer's account information.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
//
// SNRClientUpdateAccountBasicInformationContext.h
// SyneriseSDK
//
// Created by Synerise
// Copyright (c) 2024 Synerise. All rights reserved.
//

#import <SyneriseSDK/SNRBaseModel.h>
#import <SyneriseSDK/SNRClientSex.h>
#import <SyneriseSDK/SNRClientAgreements.h>

NS_ASSUME_NONNULL_BEGIN

/**
* @class SNRClientUpdateAccountBasicInformationContext
*/

NS_SWIFT_NAME(ClientUpdateAccountBasicInformationContext)
@interface SNRClientUpdateAccountBasicInformationContext : SNRBaseModel

@property (copy, nonatomic, nullable, readwrite) NSString *firstName;
@property (copy, nonatomic, nullable, readwrite) NSString *lastName;
@property (copy, nonatomic, nullable, readwrite) NSString *displayName;
@property (assign, nonatomic, readwrite) SNRClientSex sex;
@property (copy, nonatomic, nullable, readwrite) NSString *phone;
@property (copy, nonatomic, nullable, readwrite) NSString *company;
@property (copy, nonatomic, nullable, readwrite) NSString *address;
@property (copy, nonatomic, nullable, readwrite) NSString *city;
@property (copy, nonatomic, nullable, readwrite) NSString *province;
@property (copy, nonatomic, nullable, readwrite) NSString *zipCode;
@property (copy, nonatomic, nullable, readwrite) NSString *countryCode;
@property (copy, nonatomic, nullable, readwrite) NSString *birthDate;
@property (copy, nonatomic, nullable, readwrite) NSString *avatarUrl;

@property (copy, nonatomic, nullable, readwrite) SNRClientAgreements *agreements;

@property (copy, nonatomic, nullable, readwrite) NSDictionary *attributes;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,17 @@
#import <SyneriseSDK/SNRClientRegisterAccountContext.h>
#import <SyneriseSDK/SNRClientAuthenticationContext.h>
#import <SyneriseSDK/SNRClientConditionalAuthenticationContext.h>
#import <SyneriseSDK/SNRClientSimpleAuthenticationData.h>
#import <SyneriseSDK/SNRClientOAuthAuthenticationContext.h>
#import <SyneriseSDK/SNRClientFacebookAuthenticationContext.h>
#import <SyneriseSDK/SNRClientAppleSignInAuthenticationContext.h>
#import <SyneriseSDK/SNRClientConditionalAuthStatus.h>
#import <SyneriseSDK/SNRClientConditionalAuthResult.h>
#import <SyneriseSDK/SNRClientPasswordResetRequestContext.h>
#import <SyneriseSDK/SNRClientPasswordResetConfirmationContext.h>
#import <SyneriseSDK/SNRClientUpdateAccountContext.h>
#import <SyneriseSDK/SNRClientSimpleAuthenticationData.h>
#import <SyneriseSDK/SNRClientAccountInformation.h>
#import <SyneriseSDK/SNRClientUpdateAccountBasicInformationContext.h>
#import <SyneriseSDK/SNRClientUpdateAccountContext.h>
#import <SyneriseSDK/SNRClientEventData.h>
#import <SyneriseSDK/SNRTokenOrigin.h>
#import <SyneriseSDK/SNRToken.h>
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>4.21.0</string>
<string>4.22.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
Binary file not shown.
Loading

0 comments on commit 5d1ef8b

Please sign in to comment.