Skip to content

Commit 5252469

Browse files
committed
Bump up to v1.0.0-beta.2
1 parent 824383b commit 5252469

File tree

80 files changed

+4464
-636
lines changed

Some content is hidden

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

80 files changed

+4464
-636
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
### v1.0.0-beta.1 (Sep 2, 2024)
2-
- Fixed the package's `CFBundleShortVersionString` format to comply to the required format
1+
### v1.0.0-beta.2 (Sep 30, 2024)
2+
- Fixed multiple navigationBars appearing issue

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ let package = Package(
1717
.package(
1818
name: "SendbirdChatSDK",
1919
url: "https://github.com/sendbird/sendbird-chat-sdk-ios",
20-
from: "4.20.0"
20+
from: "4.21.1"
2121
),
2222
],
2323
targets: [
2424
.binaryTarget(
2525
name: "SendbirdSwiftUI",
26-
url: "https://github.com/sendbird/sendbird-swiftui-ios/releases/download/1.0.0-beta.1/SendbirdSwiftUI.xcframework.zip",
27-
checksum: "cd882856d77ba496eb313b16eeec35d8c981f49dcac3818194badac4a3960183"
26+
url: "https://github.com/sendbird/sendbird-swiftui-ios/releases/download/1.0.0-beta.2/SendbirdSwiftUI.xcframework.zip",
27+
checksum: "097139b0498cf40ad4840f62a6366cd6eea7ffc0683995c03152dd19131e9913"
2828

2929
),
3030
.target(

Sample/QuickStartSwiftUI.xcodeproj/project.pbxproj

Lines changed: 867 additions & 53 deletions
Large diffs are not rendered by default.

Sample/project.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ options:
1212
packages:
1313
SendbirdChatSDK:
1414
url: https://github.com/sendbird/sendbird-chat-sdk-ios
15-
from: 4.20.0
15+
from: 4.21.1
1616

1717
schemes:
1818
QuickStartSwiftUI:
@@ -41,7 +41,7 @@ settingGroups:
4141
FRAMEWORK_SEARCH_PATHS: ''
4242
IPHONEOS_DEPLOYMENT_TARGET: '15.0'
4343
LD_RUNPATH_SEARCH_PATHS: ["$(inherited)", "@executable_path/Frameworks", "@loader_path/Frameworks"]
44-
MARKETING_VERSION: '1.0.0-beta.1'
44+
MARKETING_VERSION: '1.0.0-beta.2'
4545
PRODUCT_NAME: "$(TARGET_NAME)"
4646
SDKROOT: iphoneos
4747
SWIFT_VERSION: '5.0'

SendbirdSwiftUI.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "SendbirdSwiftUI"
3-
s.version = "1.0.0-beta.1"
3+
s.version = "1.0.0-beta.2"
44
s.summary = "Sendbird SwiftUI SDK based on SendbirdChatSDK"
55
s.description = "SendbirdSwiftUI is a framework composed of basic UI components based on SwiftUI and SendbirdChatSDK."
66
s.homepage = "https://sendbird.com"
@@ -16,10 +16,10 @@ Pod::Spec.new do |s|
1616
"Kai" => "[email protected]"
1717
}
1818
s.platform = :ios, "15.0"
19-
s.source = { :http => "https://github.com/sendbird/sendbird-swiftui-ios/releases/download/#{s.version}/SendbirdSwiftUI.zip", :sha1 => "b6615fddbfb97ceec73f837365724f467d28660b" }
19+
s.source = { :http => "https://github.com/sendbird/sendbird-swiftui-ios/releases/download/#{s.version}/SendbirdSwiftUI.zip", :sha1 => "7707988dde5aa55cea4af0f46c4c76f869300699" }
2020
s.ios.vendored_frameworks = 'SendbirdSwiftUI/SendbirdSwiftUI.xcframework'
2121
s.ios.frameworks = ["UIKit", "SwiftUI", "Foundation", "CoreData", "SendbirdChatSDK"]
2222
s.requires_arc = true
23-
s.dependency "SendbirdChatSDK", ">= 4.20.0"
23+
s.dependency "SendbirdChatSDK", ">= 4.21.1"
2424
s.ios.library = "icucore"
2525
end

Sources/Constant/SBUStringSet.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,10 @@ public class SBUStringSet {
328328
// MARK: - form type
329329
public static var FormType_Optional = "(optional)" // 3.11.0
330330
public static var FormType_Error_Default = "Please check the value" // 3.11.0
331+
public static var FormType_Error_Required = "This field is required" // 3.27.0
332+
public static var FormType_Fallback_Message = "Form type messages are not available in this version." // 3.27.0
333+
public static var FormType_Submit_Done = "Submitted successfully" // 3.27.0
334+
public static var FormType_No_Reponse = "No response" // 3.27.0
331335

332336
// MARK: - Feedback
333337
public static var Feedback_Comment_Title = "Provide additional feedback (optional)" // 3.15.0

Sources/Deprecated/SBUForm.Deprecated.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ extension SBUUserMessageCell {
183183
public func updateFormView(with forms: [SBUForm]?, answers: [SBUForm.Answer]) -> Bool { false }
184184
}
185185

186+
@available(*, unavailable, message: "This model is no longer used internally.")
186187
extension SBUFormViewDelegate {
187188
/// Called when `form` is submitted.
188189
/// - Parameters:
@@ -199,6 +200,7 @@ extension SBUFormViewDelegate {
199200
func formView(_ view: SBUFormView, didUpdate answer: SBUForm.Answer) { }
200201
}
201202

203+
@available(*, unavailable, message: "This model is no longer used internally.")
202204
extension SBUFormFieldViewDelegate {
203205
/// Called when `SBUForm.Field` is updated.
204206
/// - Parameters:
@@ -208,13 +210,15 @@ extension SBUFormFieldViewDelegate {
208210
func formFieldView(_ fieldView: SBUFormFieldView, didUpdate updated: SBUForm.Field.Updated) { }
209211
}
210212

213+
@available(*, unavailable, message: "This method is deprecated in 3.27.0")
211214
extension SBUFormViewParams {
212215
@available(*, unavailable, message: "This model is no longer used internally. Changed to use `SendbirdChatSDK.Form`.")
213216
init(messageId: Int64, form: SBUForm) {
214217
fatalError("This model is no longer used internally. Changed to use `SendbirdChatSDK.Form`.")
215218
}
216219
}
217220

221+
@available(*, unavailable, message: "This model is no longer used internally.")
218222
extension SBUFormView {
219223
/// Memory cached answer data.
220224
@available(*, unavailable, message: "This model is no longer used internally. Changed to use `SendbirdChatSDK.Form`.")
@@ -232,6 +236,7 @@ extension SBUFormView {
232236
public func formFieldView(_ view: SBUFormFieldView, didUpdate updated: SBUForm.Field.Updated) { }
233237
}
234238

239+
@available(*, unavailable, message: "This model is no longer used internally.")
235240
extension SBUFormFieldView {
236241

237242
// MARK: - Configure
@@ -277,6 +282,7 @@ extension SBUGroupChannelViewController {
277282
public func groupChannelModule(_ listComponent: SBUGroupChannelModule.List, answersFor messageId: Int64?) -> [SBUForm.Answer]? { nil }
278283
}
279284

285+
@available(*, unavailable, message: "This model is no longer used internally.")
280286
extension SBUFormFieldView.StatusType {
281287
@available(*, unavailable, message: "This model is no longer used internally. Changed to use `SendbirdChatSDK.Form`.")
282288
public init(form: SBUForm, field: SBUForm.Field, value: String?) {

Sources/View/Channel/MessageCell/Forms/Views/SBUFormFieldView.swift renamed to Sources/Deprecated/SBUFormFieldView.Deprecated.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import UIKit
1010
import SendbirdChatSDK
1111

1212
/// - Since: 3.11.0
13+
@available(*, deprecated, message: "This method is deprecated in 3.27.0")
1314
public protocol SBUFormFieldViewDelegate: AnyObject {
1415
/// Called when `SBUForm.Field` is updated.
1516
/// - Parameters:
@@ -19,6 +20,7 @@ public protocol SBUFormFieldViewDelegate: AnyObject {
1920
}
2021

2122
/// - Since: 3.11.0
23+
@available(*, deprecated, message: "This method is deprecated in 3.27.0", renamed: "SBUMessageFormItemView")
2224
public class SBUFormFieldView: SBUView, UITextFieldDelegate {
2325
// MARK: - Properties
2426

@@ -68,6 +70,7 @@ public class SBUFormFieldView: SBUView, UITextFieldDelegate {
6870
}
6971

7072
/// - Since: 3.11.0
73+
@available(*, deprecated, message: "This method is deprecated in 3.27.0", renamed: "SBUMessageFormItemView")
7174
public class SBUSimpleFormFieldView: SBUFormFieldView {
7275

7376
/// A vertical stack view to configure layouts of the fields.
@@ -156,7 +159,7 @@ public class SBUSimpleFormFieldView: SBUFormFieldView {
156159

157160
self.errorTitleView.sbu_constraint(height: 12)
158161

159-
self.topSpaceView.sbu_constraint(width: 1, height: 8)
162+
self.topSpaceView.sbu_constraint(width: 1, height: 6)
160163
self.bottomSpaceView.sbu_constraint(width: 1, height: 4)
161164

162165
self.inputFieldView
@@ -261,9 +264,11 @@ public class SBUSimpleFormFieldView: SBUFormFieldView {
261264

262265
}
263266

267+
@available(*, deprecated, message: "This method is deprecated in 3.27.0")
264268
extension SBUFormFieldView {
265269
/// Enum model to indicate the status of the value in the currently entered field.
266270
/// - Since: 3.11.0
271+
@available(*, deprecated, message: "This method is deprecated in 3.27.0")
267272
public enum StatusType {
268273
/// Represents a completed form field with a value.
269274
case done(value: String)
@@ -341,6 +346,7 @@ extension SBUFormFieldView {
341346
/// Indicates the input type of the field.
342347
/// Can be used to specify the keyboard type.
343348
/// - Since: 3.16.0
349+
@available(*, deprecated, message: "This method is deprecated in 3.27.0")
344350
public enum SBUFormFieldInputType: String, Codable {
345351
case text // default value.
346352
case phone

Sources/View/Channel/MessageCell/Forms/Views/SBUFormView.swift renamed to Sources/Deprecated/SBUFormView.Deprecated.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import UIKit
1010
import SendbirdChatSDK
1111

1212
/// - Since: 3.11.0
13+
@available(*, deprecated, message: "This method is deprecated in 3.27.0")
1314
public protocol SBUFormViewDelegate: AnyObject {
1415
/// Called when `form` is submitted.
1516
/// - Parameters:
@@ -20,6 +21,7 @@ public protocol SBUFormViewDelegate: AnyObject {
2021
}
2122

2223
/// - Since: 3.11.0
24+
@available(*, deprecated, message: "This method is deprecated in 3.27.0", renamed: "SBUMessageFormView")
2325
open class SBUFormView: SBUView, SBUFormFieldViewDelegate {
2426
public var theme: SBUMessageCellTheme = SBUTheme.messageCellTheme
2527

@@ -83,6 +85,7 @@ open class SBUFormView: SBUView, SBUFormFieldViewDelegate {
8385
}
8486

8587
/// - Since: 3.11.0
88+
@available(*, deprecated, message: "This method is deprecated in 3.27.0", renamed: "SBUMessageFormView")
8689
open class SBUSimpleFormView: SBUFormView {
8790
// views
8891

Sources/View/Channel/MessageCell/Forms/ViewParams/SBUFormViewParams.swift renamed to Sources/Deprecated/SBUFormViewParams.Deprecated.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import SendbirdChatSDK
1111

1212
/// The data model used for configuring ``SBUFormView``.
1313
/// - Since: 3.11.0
14+
@available(*, deprecated, message: "This method is deprecated in 3.27.0")
1415
public struct SBUFormViewParams {
1516
// MARK: - Properties
1617
/// The ID of the message that provides form.

0 commit comments

Comments
 (0)