-
Notifications
You must be signed in to change notification settings - Fork 90
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
Conversation
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! ✅
🔗 Issue Link
Resolve https://linear.app/stream/issue/IOS-599
🎯 Goal
🧪 Testing