Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
d3af31e
Increase TestHelpers version (#2752)
ipavlidakis Aug 28, 2023
8767b08
Fix channel capabilities logic when channel is empty (#2754)
nuno-vieira Aug 29, 2023
0ad815f
Merge branch 'main' into develop
nuno-vieira Aug 30, 2023
26f2138
Allow the uploads capability to manage the recordButton's appearance …
ipavlidakis Aug 31, 2023
a816b76
Chore - possibility to inject URLSessionConfiguration to be used by C…
mschuetz-viz Sep 1, 2023
2a1ec21
Fix core data warnings when logging with different user (#2759)
nuno-vieira Sep 1, 2023
539937b
Fix tapping on status bar scrolling to bottom instead of top (#2763)
nuno-vieira Sep 1, 2023
7bcfe4c
[BW] Pass required env var to fastlane release lane (#2767)
testableapple Sep 5, 2023
5cd031b
[BW] Resolve SwiftLint CI issues (#2766)
testableapple Sep 5, 2023
4fd8a62
[CI] Sync Mock Server (#2760)
Stream-SDK-Bot Sep 5, 2023
0b04950
Fix showing copy message action when text is empty (#2765)
nuno-vieira Sep 6, 2023
2266f70
Fix empty channel header view for new DM Channels (#2764)
nuno-vieira Sep 6, 2023
efad396
[BW] Workaround for flaky e2e test (#2768)
testableapple Sep 6, 2023
017333f
Fix connecting user from background thread (#2762)
nuno-vieira Sep 7, 2023
de45aa4
Add support for disabling jumping to message animation (#2770)
nuno-vieira Sep 8, 2023
375552c
Make `ChannelListLoadingView` Customizable + Fix UI Glitch (#2772)
nuno-vieira Sep 8, 2023
41b7424
Fix link preview title covering text when image is not loaded (#2773)
nuno-vieira Sep 11, 2023
be263c3
Fix composer input jumping when shrink button is tapped (#2774)
nuno-vieira Sep 12, 2023
106fcbb
Jump to unread messages - No interaction (#2592)
polqf Sep 12, 2023
a103245
Delete file and image endpoints (#2776)
martinmitrevski Sep 14, 2023
781c008
[CI] Sync Mock Server (#2779)
Stream-SDK-Bot Sep 15, 2023
928e853
Improve `addDevice()` and `removeDevice()` with optimistic updates (#…
nuno-vieira Sep 15, 2023
8ca7c87
Make the Logger thread-safe to avoid crashes (#2775)
nuno-vieira Sep 15, 2023
70ea177
Fix critical issue causing a query channel call for every new message…
nuno-vieira Sep 15, 2023
ceaed6c
Updated the docs for logout and disconnect (#2785)
martinmitrevski Sep 15, 2023
f71e0b2
[BW] Bump ruby gems versions (#2784)
testableapple Sep 15, 2023
36acb7f
Added threshold for queued messages before being sent (#2780)
martinmitrevski Sep 16, 2023
03bce28
Change logger queues to serial instead of concurrent (#2786)
nuno-vieira Sep 18, 2023
045df5d
Fix memory leak caused by `Timer.addTimeout()` (#2777)
nuno-vieira Sep 18, 2023
cc2a34a
Bump 4.37.0
ipavlidakis Sep 18, 2023
ed03d88
Update CHANGELOG.md
ipavlidakis Sep 18, 2023
8d8c48f
Update CHANGELOG.md
ipavlidakis Sep 18, 2023
65f7299
Fix broken composer input view scrolling after shrinking input (#2788)
nuno-vieira Sep 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
APPSTORE_API_KEY: ${{ secrets.APPSTORE_API_KEY }}
run: bundle exec fastlane publish_release version:${{ env.RELEASE_VERSION }} --verbose
18 changes: 13 additions & 5 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ disabled_rules:
- opening_brace
- line_length

# TODO: https://github.com/GetStream/ios-issues-tracking/issues/538
- attributes # it should be included in `opt_in_rules`
- orphaned_doc_comment
- void_function_in_ternary
- unneeded_synthesized_initializer
- ns_number_init_as_function_reference
- for_where

opt_in_rules:
- convenience_type
- empty_string
Expand All @@ -43,7 +51,6 @@ opt_in_rules:
- syntactic_sugar
- multiline_arguments
- multiline_function_chains
- attributes
- file_name_no_space

analyzer_rules:
Expand All @@ -52,9 +59,10 @@ analyzer_rules:
multiline_arguments:
only_enforce_after_first_closure_on_first_line: true

attributes:
always_on_same_line: ["@IBAction", "@NSManaged", "@objc"]
always_on_line_above: ["@discardableResult"]
# TODO: https://github.com/GetStream/ios-issues-tracking/issues/538
# attributes:
# always_on_same_line: ["@IBAction", "@NSManaged", "@objc"]
# always_on_line_above: ["@discardableResult"]

trailing_whitespace:
ignores_empty_lines: true
Expand All @@ -69,7 +77,7 @@ file_name_no_space:
identifier_name:
excluded: [r, g, b, a, x, y, z, dx, dy, dz, i, j, k, id, op, or, me, at, to, in]
allowed_symbols: ["_"]
validates_start_with_lowercase: false
validates_start_with_lowercase: "warning"

cyclomatic_complexity:
ignores_case_statements: true
Expand Down
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,37 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### πŸ”„ Changed

# [4.37.0](https://github.com/GetStream/stream-chat-swift/releases/tag/4.37.0)
_September 18, 2023_

## StreamChat
### βœ… Added
- Allow injecting a custom URLSessionConfiguration in ChatClientConfig [#2756](https://github.com/GetStream/stream-chat-swift/pull/2756)
- Methods for deleting file and image in `ChatChannelController` [#2776](https://github.com/GetStream/stream-chat-swift/pull/2776)
### 🐞 Fixed
- Fix core data warnings when logging with different user [#2759](https://github.com/GetStream/stream-chat-swift/pull/2759)
- Fix connecting user from background thread [#2762](https://github.com/GetStream/stream-chat-swift/pull/2762)
- Make the Logger thread-safe to avoid crashes [#2775](https://github.com/GetStream/stream-chat-swift/pull/2775)
- Improve `addDevice()` and `removeDevice()` with optimistic updates [#2778](https://github.com/GetStream/stream-chat-swift/pull/2778)
- Fix critical issue causing a query channel call for every new message [#2781](https://github.com/GetStream/stream-chat-swift/tree/fix/calling-watch-channel-on-every-new-message)
- Added threshold for queued messages before being sent [#2780](https://github.com/GetStream/stream-chat-swift/pull/2780)
- Fix memory leak caused by `Timer.addTimeout()` [#2777](https://github.com/GetStream/stream-chat-swift/pull/2777)

## StreamChatUI
### βœ… Added
- Add customization support for `ChannelListLoadingView` [#2772](https://github.com/GetStream/stream-chat-swift/pull/2772)
- Add support for disabling jumping to message animation [#2770](https://github.com/GetStream/stream-chat-swift/pull/2770)
### 🐞 Fixed
- Fix tapping on the status bar scrolling to the bottom instead of the top [#2763](https://github.com/GetStream/stream-chat-swift/pull/2763)
- Fix empty channel header view for new DM Channels [#2764](https://github.com/GetStream/stream-chat-swift/pull/2764)
- Fix showing copy message action when text is empty [#2765](https://github.com/GetStream/stream-chat-swift/pull/2765)
- Fix link preview title covering text when image is not loaded [#2773](https://github.com/GetStream/stream-chat-swift/pull/2773)
- Fix UI Glitch in `ChannelListLoadingView` with dummy data [#2772](https://github.com/GetStream/stream-chat-swift/pull/2772)
- Fix composer input jumping when shrink button is tapped [#2774](https://github.com/GetStream/stream-chat-swift/pull/2774)
### πŸ”„ Changed
- Make record button in composer, visible depending on the channel's capabilities. [#2758](https://github.com/GetStream/stream-chat-swift/pull/2758)
- Rename`Components.chatChannelListLoadingView` -> `Components.channelListLoadingView` [#2772](https://github.com/GetStream/stream-chat-swift/pull/2772)

# [4.36.0](https://github.com/GetStream/stream-chat-swift/releases/tag/4.36.0)
_August 28, 2023_

Expand All @@ -17,11 +48,13 @@ _August 28, 2023_
- Fix Channel List items online presence not updating when user info changes [#2742](https://github.com/GetStream/stream-chat-swift/pull/2742)
- Fix Channel name not updating when member name changes [#2742](https://github.com/GetStream/stream-chat-swift/pull/2742)


## StreamChatUI
### βœ… Added
- Add XCPrivacy manifest [#2740](https://github.com/GetStream/stream-chat-swift/pull/2740)
- Add digital signature to StreamChatUI XCFramework [#2740](https://github.com/GetStream/stream-chat-swift/pull/2740)
- Apply channel capabilities in UI components [#2747](https://github.com/GetStream/stream-chat-swift/pull/2747)

### 🐞 Fixed
- Fix Channel Header View not updating when user info changes [#2742](https://github.com/GetStream/stream-chat-swift/pull/2742)
- Fix Channel List rendering user name on subtitle text in 1:1 channel [#2737](https://github.com/GetStream/stream-chat-swift/pull/2737)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ class AppConfigViewController: UITableViewController {
enum ComponentsConfigOption: String, CaseIterable {
case isUniqueReactionsEnabled
case shouldMessagesStartAtTheTop
case shouldAnimateJumpToMessageWhenOpeningChannel
case threadRepliesStartFromOldest
case threadRendersParentMessageEnabled
case isVoiceRecordingEnabled
Expand Down Expand Up @@ -352,6 +353,10 @@ class AppConfigViewController: UITableViewController {
cell.accessoryView = makeSwitchButton(Components.default.shouldMessagesStartAtTheTop) { newValue in
Components.default.shouldMessagesStartAtTheTop = newValue
}
case .shouldAnimateJumpToMessageWhenOpeningChannel:
cell.accessoryView = makeSwitchButton(Components.default.shouldAnimateJumpToMessageWhenOpeningChannel) { newValue in
Components.default.shouldAnimateJumpToMessageWhenOpeningChannel = newValue
}
case .threadRepliesStartFromOldest:
cell.accessoryView = makeSwitchButton(Components.default.threadRepliesStartFromOldest) { newValue in
Components.default.threadRepliesStartFromOldest = newValue
Expand Down
19 changes: 12 additions & 7 deletions DemoApp/Shared/StreamChatWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,19 @@ extension StreamChatWrapper {
// Setup Stream Chat
setUpChat()

// Connect to chat
connect(user: user) { [weak self] in
if let error = $0 {
log.warning(error.localizedDescription)
} else {
self?.onRemotePushRegistration?()
// We connect from a background thread to make sure it works without issues/crashes.
// This is for testing purposes only. As a customer you can connect directly without dispatching to any queue.
DispatchQueue.global().async {
self.connect(user: user) { [weak self] error in
if let error = error {
log.warning(error.localizedDescription)
} else {
self?.onRemotePushRegistration?()
}
DispatchQueue.main.async {
completion(error)
}
}
completion($0)
}
}

Expand Down
1 change: 1 addition & 0 deletions DemoApp/StreamChat/StreamChatWrapper+DemoApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ extension StreamChatWrapper {
Components.default.messageListDateSeparatorEnabled = true
Components.default.messageListDateOverlayEnabled = true
Components.default.isVoiceRecordingEnabled = true
Components.default.isJumpToUnreadEnabled = true
Components.default.messageSwipeToReplyEnabled = true
Components.default.channelListSearchStrategy = .messages

Expand Down
Loading