Skip to content

Commit a7a87b6

Browse files
authored
Merge pull request #52 from lixm1988/main
set uikitVersion in setup
2 parents 58684cb + 35e40ce commit a7a87b6

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

EaseChatUIKit.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'EaseChatUIKit'
11-
s.version = '4.14.0'
11+
s.version = '4.15.0'
1212
s.summary = 'A easy for use ChatUIKit.'
1313

1414
# This description is used to generate tags and improve search results.
@@ -36,7 +36,7 @@ TODO: Add long description of the pod here.
3636
s.source_files = [ 'Sources/EaseChatUIKit/Classes/**/*.{h,swift}' ]
3737
# s.private_header_files = ['Sources/EaseChatUIKit/Classes/UI/Core/Foundation/third-party/**/*']
3838
s.resources = ['Sources/EaseChatUIKit/Classes/UI/**/*.bundle','Sources/EaseChatUIKit/Classes/UI/**/*.xcprivacy']
39-
s.dependency 'HyphenateChat','>= 4.14.0'
39+
s.dependency 'HyphenateChat','>= 4.15.0'
4040
s.dependency 'FLAnimatedImage', '~> 1.0'
4141
s.static_framework = true
4242

Sources/EaseChatUIKit/Classes/Service/Client/ChatUIKitClient.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

3-
public let ChatUIKit_VERSION = "4.12.1"
3+
public let ChatUIKit_VERSION = "4.15.0"
44

55
public let cache_update_notification = "ChatUIKitContextUpdateCache"
66

@@ -53,10 +53,13 @@ public let cache_update_notification = "ChatUIKitContextUpdateCache"
5353
@objc(setupWithAppKey:option:)
5454
public func setup(appKey: String? = nil,option: ChatOptions? = nil) -> ChatError? {
5555
if let options = option {
56+
options.uikitVersion = ChatUIKit_VERSION
5657
return ChatClient.shared().initializeSDK(with: options)
5758
} else {
5859
if let key = appKey {
59-
return ChatClient.shared().initializeSDK(with: ChatOptions(appkey: key))
60+
let options = ChatOptions(appkey: key)
61+
options.uikitVersion = ChatUIKit_VERSION
62+
return ChatClient.shared().initializeSDK(with: options)
6063
}
6164
return ChatError(description: "App key can't be nil", code: .invalidAppkey)
6265
}

0 commit comments

Comments
 (0)