Skip to content

Commit

Permalink
Merge pull request #52 from Sathyan-KM/release/1.1.1
Browse files Browse the repository at this point in the history
Release/1.1.1
  • Loading branch information
Sathyan-KM committed Aug 8, 2023
2 parents caa92ac + 33c182b commit 26ef060
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# CHANGELOG

The changelog for [KommunicateCore-iOS-SDK](https://github.com/Kommunicate-io/KommunicateCore-iOS-SDK). Also see the [releases](https://github.com/Kommunicate-io/KommunicateCore-iOS-SDK/releases) on Github.

## [1.1.1] 2023-08-08
- Added platform property and default value for platform to be iOS.
## [1.1.0] 2023-05-25
- Added cloud support for attachments
- Added support to restrict upload attachment size
Expand Down
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- KommunicateCore-iOS-SDK (1.1.0)
- KommunicateCore-iOS-SDK (1.1.1)

DEPENDENCIES:
- KommunicateCore-iOS-SDK (from `../`)
Expand All @@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
KommunicateCore-iOS-SDK: f97b5e49e4ead1725723b62ee98de47a7b3a142e
KommunicateCore-iOS-SDK: d8e2b02da96522708a8d3cb395f9616522e219dc

PODFILE CHECKSUM: 8b029372b67d72364ec33cf0ba3ca373cec02677

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion KommunicateCore-iOS-SDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'KommunicateCore-iOS-SDK'
s.version = '1.1.0'
s.version = '1.1.1'
s.summary = 'KommunicateCore-iOS SDK pod'
s.description = <<-DESC
The KommunicateCore-iOS SDK helps you build your own custom UI in your iOS app
Expand Down
4 changes: 4 additions & 0 deletions Sources/account/ALRegisterUserClientService.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ - (void)initWithCompletion:(ALUser *)user
[ALUserDefaultsHandler setPassword:user.password];
[ALUserDefaultsHandler setDisplayName:user.displayName];
[ALUserDefaultsHandler setEmailId:user.email];

if (user.platform == nil) {
user.platform = [NSNumber numberWithInt: PLATFORM_IOS];
}

NSString *applicationId = [ALUserDefaultsHandler getApplicationKey];
if (applicationId) {
Expand Down
15 changes: 15 additions & 0 deletions Sources/include/ALUser.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,20 @@ typedef enum

} deviceApnsType;

typedef enum
{
PLATFORM_ANDROID = 1,
PLATFORM_IOS = 2,
PLATFORM_WEB = 3,
PLATFORM_PHONE_GAP = 4,
PLATFORM_API = 5,
PLATFORM_FLUTTER = 6,
PLATFORM_REACT_NATIVE = 7,
PLATFORM_CAPACITOR = 8,
PLATFORM_CORDOVA = 9,
PLATFORM_IONIC = 10,
} Platform;

@interface ALUser : ALJson

@property NSString *userId;
Expand Down Expand Up @@ -54,6 +68,7 @@ typedef enum
@property NSMutableArray *features;
@property NSString *notificationSoundFileName;
@property NSMutableDictionary *metadata;
@property NSNumber *platform;

- (instancetype)initWithUserId:(NSString *)userId
password:(NSString *)password
Expand Down

0 comments on commit 26ef060

Please sign in to comment.