Skip to content

Commit

Permalink
* Raised minimum dependency version of SendbirdChatSDK to 4.0.9
Browse files Browse the repository at this point in the history
  * Modified handlers' error parameter type to `SBError`
  * (*Swift only*) Modified channel parameter type to `BaseChannel` in `SBDSKMain isDeskChannel(_:)`
  * (*Swift only*) Modified user message parameter type to `UserMessage` in `SBDSKTicket submitFeedback(with:score:)`
  * (*Swift only*) Modified message parameter type to `BaseMessage` in `SBDSKAdminMessage isAdminMesasge(_:)`
  • Loading branch information
Jaesung Lee committed Sep 5, 2022
1 parent d242bae commit a14fb3b
Show file tree
Hide file tree
Showing 29 changed files with 160,683 additions and 1,429 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

### v1.1.0 (Sep 2, 2022) with Chat SDK **v4.0.9**
* Raised minimum dependency version of `SendbirdChatSDK` to `4.0.9`
* Modified handlers' error parameter type to `SBError`
* (*Swift only*) Modified channel parameter type to `BaseChannel` in `SBDSKMain isDeskChannel(_:)`
* (*Swift only*) Modified user message parameter type to `UserMessage` in `SBDSKTicket submitFeedback(with:score:)`
* (*Swift only*) Modified message parameter type to `BaseMessage` in `SBDSKAdminMessage isAdminMesasge(_:)`

### v1.0.18 (Jun 30, 2022)
* Updated podspec to set dependency to SendbirdChatSDK as “up to next major version”

Expand Down
8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ let package = Package(
targets: ["SendBirdDeskTarget"]),
],
dependencies: [
.package(name: "SendBirdSDK",
url: "https://github.com/sendbird/sendbird-ios-framework",
from: "3.0.221"),
.package(name: "SendbirdChatSDK",
url: "https://github.com/sendbird/sendbird-chat-sdk-ios",
from: "4.0.9"),
],
targets: [
.binaryTarget(name: "SendBirdDesk", path: "SendBirdDesk.xcframework"),
.target(name: "SendBirdDeskTarget",
dependencies: [
.target(name: "SendBirdDesk"),
.product(name: "SendBirdSDK", package: "SendBirdSDK")
.product(name: "SendbirdChatSDK", package: "SendbirdChatSDK")
],
path: "Sources"),
.testTarget(
Expand Down
149 changes: 88 additions & 61 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions SendBirdDesk.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SendBirdDesk"
s.version = "1.0.18"
s.version = "1.1.0"
s.summary = "SendBird Desk iOS Framework"
s.homepage = "https://sendbird.com"
s.license = "Commercial"
Expand All @@ -12,5 +12,5 @@ Pod::Spec.new do |s|
s.ios.vendored_frameworks = 'SendBirdDesk.xcframework'
s.ios.frameworks = ["UIKit", "AVFoundation", "AVKit", "UserNotifications"]

s.dependency 'SendBirdSDK', ">= 3.0.221"
s.dependency 'SendbirdChatSDK', ">= 4.0.9"
end

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

#import <Foundation/Foundation.h>
#import <SendBirdSDK/SendBirdSDK.h>
#import <SendbirdChatSDK/SendbirdChatSDK.h>

//! Project version number for SendBirdDesk.
FOUNDATION_EXPORT double SendBirdDeskVersionNumber;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// swift-module-flags: -target arm64-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name SendBirdDesk
import Foundation
@_exported import SendBirdDesk
import SendBirdSDK
import SendbirdChatSDK
import Swift
import UIKit
import _Concurrency
Expand All @@ -18,7 +18,7 @@ import _Concurrency
@objc final public let faqFileId: Swift.Int64
@objc final public let type: Swift.String
@objc final public let faqResults: [SendBirdDesk.SBDSKFAQData.SBDSKFAQResult]
@objc(initWithMessage:) public init?(with message: SendBirdSDK.SBDBaseMessage)
@objc(initWithMessage:) public init?(with message: SendbirdChatSDK.BaseMessage)
required public init(from decoder: Swift.Decoder) throws
@objc public class SBDSKFAQResult : ObjectiveC.NSObject, Swift.Decodable {
@objc final public let category: Swift.String?
Expand All @@ -40,7 +40,7 @@ import _Concurrency
@objc public static func getSdkVersion() -> Swift.String
@objc public static func setCompletionHandlerDelegateQueue(_ queue: Dispatch.DispatchQueue)
@objc(authenticateWithUserId:accessToken:completionHandler:) public static func authenticate(withUserId userId: Swift.String, accessToken: Swift.String? = nil, completionHandler: SendBirdDesk.SBDSKErrorHandler?)
@objc public static func isDeskChannel(_ channel: SendBirdSDK.SBDBaseChannel) -> Swift.Bool
@objc public static func isDeskChannel(_ channel: SendbirdChatSDK.BaseChannel) -> Swift.Bool
@objc public static func setCustomerCustomFields(_ customFields: [Swift.String : Swift.String], completionHandler: SendBirdDesk.SBDSKErrorHandler?)
@objc override dynamic public init()
@objc deinit
Expand All @@ -58,9 +58,9 @@ import _Concurrency
get
}
}
public typealias SBDSKErrorHandler = (_ error: SendBirdSDK.SBDError?) -> Swift.Void
public typealias SBDSKTicketHandler = (_ ticket: SendBirdDesk.SBDSKTicket?, _ error: SendBirdSDK.SBDError?) -> Swift.Void
public typealias SBDSKTicketListHandler = (_ tickets: [SendBirdDesk.SBDSKTicket]?, _ hasNext: Swift.Bool, _ error: SendBirdSDK.SBDError?) -> Swift.Void
public typealias SBDSKErrorHandler = (_ error: SendbirdChatSDK.SBError?) -> Swift.Void
public typealias SBDSKTicketHandler = (_ ticket: SendBirdDesk.SBDSKTicket?, _ error: SendbirdChatSDK.SBError?) -> Swift.Void
public typealias SBDSKTicketListHandler = (_ tickets: [SendBirdDesk.SBDSKTicket]?, _ hasNext: Swift.Bool, _ error: SendbirdChatSDK.SBError?) -> Swift.Void
@objc public class SBDSKTicket : ObjectiveC.NSObject, Swift.Codable {
@objc public var ticketId: Swift.Int64 {
get
Expand All @@ -74,7 +74,7 @@ public typealias SBDSKTicketListHandler = (_ tickets: [SendBirdDesk.SBDSKTicket]
@objc public var agent: SendBirdDesk.SBDSKAgent? {
get
}
@objc public var channel: SendBirdSDK.SBDGroupChannel? {
@objc public var channel: SendbirdChatSDK.GroupChannel? {
get
}
@objc public var customFields: [Swift.String : Swift.String] {
Expand All @@ -95,7 +95,7 @@ extension SendBirdDesk.SBDSKTicket {
@objc(closeWithComment:completionHandler:) dynamic public func close(with comment: Swift.String?, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@available(*, deprecated, renamed: "close(with:completionHandler:)", message: "Deprecated in 1.0.17")
public func close(withComment comment: Swift.String?, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc(confirmEndOfChatWithMessage:confirm:completionHandler:) public static func confirmEndOfChat(with message: SendBirdSDK.SBDUserMessage, confirm: Swift.Bool, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc(confirmEndOfChatWithMessage:confirm:completionHandler:) public static func confirmEndOfChat(with message: SendbirdChatSDK.UserMessage, confirm: Swift.Bool, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc(createTicketWithTitle:userName:completionHandler:) public static func createTicket(with title: Swift.String?, userName: Swift.String?, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@available(*, deprecated, renamed: "createTicket(with:userName:completionHandler:)", message: "Deprecated in 1.0.17")
public static func createTicket(withTitle title: Swift.String?, userName: Swift.String?, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
Expand All @@ -117,14 +117,14 @@ extension SendBirdDesk.SBDSKTicket {
@objc(createTicketWithTitle:userName:groupKey:customFields:priority:relatedChannels:botKey:completionHandler:) public static func createTicket(with title: Swift.String?, userName: Swift.String?, groupKey: Swift.String?, customFields: [Swift.String : Swift.String]?, priority: SendBirdDesk.SBDSKTicketPriority, relatedChannels: [Swift.String]?, botKey: Swift.String?, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@available(*, deprecated, renamed: "createTicket(with:userName:groupKey:customFields:priority:relatedChannels:botKey:completionHandler:)", message: "Deprecated in 1.0.17")
public static func createTicket(withTitle title: Swift.String?, userName: Swift.String?, groupKey: Swift.String?, customFields: [Swift.String : Swift.String]?, priority: SendBirdDesk.SBDSKTicketPriority, relatedChannels: [Swift.String]?, botKey: Swift.String?, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc public static func getOpenCount(completionHandler: ((_ count: Swift.Int, _ error: SendBirdSDK.SBDError?) -> Swift.Void)? = nil)
@objc public static func getOpenCount(completionHandler: ((_ count: Swift.Int, _ error: SendbirdChatSDK.SBError?) -> Swift.Void)? = nil)
@objc(getOpenedListWithOffset:completionHandler:) public static func getOpenedList(withOffset offset: Swift.Int, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
@objc(getOpenedListWithOffset:customFieldFilter:completionHandler:) public static func getOpenedList(withOffset offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
@objc(getClosedListWithOffset:completionHandler:) public static func getClosedList(withOffset offset: Swift.Int, completionHandler: SendBirdDesk.SBDSKTicketListHandler?)
@objc(getClosedListWithOffset:customFieldFilter:completionHandler:) public static func getClosedList(withOffset offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
@objc(getByChannelUrl:completionHandler:) public static func getByChannelURL(_ channelUrl: Swift.String, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc dynamic public func reopen(completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc(submitFeedbackWithMessage:score:comment:completionHandler:) public static func submitFeedback(with message: SendBirdSDK.SBDUserMessage, score: Swift.Int, comment: Swift.String? = nil, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc(submitFeedbackWithMessage:score:comment:completionHandler:) public static func submitFeedback(with message: SendbirdChatSDK.UserMessage, score: Swift.Int, comment: Swift.String? = nil, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc dynamic public func setCustomFields(_ customFields: [Swift.String : Swift.String], completionHandler: SendBirdDesk.SBDSKErrorHandler? = nil)
@objc dynamic public func setPriority(_ priority: SendBirdDesk.SBDSKTicketPriority, completionHandler: SendBirdDesk.SBDSKErrorHandler? = nil)
@objc dynamic public func setRelatedChannels(_ relatedChannels: [Swift.String], completionHandler: SendBirdDesk.SBDSKErrorHandler? = nil)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// swift-module-flags: -target armv7-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name SendBirdDesk
import Foundation
@_exported import SendBirdDesk
import SendBirdSDK
import SendbirdChatSDK
import Swift
import UIKit
import _Concurrency
Expand All @@ -18,7 +18,7 @@ import _Concurrency
@objc final public let faqFileId: Swift.Int64
@objc final public let type: Swift.String
@objc final public let faqResults: [SendBirdDesk.SBDSKFAQData.SBDSKFAQResult]
@objc(initWithMessage:) public init?(with message: SendBirdSDK.SBDBaseMessage)
@objc(initWithMessage:) public init?(with message: SendbirdChatSDK.BaseMessage)
required public init(from decoder: Swift.Decoder) throws
@objc public class SBDSKFAQResult : ObjectiveC.NSObject, Swift.Decodable {
@objc final public let category: Swift.String?
Expand All @@ -40,7 +40,7 @@ import _Concurrency
@objc public static func getSdkVersion() -> Swift.String
@objc public static func setCompletionHandlerDelegateQueue(_ queue: Dispatch.DispatchQueue)
@objc(authenticateWithUserId:accessToken:completionHandler:) public static func authenticate(withUserId userId: Swift.String, accessToken: Swift.String? = nil, completionHandler: SendBirdDesk.SBDSKErrorHandler?)
@objc public static func isDeskChannel(_ channel: SendBirdSDK.SBDBaseChannel) -> Swift.Bool
@objc public static func isDeskChannel(_ channel: SendbirdChatSDK.BaseChannel) -> Swift.Bool
@objc public static func setCustomerCustomFields(_ customFields: [Swift.String : Swift.String], completionHandler: SendBirdDesk.SBDSKErrorHandler?)
@objc override dynamic public init()
@objc deinit
Expand All @@ -58,9 +58,9 @@ import _Concurrency
get
}
}
public typealias SBDSKErrorHandler = (_ error: SendBirdSDK.SBDError?) -> Swift.Void
public typealias SBDSKTicketHandler = (_ ticket: SendBirdDesk.SBDSKTicket?, _ error: SendBirdSDK.SBDError?) -> Swift.Void
public typealias SBDSKTicketListHandler = (_ tickets: [SendBirdDesk.SBDSKTicket]?, _ hasNext: Swift.Bool, _ error: SendBirdSDK.SBDError?) -> Swift.Void
public typealias SBDSKErrorHandler = (_ error: SendbirdChatSDK.SBError?) -> Swift.Void
public typealias SBDSKTicketHandler = (_ ticket: SendBirdDesk.SBDSKTicket?, _ error: SendbirdChatSDK.SBError?) -> Swift.Void
public typealias SBDSKTicketListHandler = (_ tickets: [SendBirdDesk.SBDSKTicket]?, _ hasNext: Swift.Bool, _ error: SendbirdChatSDK.SBError?) -> Swift.Void
@objc public class SBDSKTicket : ObjectiveC.NSObject, Swift.Codable {
@objc public var ticketId: Swift.Int64 {
get
Expand All @@ -74,7 +74,7 @@ public typealias SBDSKTicketListHandler = (_ tickets: [SendBirdDesk.SBDSKTicket]
@objc public var agent: SendBirdDesk.SBDSKAgent? {
get
}
@objc public var channel: SendBirdSDK.SBDGroupChannel? {
@objc public var channel: SendbirdChatSDK.GroupChannel? {
get
}
@objc public var customFields: [Swift.String : Swift.String] {
Expand All @@ -95,7 +95,7 @@ extension SendBirdDesk.SBDSKTicket {
@objc(closeWithComment:completionHandler:) dynamic public func close(with comment: Swift.String?, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@available(*, deprecated, renamed: "close(with:completionHandler:)", message: "Deprecated in 1.0.17")
public func close(withComment comment: Swift.String?, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc(confirmEndOfChatWithMessage:confirm:completionHandler:) public static func confirmEndOfChat(with message: SendBirdSDK.SBDUserMessage, confirm: Swift.Bool, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc(confirmEndOfChatWithMessage:confirm:completionHandler:) public static func confirmEndOfChat(with message: SendbirdChatSDK.UserMessage, confirm: Swift.Bool, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc(createTicketWithTitle:userName:completionHandler:) public static func createTicket(with title: Swift.String?, userName: Swift.String?, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@available(*, deprecated, renamed: "createTicket(with:userName:completionHandler:)", message: "Deprecated in 1.0.17")
public static func createTicket(withTitle title: Swift.String?, userName: Swift.String?, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
Expand All @@ -117,14 +117,14 @@ extension SendBirdDesk.SBDSKTicket {
@objc(createTicketWithTitle:userName:groupKey:customFields:priority:relatedChannels:botKey:completionHandler:) public static func createTicket(with title: Swift.String?, userName: Swift.String?, groupKey: Swift.String?, customFields: [Swift.String : Swift.String]?, priority: SendBirdDesk.SBDSKTicketPriority, relatedChannels: [Swift.String]?, botKey: Swift.String?, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@available(*, deprecated, renamed: "createTicket(with:userName:groupKey:customFields:priority:relatedChannels:botKey:completionHandler:)", message: "Deprecated in 1.0.17")
public static func createTicket(withTitle title: Swift.String?, userName: Swift.String?, groupKey: Swift.String?, customFields: [Swift.String : Swift.String]?, priority: SendBirdDesk.SBDSKTicketPriority, relatedChannels: [Swift.String]?, botKey: Swift.String?, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc public static func getOpenCount(completionHandler: ((_ count: Swift.Int, _ error: SendBirdSDK.SBDError?) -> Swift.Void)? = nil)
@objc public static func getOpenCount(completionHandler: ((_ count: Swift.Int, _ error: SendbirdChatSDK.SBError?) -> Swift.Void)? = nil)
@objc(getOpenedListWithOffset:completionHandler:) public static func getOpenedList(withOffset offset: Swift.Int, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
@objc(getOpenedListWithOffset:customFieldFilter:completionHandler:) public static func getOpenedList(withOffset offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
@objc(getClosedListWithOffset:completionHandler:) public static func getClosedList(withOffset offset: Swift.Int, completionHandler: SendBirdDesk.SBDSKTicketListHandler?)
@objc(getClosedListWithOffset:customFieldFilter:completionHandler:) public static func getClosedList(withOffset offset: Swift.Int, customFieldFilter: [Swift.String : Swift.String]? = nil, completionHandler: SendBirdDesk.SBDSKTicketListHandler? = nil)
@objc(getByChannelUrl:completionHandler:) public static func getByChannelURL(_ channelUrl: Swift.String, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc dynamic public func reopen(completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc(submitFeedbackWithMessage:score:comment:completionHandler:) public static func submitFeedback(with message: SendBirdSDK.SBDUserMessage, score: Swift.Int, comment: Swift.String? = nil, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc(submitFeedbackWithMessage:score:comment:completionHandler:) public static func submitFeedback(with message: SendbirdChatSDK.UserMessage, score: Swift.Int, comment: Swift.String? = nil, completionHandler: SendBirdDesk.SBDSKTicketHandler? = nil)
@objc dynamic public func setCustomFields(_ customFields: [Swift.String : Swift.String], completionHandler: SendBirdDesk.SBDSKErrorHandler? = nil)
@objc dynamic public func setPriority(_ priority: SendBirdDesk.SBDSKTicketPriority, completionHandler: SendBirdDesk.SBDSKErrorHandler? = nil)
@objc dynamic public func setRelatedChannels(_ relatedChannels: [Swift.String], completionHandler: SendBirdDesk.SBDSKErrorHandler? = nil)
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit a14fb3b

Please sign in to comment.