Skip to content

Commit 89f2dc3

Browse files
authored
Merge pull request #39 from Kommunicate-io/dev
release/1.0.8
2 parents b86f917 + eef4362 commit 89f2dc3

8 files changed

Lines changed: 29 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
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.
44

5-
## [1.0.7] 2022-01-25
5+
## [1.0.8] 2023-03-17
6+
- Added Support for Multiple Languages on Speech To Text
7+
## [1.0.7] 2023-01-25
68
- Added Zendesk Integration Support
79
## [1.0.6] 2022-10-27
810
- [CM-1124] Fixed un opened conversation added to conversation list screen

Example/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- KommunicateCore-iOS-SDK (1.0.7)
2+
- KommunicateCore-iOS-SDK (1.0.8)
33

44

55
DEPENDENCIES:
@@ -10,7 +10,7 @@ EXTERNAL SOURCES:
1010
:path: "../"
1111

1212
SPEC CHECKSUMS:
13-
KommunicateCore-iOS-SDK: dbcd925238d785a45181d03353a011e3634b23f9
13+
KommunicateCore-iOS-SDK: 69f611a6377424b5253a9650c654bb67921f11ff
1414

1515
PODFILE CHECKSUM: 8b029372b67d72364ec33cf0ba3ca373cec02677
1616

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

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Manifest.lock

Lines changed: 3 additions & 2 deletions
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-Info.plist

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

KommunicateCore-iOS-SDK.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 = 'KommunicateCore-iOS-SDK'
3-
s.version = '1.0.7'
3+
s.version = '1.0.8'
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/include/ALApplozicSettings.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ static NSString *const AL_CUSTOM_BOT_ID = @"com.applozic.userdefault.AL_CUSTOM_B
164164
static NSString *const KM_ZENDESK_ACCOUNT_KEY = @"com.applozic.userdefault.KM_ZENDESK_ACCOUNT_KEY";
165165
static NSString *const KM_ZENDESK_LAST_CONVERSATION_ID = @"com.applozic.userdefault.KM_ZENDESK_LAST_CONVERSATION_ID";
166166
static NSString *const KM_ZENDESK_LAST_SYNC_TIME = @"com.applozic.userdefault.KM_ZENDESK_LAST_SYNC_TIME";
167+
static NSString *const KM_SELECTED_LANGUAGE_FOR_SPEECH_TO_TEXT = @"KM_SELECTED_LANGUAGE_FOR_SPEECH_TO_TEXT";
167168

168169

169170
@interface ALApplozicSettings : NSObject
@@ -658,4 +659,8 @@ static NSString *const KM_ZENDESK_LAST_SYNC_TIME = @"com.applozic.userdefault.KM
658659
+ (void) saveZendeskLastSyncTime: (NSNumber *) lastSyncTime;
659660
+ (NSNumber *) getZendeskLastSyncTime;
660661

662+
+ (void) setSelectedLanguageForSpeechToText: (NSString *) language;
663+
+ (NSString *) getSelectedLanguageForSpeechToText;
664+
665+
661666
@end

Sources/prefrence/ALApplozicSettings.m

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1977,5 +1977,17 @@ + (NSNumber *)getZendeskLastSyncTime {
19771977
return [userDefaults valueForKey:KM_ZENDESK_LAST_SYNC_TIME];
19781978
}
19791979

1980+
// To save language code for STT
1981+
+ (void)setSelectedLanguageForSpeechToText:(NSString *)language {
1982+
NSUserDefaults *userDefaults = [ALApplozicSettings getUserDefaults];
1983+
[userDefaults setValue:language forKey:KM_SELECTED_LANGUAGE_FOR_SPEECH_TO_TEXT];
1984+
[userDefaults synchronize];
1985+
}
1986+
1987+
+ (NSString *)getSelectedLanguageForSpeechToText {
1988+
NSUserDefaults *userDefaults = [ALApplozicSettings getUserDefaults];
1989+
return [userDefaults valueForKey:KM_SELECTED_LANGUAGE_FOR_SPEECH_TO_TEXT];
1990+
}
1991+
19801992

19811993
@end

0 commit comments

Comments
 (0)