Skip to content

Conversation

jamieQ
Copy link
Contributor

@jamieQ jamieQ commented Jan 11, 2024

Description

the current experimental swift ui target is versioned independently from the other pods. this change relaxes the version requirements for its dependencies to allow any minor or patch changes to be made without this podspec having to be changed.

@jamieQ jamieQ requested a review from a team as a code owner January 11, 2024 17:40
Copy link
Contributor

@nabs-m nabs-m left a comment

Choose a reason for hiding this comment

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

I think I get what you're trying to do, just wanted to confirm with an example.

Comment on lines +21 to +22
s.dependency 'Workflow', "~> #{WORKFLOW_MAJOR_VERSION}.0"
s.dependency 'WorkflowUI', "~> #{WORKFLOW_MAJOR_VERSION}.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Say a new major version of Workflow comes out at 4.0.0, seems like that's only when you'd want this dependency to change? So you'd wanna ignore things like 3.6.1, 3.7.0 as well as 4.1.0, 4.1.1, etc? Just wanna make sure I understand the intention here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, this change means that version 0.2 of this pod requires version 3.x.y of its two dependencies, but any one will do.

Comment on lines +21 to +22
s.dependency 'Workflow', "~> #{WORKFLOW_MAJOR_VERSION}.0"
s.dependency 'WorkflowUI', "~> #{WORKFLOW_MAJOR_VERSION}.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

A possible alternative is hardcoding the version bound like this, which could save you from having to touch this file at all when you are bumping the major version of the other modules. But then you'd still have to bump WorkflowSwiftUIExperimental in a separate change for Register's sake.

Also, I feel like there may have been some other reason I didn't do this 🤔

Suggested change
s.dependency 'Workflow', "~> #{WORKFLOW_MAJOR_VERSION}.0"
s.dependency 'WorkflowUI', "~> #{WORKFLOW_MAJOR_VERSION}.0"
s.dependency 'Workflow', "~> 3.0"
s.dependency 'WorkflowUI', "~> 3.0"

@jamieQ jamieQ merged commit 6866c75 into main Jan 11, 2024
@jamieQ jamieQ deleted the jquadri/update-swiftui-exp-podspec branch January 11, 2024 19:09
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.

3 participants