Skip to content

Commit

Permalink
Bump up to v1.0.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lookdeceline committed Sep 2, 2024
1 parent 0ad88ff commit 7225af1
Show file tree
Hide file tree
Showing 72 changed files with 235 additions and 251 deletions.
12 changes: 2 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,2 @@
### v1.0.0-beta.0 (Aug 14, 2024)

:tada: Exciting Announcement: Now Supports SwiftUI! :partying_face:

We're thrilled to introduce the latest version of SendbirdSwiftUI, bringing modern SwiftUI support to our popular Chat SDK!

Our previous UIKit-based SDK allowed for rapid UI integration and simple customization. Now, we're extending these benefits to SwiftUI, the cutting-edge framework for building user interfaces.

We offer the same level of features with our UIKit SDK.
For detailed information and documentation, please visit our [docs homepage](https://sendbird.com/docs/chat/uikit/v3/swiftui/overview).
### v1.0.0-beta.1 (Sep 2, 2024)
- Fixed the package's `CFBundleShortVersionString` format to comply to the required format
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "SendbirdSwiftUI",
url: "https://github.com/sendbird/sendbird-swiftui-ios/releases/download/1.0.0-beta.0/SendbirdSwiftUI.xcframework.zip",
checksum: "abf3c3e36505574d97f6415a23eeb241658acaadbd051e8b9317fdb41e18654e"
url: "https://github.com/sendbird/sendbird-swiftui-ios/releases/download/1.0.0-beta.1/SendbirdSwiftUI.xcframework.zip",
checksum: "180d5cfa23e9a6a5887a1752da6337a8c9f50e19deaf6bf78d71f14d85cf0663"

),
.target(
Expand Down
24 changes: 12 additions & 12 deletions Sample/QuickStartSwiftUI.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -6295,56 +6295,56 @@
path = List;
sourceTree = "<group>";
};
"TEMP_2185EF23-F2A3-424B-9B8F-2FF16C31F40E" /* SubView */ = {
"TEMP_0C341D73-136A-49CB-A216-98A53F3B138D" /* SubView */ = {
isa = PBXGroup;
children = (
);
path = SubView;
sourceTree = "<group>";
};
"TEMP_273645DA-DF89-44A3-A28A-687F7261B187" /* SubView */ = {
"TEMP_4B1B69A4-AB15-4A00-BA15-935B9383F41F" /* SubView */ = {
isa = PBXGroup;
children = (
);
path = SubView;
sourceTree = "<group>";
};
"TEMP_3F042B2A-05ED-4E86-87BC-90017C10E7EB" /* SubView */ = {
"TEMP_802D4E33-5564-4A71-B2FE-0AE1E34D38BB" /* SubView */ = {
isa = PBXGroup;
children = (
);
path = SubView;
sourceTree = "<group>";
};
"TEMP_72303569-4405-4B79-9334-39FD298C1411" /* SubView */ = {
"TEMP_BDD8CDA9-590E-407A-94B6-6B8382BE6554" /* SubView */ = {
isa = PBXGroup;
children = (
);
path = SubView;
sourceTree = "<group>";
};
"TEMP_76B41441-A84B-4EBD-8CE6-E66B60AFC56D" /* SubView */ = {
"TEMP_C3F46338-6E1E-44A5-9BBF-E04508C01B44" /* SubView */ = {
isa = PBXGroup;
children = (
);
path = SubView;
sourceTree = "<group>";
};
"TEMP_8F30F6D3-0A92-4E02-8C52-070D0F9E73A1" /* SubView */ = {
"TEMP_CCB46433-9BEC-4863-BE9D-89B9BCA29AAA" /* SubView */ = {
isa = PBXGroup;
children = (
);
path = SubView;
sourceTree = "<group>";
};
"TEMP_C087A9E3-F659-498F-8EB2-E75D00FDCBF2" /* SubView */ = {
"TEMP_EA96858A-2424-4621-98A0-FA7F9580D51B" /* SubView */ = {
isa = PBXGroup;
children = (
);
path = SubView;
sourceTree = "<group>";
};
"TEMP_C1DE2362-DAEF-4680-AB42-9764BF76B87D" /* SubView */ = {
"TEMP_F908E83B-0A6B-4D9F-9C3B-E0D5A1A394CB" /* SubView */ = {
isa = PBXGroup;
children = (
);
Expand Down Expand Up @@ -7530,7 +7530,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = "1.0.0-beta.0";
MARKETING_VERSION = "1.0.0-beta.1";
PRODUCT_BUNDLE_IDENTIFIER = com.sendbird.swiftui.sample;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
Expand Down Expand Up @@ -7563,7 +7563,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = "1.0.0-beta.0";
MARKETING_VERSION = "1.0.0-beta.1";
PRODUCT_BUNDLE_IDENTIFIER = com.sendbird.swiftui.sample.SwiftUINotificationService;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
Expand Down Expand Up @@ -7654,7 +7654,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = "1.0.0-beta.0";
MARKETING_VERSION = "1.0.0-beta.1";
PRODUCT_BUNDLE_IDENTIFIER = com.sendbird.swiftui.sample;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
Expand Down Expand Up @@ -7742,7 +7742,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = "1.0.0-beta.0";
MARKETING_VERSION = "1.0.0-beta.1";
PRODUCT_BUNDLE_IDENTIFIER = com.sendbird.swiftui.sample.SwiftUINotificationService;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion Sample/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ settingGroups:
FRAMEWORK_SEARCH_PATHS: ''
IPHONEOS_DEPLOYMENT_TARGET: '15.0'
LD_RUNPATH_SEARCH_PATHS: ["$(inherited)", "@executable_path/Frameworks", "@loader_path/Frameworks"]
MARKETING_VERSION: '1.0.0-beta.0'
MARKETING_VERSION: '1.0.0-beta.1'
PRODUCT_NAME: "$(TARGET_NAME)"
SDKROOT: iphoneos
SWIFT_VERSION: '5.0'
Expand Down
4 changes: 2 additions & 2 deletions SendbirdSwiftUI.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SendbirdSwiftUI"
s.version = "1.0.0-beta.0"
s.version = "1.0.0-beta.1"
s.summary = "Sendbird SwiftUI SDK based on SendbirdChatSDK"
s.description = "SendbirdSwiftUI is a framework composed of basic UI components based on SwiftUI and SendbirdChatSDK."
s.homepage = "https://sendbird.com"
Expand All @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
"Kai" => "[email protected]"
}
s.platform = :ios, "15.0"
s.source = { :http => "https://github.com/sendbird/sendbird-swiftui-ios/releases/download/#{s.version}/SendbirdSwiftUI.zip", :sha1 => "884264ed43b007f6f26f96d77a1ef08bb085f7f6" }
s.source = { :http => "https://github.com/sendbird/sendbird-swiftui-ios/releases/download/#{s.version}/SendbirdSwiftUI.zip", :sha1 => "5f48af9f455c3d1d45b6ada5459a67a899637501" }
s.ios.vendored_frameworks = 'SendbirdSwiftUI/SendbirdSwiftUI.xcframework'
s.ios.frameworks = ["UIKit", "SwiftUI", "Foundation", "CoreData", "SendbirdChatSDK"]
s.requires_arc = true
Expand Down
2 changes: 1 addition & 1 deletion Sources/Enums/SBUEnums.swift
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ public enum SBUChannelType {

// - MARK: Internal

/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
enum SBUItemUsageState<Item: Hashable> {
case unused
case usingDefault(Item)
Expand Down
2 changes: 1 addition & 1 deletion Sources/Extension/UINavigationController+SBUIKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extension UINavigationController {

#if SWIFTUI
/// Push view controller with hiding navigation bar. Method to hide and show navigationBar in swiftui (ui timing issue)
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public func pushViewControllerNonFlickering<T>(
_ viewController: UIHostingController<T>,
animated: Bool
Expand Down
34 changes: 17 additions & 17 deletions Sources/Module/Channel/GroupChannel/SBUGroupChannelModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,76 +26,76 @@ extension SBUGroupChannelModule {
// MARK: Header
extension SBUGroupChannelModule.Header {
/// Represents the type of left bar button on the group channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var LeftBarButton: SBUBarButtonItem.Type = SBUBarButtonItem.self

/// Represents the type of right bar button on the group channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var RightBarButton: SBUBarButtonItem.Type = SBUBarButtonItem.self

/// Represents the type of title view on the group channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var TitleView: SBUChannelTitleView.Type = SBUChannelTitleView.self
}

// MARK: List
extension SBUGroupChannelModule.List {
/// Represents the type of empty view on the group channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var EmptyView: SBUEmptyView.Type = SBUEmptyView.self

/// Represents the type of admin message cell on the group channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var AdminMessageCell: SBUBaseMessageCell.Type = SBUAdminMessageCell.self

/// Represents the type of user message cell on the group channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var UserMessageCell: SBUBaseMessageCell.Type = SBUUserMessageCell.self

/// Represents the type of file message cell on the group channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var FileMessageCell: SBUBaseMessageCell.Type = SBUFileMessageCell.self

/// Represents the type of multiple files message cell on the group channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var MultipleFilesMessageCell: SBUBaseMessageCell.Type = SBUMultipleFilesMessageCell.self

/// Represents the type of typing indicator cell on the group channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var TypingIndicatorMessageCell: SBUBaseMessageCell.Type = SBUTypingIndicatorMessageCell.self

/// Represents the type of unknown cell on the group channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var UnknownMessageCell: SBUBaseMessageCell.Type = SBUUnknownMessageCell.self

/// Represents the type of custom cell on the group channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var CustomMessageCell: SBUBaseMessageCell.Type?

/// Represents the type of channel state banner view on the group channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var ChannelStateBanner: SBUChannelStateBanner.Type = SBUChannelStateBanner.self

/// Represents the type of scroll bottom view on the group channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var ScrollBottomView: SBUScrollBottomView.Type = SBUScrollBottomView.self

/// Represents the type of message info view on the group channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var NewMessageInfo: SBUNewMessageInfo.Type = SBUNewMessageInfo.self

/// Represents the type of profile view on the group channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var UserProfileView: SBUUserProfileView.Type = SBUUserProfileView.self
}

// MARK: Input
extension SBUGroupChannelModule.Input {
/// The component property that the message input view.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var MessageInputView: SBUMessageInputView.Type = SBUMessageInputView.self

/// The component property that the voice message input view.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var VoiceMessageInputView: SBUVoiceMessageInputView.Type = SBUVoiceMessageInputView.self
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ extension SBUOpenChannelModule {
}

/// A view that represents right bar items in navigation bar.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
/// - NOTE: When the value is updated, `baseChannelModule(_:didUpdateRightItems:)` delegate function is called.
override public var rightBarButtons: [UIBarButtonItem]? {
get { self.internalRightBarButtons.item ?? nil }
Expand Down
28 changes: 14 additions & 14 deletions Sources/Module/Channel/OpenChannel/SBUOpenChannelModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,68 +29,68 @@ extension SBUOpenChannelModule {
// MARK: Header
extension SBUOpenChannelModule.Header {
/// Represents the type of left bar button on the open channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var LeftBarButton: SBUBarButtonItem.Type = SBUBarButtonItem.self

/// Represents the type of right bar button on the open channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var RightBarButton: SBUBarButtonItem.Type = SBUBarButtonItem.self

/// Represents the type of title view on the open channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var TitleView: SBUChannelTitleView.Type = SBUChannelTitleView.self
}

// MARK: List
extension SBUOpenChannelModule.List {
/// Represents the type of empty view on the open channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var EmptyView: SBUEmptyView.Type = SBUEmptyView.self

/// Represents the type of admin message cell on the open channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var AdminMessageCell: SBUOpenChannelBaseMessageCell.Type = SBUOpenChannelAdminMessageCell.self

/// Represents the type of user message cell on the open channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var UserMessageCell: SBUOpenChannelBaseMessageCell.Type = SBUOpenChannelUserMessageCell.self

/// Represents the type of file message cell on the open channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var FileMessageCell: SBUOpenChannelBaseMessageCell.Type = SBUOpenChannelFileMessageCell.self

/// Represents the type of unknown message cell on the open channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var UnknownMessageCell: SBUOpenChannelBaseMessageCell.Type = SBUOpenChannelUnknownMessageCell.self

/// Represents the type of custom message cell on the open channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var CustomMessageCell: SBUOpenChannelBaseMessageCell.Type?

/// Represents the type of channel state banner on the open channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var ChannelStateBanner: SBUChannelStateBanner.Type = SBUChannelStateBanner.self

/// Represents the type of scroll bottom view on the open channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var ScrollBottomView: SBUScrollBottomView.Type = SBUScrollBottomView.self

/// Represents the type of user profile view on the open channel module.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var UserProfileView: SBUUserProfileView.Type = SBUUserProfileView.self
}

// MARK: Input
extension SBUOpenChannelModule.Input {
/// The component property that the message input view.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var MessageInputView: SBUMessageInputView.Type = SBUMessageInputView.self
}

// MARK: Media
extension SBUOpenChannelModule.Media {
/// A view to shows media or other contents in the open channel.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
public static var MediaView: SBUMediaView.Type = SBUMediaView.self

}
8 changes: 4 additions & 4 deletions Sources/Module/Channel/SBUBaseChannelModule.Header.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ public protocol SBUBaseChannelModuleHeaderDelegate: SBUCommonDelegate {
/// - Parameters:
/// - headerComponent: `SBUBaseChannelModule.Header` object
/// - rightItem: Updated `leftBarButtons` object.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
func baseChannelModule(_ headerComponent: SBUBaseChannelModule.Header, didUpdateLeftItems leftItems: [UIBarButtonItem]?)

/// Called when `rightBarButtons` value has been updated.
/// - Parameters:
/// - headerComponent: `SBUBaseChannelModule.Header` object
/// - rightItem: Updated `rightBarButtons` object.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
func baseChannelModule(_ headerComponent: SBUBaseChannelModule.Header, didUpdateRightItems rightItems: [UIBarButtonItem]?)

/// Called when `titleView` was selected.
Expand Down Expand Up @@ -116,7 +116,7 @@ extension SBUBaseChannelModule {
var internalRightBarButton: SBUItemUsageState<UIBarButtonItem?> = .unused

/// A view that represents left bar items in navigation bar.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
/// - NOTE: When the value is updated, `baseChannelModule(_:didUpdateLeftItems:)` delegate function is called.
public var leftBarButtons: [UIBarButtonItem]? {
didSet {
Expand All @@ -125,7 +125,7 @@ extension SBUBaseChannelModule {
}

/// A view that represents right bar items in navigation bar.
/// - Since: 3.26.0
/// - Since: [NEXT_VERSION]
/// - NOTE: When the value is updated, `baseChannelModule(_:didUpdateRightItems:)` delegate function is called.
public var rightBarButtons: [UIBarButtonItem]? {
didSet {
Expand Down
Loading

0 comments on commit 7225af1

Please sign in to comment.