Skip to content

Remove unnecessary dependencies in every CaseStudies #1503

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

Merged

Conversation

Jager-yoo
Copy link
Contributor

Hi! 👋🏻
I removed imported dependencies that don't affect building and testing in every CaseStudies.
Most of them are Combine, but some Foundation were added relatively recently at this Concurrency Beta #1189

Removing them didn't have any build issues, but there could be reasons I'm not aware of.
I'll leave comments below. Please check.

and I added MARK headers to each file in SwiftUI - CaseStudies for readability, in 3 simple categories.
Please refer to the capture below.

  • Feature domain
  • Feature view
  • SwiftUI previews

MARK headers

Copy link
Member

@stephencelis stephencelis left a comment

Choose a reason for hiding this comment

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

Thanks! Lotta removals of import Combine 😄

Comment on lines +122 to +135
// MARK: - SwiftUI previews

struct NestedView_Previews: PreviewProvider {
static var previews: some View {
NavigationView {
NestedView(
store: Store(
initialState: .mock,
reducer: Nested()
)
}
)
}
}
#endif
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure if it's okay to remove if DEBUG.

@@ -1,5 +1,4 @@
import ComposableArchitecture
import Foundation
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: This was added at Concurrency Beta (#1189)

import ComposableArchitecture
import Foundation
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: This was added at Concurrency Beta (#1189)

@@ -1,6 +1,5 @@
import AVFoundation
import ComposableArchitecture // TODO: Should `UncheckedSendable` live in `Dependencies`?
import Foundation
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: This was added at Concurrency Beta (#1189)

@@ -1,6 +1,5 @@
import AVFoundation
import ComposableArchitecture
import Foundation
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: This was added at Concurrency Beta (#1189)

@@ -1,5 +1,4 @@
import ComposableArchitecture
import Foundation
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: This was added at Concurrency Beta (#1189)

@stephencelis stephencelis merged commit 790469d into pointfreeco:main Oct 15, 2022
@Jager-yoo Jager-yoo deleted the remove-unnecessary-dependencies branch October 16, 2022 01:15
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