Skip to content

Commit cce0b0d

Browse files
Merge pull request #123 from Kommunicate-io/dev
Release/1.3.0
2 parents 891a2e2 + 1168f79 commit cce0b0d

File tree

173 files changed

+4185
-4146
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+4185
-4146
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# CHANGELOG
22

33
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.
4+
## [1.3.0] 2025-04-25
5+
- Migration of Applozic to Kommunicate.
46
## [1.2.6] 2025-03-18
57
- Internal code refactor.
68
## [1.2.5] 2024-12-24

Example/Podfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- KommunicateCore-iOS-SDK (1.2.6)
2+
- KommunicateCore-iOS-SDK (1.3.0)
33

44
DEPENDENCIES:
55
- KommunicateCore-iOS-SDK (from `../`)
@@ -9,7 +9,7 @@ EXTERNAL SOURCES:
99
:path: "../"
1010

1111
SPEC CHECKSUMS:
12-
KommunicateCore-iOS-SDK: 0d93451165eef64c95aa97c7db4db49f849b0a49
12+
KommunicateCore-iOS-SDK: 176d0f706e4fd0dfbf2c004d65abb2df2f2e3809
1313

1414
PODFILE CHECKSUM: 7027d57d0977da2f7eeddd9ce9eb5c4b46250a39
1515

Example/Pods/Local Podspecs/KommunicateCore-iOS-SDK.podspec.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Manifest.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Pods.xcodeproj/project.pbxproj

+834-834
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/KommunicateCore-iOS-SDK/KommunicateCore-iOS-SDK-umbrella.h

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

KommunicateCore-iOS-SDK.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'KommunicateCore-iOS-SDK'
3-
s.version = '1.2.6'
3+
s.version = '1.3.0'
44
s.summary = 'KommunicateCore-iOS SDK pod'
55
s.description = <<-DESC
66
The KommunicateCore-iOS SDK helps you build your own custom UI in your iOS app

Sources/JWT/ALJWT.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// ALJWT.m
3-
// ApplozicCore
3+
// KommunicateCore
44
//
55
// Created by apple on 12/03/21.
66
// Copyright © 2021 kommunicate. All rights reserved.

Sources/JWT/ALJWTClaim.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// ALJWTClaim.h
3-
// ApplozicCore
3+
// KommunicateCore
44
//
55
// Created by apple on 12/03/21.
66
// Copyright © 2021 kommunicate. All rights reserved.

Sources/JWT/ALJWTClaim.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// ALJWTClaim.m
3-
// ApplozicCore
3+
// KommunicateCore
44
//
55
// Created by apple on 12/03/21.
66
// Copyright © 2021 kommunicate. All rights reserved.

Sources/JWT/user/ALAPIResponse.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
// ALAPIResponse.m
3-
// Applozic
3+
// Kommunicate
44
//
55
// Created by devashish on 19/01/2016.
66
// Copyright © 2016 kommunicate. All rights reserved.

Sources/JWT/user/ALApplicationInfo.m

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
//
22
// ALApplicationInfo.m
3-
// Applozic
3+
// Kommunicate
44
//
55
// Created by Mukesh Thawani on 05/06/18.
66
// Copyright © 2018 kommunicate. All rights reserved.
77
//
88

99
#import "ALApplicationInfo.h"
1010
#import "ALUtilityClass.h"
11-
#import "ALUserDefaultsHandler.h"
11+
#import "KMCoreUserDefaultsHandler.h"
1212
#import "ALConstant.h"
1313

1414
@implementation ALApplicationInfo
@@ -20,9 +20,9 @@ - (BOOL)isChatSuspended {
2020
if (debugflag) {
2121
return NO;
2222
}
23-
if ([ALUserDefaultsHandler getUserPricingPackage] == AL_CLOSED
24-
|| [ALUserDefaultsHandler getUserPricingPackage] == AL_BETA
25-
|| [ALUserDefaultsHandler getUserPricingPackage] == AL_SUSPENDED) {
23+
if ([KMCoreUserDefaultsHandler getUserPricingPackage] == AL_CLOSED
24+
|| [KMCoreUserDefaultsHandler getUserPricingPackage] == AL_BETA
25+
|| [KMCoreUserDefaultsHandler getUserPricingPackage] == AL_SUSPENDED) {
2626
return YES;
2727
}
2828
return NO;
@@ -33,7 +33,7 @@ - (BOOL)showPoweredByMessage {
3333
if (debugflag) {
3434
return NO;
3535
}
36-
if ([ALUserDefaultsHandler getUserPricingPackage] == AL_STARTER) {
36+
if ([KMCoreUserDefaultsHandler getUserPricingPackage] == AL_STARTER) {
3737
return YES;
3838
}
3939
return NO;

Sources/JWT/user/ALContact.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
#import "ALContact.h"
10-
#import "ALUserDefaultsHandler.h"
10+
#import "KMCoreUserDefaultsHandler.h"
1111

1212
@implementation ALContact
1313

@@ -80,7 +80,7 @@ - (BOOL)isNotificationMuted {
8080
}
8181

8282
- (BOOL)isChatDisabled {
83-
return _metadata && [_metadata[AL_DISABLE_USER_CHAT] boolValue];
83+
return _metadata && [_metadata[KM_CORE_DISABLE_USER_CHAT] boolValue];
8484
}
8585

8686
- (BOOL)isDisplayNameUpdateRequired {

Sources/JWT/user/ALContactDBService.m

+12-12
Original file line numberDiff line numberDiff line change
@@ -325,24 +325,24 @@ - (BOOL)addContactInDatabase:(ALContact *)userContact {
325325

326326

327327
- (void)addUserDetails:(NSMutableArray *)userDetails {
328-
for (ALUserDetail *alUserDetail in userDetails) {
328+
for (KMCoreUserDetail *alUserDetail in userDetails) {
329329
[self updateUserDetail:alUserDetail];
330330
}
331331
}
332332

333333
- (void)addUserDetailsWithoutUnreadCount:(NSMutableArray *)userDetails {
334-
for (ALUserDetail *alUserDetail in userDetails) {
334+
for (KMCoreUserDetail *alUserDetail in userDetails) {
335335
alUserDetail.unreadCount = 0;
336336
[self updateUserDetail:alUserDetail];
337337
}
338338
}
339339

340340

341-
- (NSMutableArray *)addMuteUserDetailsWithDelegate:(id<ApplozicUpdatesDelegate>)delegate withNSDictionary:(NSDictionary *)jsonNSDictionary {
341+
- (NSMutableArray *)addMuteUserDetailsWithDelegate:(id<KommunicateUpdatesDelegate>)delegate withNSDictionary:(NSDictionary *)jsonNSDictionary {
342342
NSMutableArray *userDetailArray = [NSMutableArray new];
343343

344344
for (NSDictionary *theDictionary in jsonNSDictionary) {
345-
ALUserDetail *userDetail = [[ALUserDetail alloc] initWithDictonary:theDictionary];
345+
KMCoreUserDetail *userDetail = [[KMCoreUserDetail alloc] initWithDictonary:theDictionary];
346346
userDetail.unreadCount = 0;
347347
[self updateUserDetail:userDetail];
348348
[[NSNotificationCenter defaultCenter] postNotificationName:@"Update_user_mute_info" object:userDetail];
@@ -359,15 +359,15 @@ - (NSMutableArray *)addMuteUserDetailsWithDelegate:(id<ApplozicUpdatesDelegate>)
359359
- (void)updateConnectedStatus:(NSString *)userId
360360
lastSeenAt:(NSNumber *)lastSeenAt
361361
connected:(BOOL)connected {
362-
ALUserDetail *alUserDetail = [[ALUserDetail alloc] init];
362+
KMCoreUserDetail *alUserDetail = [[KMCoreUserDetail alloc] init];
363363
alUserDetail.lastSeenAtTime = lastSeenAt;
364364
alUserDetail.connected = connected;
365365
alUserDetail.userId = userId;
366366

367367
[self updateUserDetail:alUserDetail];
368368
}
369369

370-
- (BOOL)updateUserDetail:(ALUserDetail *)userDetail {
370+
- (BOOL)updateUserDetail:(KMCoreUserDetail *)userDetail {
371371
ALDBHandler *alDBHandler = [ALDBHandler sharedInstance];
372372

373373
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
@@ -443,7 +443,7 @@ - (BOOL)updateUserDetail:(ALUserDetail *)userDetail {
443443
return YES;
444444
}
445445

446-
- (BOOL)updateLastSeenDBUpdate:(ALUserDetail *)userDetail {
446+
- (BOOL)updateLastSeenDBUpdate:(KMCoreUserDetail *)userDetail {
447447
ALDBHandler *alDBHandler = [ALDBHandler sharedInstance];
448448

449449
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
@@ -612,7 +612,7 @@ - (NSMutableArray *)getListOfBlockedUsers {
612612

613613
- (NSMutableArray*)updateFilteredContacts:(ALContactsResponse *)contactsResponse withLoadContact:(BOOL)isLoadContactFromDb {
614614
NSMutableArray *contactArray = [NSMutableArray new];
615-
for (ALUserDetail *userDetail in contactsResponse.userDetailList) {
615+
for (KMCoreUserDetail *userDetail in contactsResponse.userDetailList) {
616616
userDetail.unreadCount = 0;
617617
[self updateUserDetail:userDetail];
618618
if (isLoadContactFromDb) {
@@ -626,7 +626,7 @@ - (NSMutableArray*)updateFilteredContacts:(ALContactsResponse *)contactsResponse
626626
- (NSMutableArray *)getAllContactsFromDB {
627627
ALDBHandler *alDBHandler = [ALDBHandler sharedInstance];
628628

629-
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"userId !=%@ AND deletedAtTime == nil",[ALUserDefaultsHandler getUserId]];
629+
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"userId !=%@ AND deletedAtTime == nil",[KMCoreUserDefaultsHandler getUserId]];
630630
NSFetchRequest *contactListRequest = [NSFetchRequest fetchRequestWithEntityName:@"DB_CONTACT"];
631631
[contactListRequest setPredicate:predicate];
632632
[contactListRequest setReturnsDistinctResults:YES];
@@ -723,7 +723,7 @@ - (BOOL)insertNewContact:(ALContact*)contact {
723723

724724
#pragma mark - Update mute time in Database
725725

726-
- (ALUserDetail *)updateMuteAfterTime:(NSNumber *)notificationAfterTime andUserId:(NSString *)userId {
726+
- (KMCoreUserDetail *)updateMuteAfterTime:(NSNumber *)notificationAfterTime andUserId:(NSString *)userId {
727727
ALDBHandler *alDBHandler = [ALDBHandler sharedInstance];
728728

729729
DB_CONTACT *dbContact = [self getContactByKey:@"userId" value:userId];
@@ -736,9 +736,9 @@ - (ALUserDetail *)updateMuteAfterTime:(NSNumber *)notificationAfterTime andUserI
736736
return [self getUserDetailFromDbContact:dbContact];
737737
}
738738

739-
- (ALUserDetail *)getUserDetailFromDbContact:(DB_CONTACT *)dbContact{
739+
- (KMCoreUserDetail *)getUserDetailFromDbContact:(DB_CONTACT *)dbContact{
740740

741-
ALUserDetail *userDetail = [[ALUserDetail alloc] init];
741+
KMCoreUserDetail *userDetail = [[KMCoreUserDetail alloc] init];
742742
userDetail.userId = dbContact.userId;
743743
userDetail.contactNumber = dbContact.contactNumber;
744744
userDetail.imageLink = dbContact.contactImageUrl;

Sources/JWT/user/ALContactService.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#import "ALContactService.h"
1010
#import "ALContactDBService.h"
1111
#import "ALDBHandler.h"
12-
#import "ALUserDefaultsHandler.h"
12+
#import "KMCoreUserDefaultsHandler.h"
1313
#import "ALUserService.h"
1414

1515
@implementation ALContactService
@@ -154,7 +154,7 @@ - (BOOL)isUserDeleted:(NSString *)userId {
154154
return [self.alContactDBService isUserDeleted:userId];
155155
}
156156

157-
- (ALUserDetail *)updateMuteAfterTime:(NSNumber *)notificationAfterTime andUserId:(NSString *)userId {
157+
- (KMCoreUserDetail *)updateMuteAfterTime:(NSNumber *)notificationAfterTime andUserId:(NSString *)userId {
158158
return [self.alContactDBService updateMuteAfterTime:notificationAfterTime andUserId:userId];
159159
}
160160
@end

Sources/JWT/user/ALContactsResponse.m

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
//
22
// ALContactsResponse.m
3-
// Applozic
3+
// Kommunicate
44
//
55
// Created by devashish on 25/04/2016.
66
// Copyright © 2016 kommunicate. All rights reserved.
77
//
88

99
#import "ALContactsResponse.h"
10-
#import "ALUserDetail.h"
11-
#import "ALApplozicSettings.h"
10+
#import "KMCoreUserDetail.h"
11+
#import "KMCoreSettings.h"
1212

1313
@implementation ALContactsResponse
1414

@@ -24,12 +24,12 @@ - (void)parseJsonString:(NSString *)JSONString {
2424
self.userDetailList = [NSMutableArray new];
2525

2626
for (NSDictionary *userDictionary in userDetailArray) {
27-
ALUserDetail *userDetail = [[ALUserDetail alloc] initWithDictonary:userDictionary];
27+
KMCoreUserDetail *userDetail = [[KMCoreUserDetail alloc] initWithDictonary:userDictionary];
2828
[self.userDetailList addObject:userDetail];
2929
}
3030

3131
self.lastFetchTime = [JSONString valueForKey:@"lastFetchTime"];
32-
[ALApplozicSettings setStartTime:self.lastFetchTime];
32+
[KMCoreSettings setStartTime:self.lastFetchTime];
3333

3434
self.totalUnreadCount = [JSONString valueForKey:@"totalUnreadCount"];
3535
}

Sources/JWT/user/ALLastSeenSyncFeed.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// ALLastSeenSyncFeed.m
3-
// Applozic
3+
// Kommunicate
44
//
55
// Created by Devashish on 19/12/15.
66
// Copyright © 2015 kommunicate. All rights reserved.
@@ -19,7 +19,7 @@ - (instancetype)initWithJSONString:(NSString *)serverResponse {
1919
- (void)populateLastSeenDetail:(NSMutableArray *)lastSeenDetailArray {
2020
NSMutableArray *listArray = [NSMutableArray new];
2121
for (NSDictionary *userDetailDictionary in lastSeenDetailArray) {
22-
ALUserDetail *userLastSeenDetail = [[ALUserDetail alloc] initWithDictonary:userDetailDictionary];
22+
KMCoreUserDetail *userLastSeenDetail = [[KMCoreUserDetail alloc] initWithDictonary:userDetailDictionary];
2323
[listArray addObject:userLastSeenDetail];
2424
}
2525
self.lastSeenArray = listArray;

Sources/JWT/user/ALMessageInfo.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// ALMessageInfo.m
3-
// Applozic
3+
// Kommunicate
44
//
55
// Created by devashish on 17/03/2016.
66
// Copyright © 2016 kommunicate. All rights reserved.

Sources/JWT/user/ALMessageInfoResponse.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// ALMessageInfoResponse.m
3-
// Applozic
3+
// Kommunicate
44
//
55
// Created by devashish on 17/03/2016.
66
// Copyright © 2016 kommunicate. All rights reserved.

Sources/JWT/user/ALUserBlockResponse.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// ALUserBlockResponse.m
3-
// Applozic
3+
// Kommunicate
44
//
55
// Created by devashish on 07/03/2016.
66
// Copyright © 2016 kommunicate. All rights reserved.

Sources/JWT/user/ALUserBlocked.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// ALUserBlocked.m
3-
// Applozic
3+
// Kommunicate
44
//
55
// Created by devashish on 10/03/2016.
66
// Copyright © 2016 kommunicate. All rights reserved.

0 commit comments

Comments
 (0)