Skip to content

Commit

Permalink
Updated StreamChat dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmitrevski committed Oct 26, 2023
2 parents bf7f7fd + ca75e5c commit eb120de
Show file tree
Hide file tree
Showing 158 changed files with 14,579 additions and 99 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cron-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
if: failure()
run: |
brew install chargepoint/xcparse/xcparse
xcparse logs fastlane/test_output/StreamChatUITestsApp.xcresult fastlane/test_output/logs/
xcparse logs fastlane/test_output/StreamChatSwiftUITestsApp.xcresult fastlane/test_output/logs/
- uses: actions/upload-artifact@v3
if: failure()
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/smoke-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ jobs:
if: failure()
run: |
brew install chargepoint/xcparse/xcparse
xcparse logs fastlane/test_output/StreamChatUITestsApp.xcresult fastlane/test_output/logs/
xcparse logs fastlane/test_output/StreamChatSwiftUITestsApp.xcresult fastlane/test_output/logs/
- uses: actions/upload-artifact@v3
if: failure()
with:
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ Pods/
Carthage/
!Sample/Carthage/

# Ignore Products folder
Products/

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
Expand Down Expand Up @@ -86,3 +89,5 @@ push_payload.json
sinatra_log.txt
derived_data/
spm_cache/
.buildcache
buildcache
2 changes: 2 additions & 0 deletions .slather.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ ignore:
- "**/*_Mock.swift"
- "**/*_Vendor.swift"
- "**/Generated/*.swift"
- "Sources/StreamChatSwiftUI/StreamNuke"
- "Sources/StreamChatSwiftUI/StreamSwiftyGif"
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

# Upcoming

### ⚠️ Important

- Dependencies are no longer exposed (this includes Nuke and SwiftyGif). If you were using those dependencies we were exposing, you would need to import them manually. This is due to our newest addition supporting Module Stable XCFramework, see more below in the "Added" section. If you encounter any SPM-related problems, be sure to reset the package caches.

### ✅ Added
- Add message preview with attachments in channel list
- Add support for pre-built XCFramework
- Config for composer text input paddings
- Config for left alignment of messages

### 🔄 Changed
- Made some `ChannelList` and `MessageListView` parameters optional

# [4.39.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.39.0)
_October 06, 2023_
Expand Down
16 changes: 14 additions & 2 deletions DemoAppSwiftUI/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,23 @@ class AppDelegate: NSObject, UIApplicationDelegate {
messageListConfig: MessageListConfig(dateIndicatorPlacement: .messageList)
)
streamChat = StreamChat(chatClient: chatClient, utils: utils)

let credentials = UnsecureRepository.shared.loadCurrentUser()
if let credentials, let token = try? Token(rawValue: credentials.token) {
chatClient.connectUser(
userInfo: .init(
id: credentials.id,
name: credentials.name,
imageURL: credentials.avatarURL
),
token: token
)
}

DispatchQueue.main.asyncAfter(deadline: .now() + 2.5) {
DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) {
withAnimation {
if AppState.shared.userState == .launchAnimation {
AppState.shared.userState = .notLoggedIn
AppState.shared.userState = credentials == nil ? .notLoggedIn : .loggedIn
}
}
}
Expand Down
Loading

0 comments on commit eb120de

Please sign in to comment.