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

[CI] Create a lane to update StreamChat dependency #687

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

testableapple
Copy link
Contributor

🔗 Issue Link

Resolve https://linear.app/stream/issue/IOS-599

🎯 Goal

  • Create a lane for bumping the StreamChat dependency

🧪 Testing

@testableapple testableapple added the 🤖 CI/CD Any work related to CI/CD label Dec 9, 2024
@testableapple testableapple requested a review from a team as a code owner December 9, 2024 12:15
@testableapple testableapple enabled auto-merge (squash) December 9, 2024 12:19
Comment on lines +164 to +172
file = 'StreamChatSwiftUI.xcodeproj/project.pbxproj'
content = File.read(file)
if content.include?("minimumVersion = #{current_stream_chat_version}")
File.write(file, content.gsub("minimumVersion = #{current_stream_chat_version}", "minimumVersion = #{options[:version]}"))
elsif content.include?('branch = develop')
File.write(file, content.gsub('kind = branch', "minimumVersion = #{options[:version]}").gsub('branch = develop', 'kind = upToNextMajorVersion'))
else
UI.user_error!("Something went wrong after trying to modify #{file}.")
end
Copy link
Contributor

Choose a reason for hiding this comment

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

Ideally we should check for stream chat since there are multiple dependencies. Not sure if it is a big deal.

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, but it actually makes things much more complex. A chance that we will hit a different dependency with the same key minimumVersion = #{current_stream_chat_version} is very low. We also do not use other dependencies from develop ever.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, probably fine. We can improve it if really need to. Makes sense to not complicate this too much.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

For now this will work fine 👍 Once we add a new dependency, this will break and then we will know that we need to update this 😄

Copy link
Member

@nuno-vieira nuno-vieira left a comment

Choose a reason for hiding this comment

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

LGTM! ✅

@testableapple testableapple merged commit 194eea5 into develop Dec 9, 2024
10 checks passed
@testableapple testableapple deleted the ci/update-stream-chat-lane branch December 9, 2024 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 CI/CD Any work related to CI/CD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants