Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedding third-party dependencies #379

Merged
merged 10 commits into from
Oct 20, 2023
Merged

Conversation

testableapple
Copy link
Contributor

@testableapple testableapple commented Oct 19, 2023

🔗 Issue Link

Resolve https://github.com/GetStream/ios-issues-tracking/issues/601

🎯 Goal

Embed third-party dependencies

🧪 Testing

  • SPM integration
  • CocoaPods integration

☑️ Checklist

  • I have signed the Stream CLA (required)
  • Changelog is updated with client-facing changes
  • New code is covered by unit tests
  • Affected documentation updated (docusaurus, tutorial, CMS (task created)

@testableapple testableapple changed the title Embed third-party dependencies Embedding third-party dependencies Oct 19, 2023
@github-actions
Copy link

github-actions bot commented Oct 19, 2023

1 Warning
⚠️ Big PR

Generated by 🚫 Danger

Comment on lines 92 to 99
}
doubleTapCancellable = doubleTap.sink { [unowned self] in handleDoubleTap() }
} as! any Cancellable // FIXME
doubleTapCancellable = doubleTap.sink { [unowned self] in handleDoubleTap() } as! any Cancellable // FIXME
}

func update(content: Content, doubleTap: AnyPublisher<Void, Never>) {
coordinator.hostingController.rootView = content
scrollView.setNeedsUpdateConstraints()
doubleTapCancellable = doubleTap.sink { [unowned self] in handleDoubleTap() }
doubleTapCancellable = doubleTap.sink { [unowned self] in handleDoubleTap() } as! any Cancellable // FIXME
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@martinmitrevski, could you please take a look at what went wrong here?

@testableapple testableapple marked this pull request as ready for review October 20, 2023 09:32
@testableapple testableapple requested a review from a team as a code owner October 20, 2023 09:32
Copy link
Contributor

@martinmitrevski martinmitrevski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

CHANGELOG.md Outdated
@@ -3,6 +3,10 @@ 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also add that they should "Reset package caches" after integrating? I had issues until I did that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 👍

],
targets: [
.target(
name: "StreamChatSwiftUI",
dependencies: [.product(name: "StreamChat", package: "stream-chat-swift"), "Nuke", .product(name: "NukeUI", package: "Nuke")],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still see Difference, Swifter and the tools. Can we also get rid of those? (not in this PR)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those come from StreamChat. They will be gone as soon as #376 is merged

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 169 Code Smells

26.9% 26.9% Coverage
7.0% 7.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@testableapple testableapple merged commit ec18c34 into main Oct 20, 2023
8 of 9 checks passed
@testableapple testableapple deleted the ci/embed-dependencies branch October 20, 2023 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants