-
Notifications
You must be signed in to change notification settings - Fork 400
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
Add graddle lockfile update to the documentation #1350
Conversation
Newest code from larkox has been published to preview environment for Git SHA 7f288c4 |
We use lockfiles to lock dependencies and make sure the builds are reproductible. If we want to update the lockfile to update all dependencies to the latest, we can run these commands: | ||
``` | ||
cd android | ||
./gradlew app:dependencies --update-locks "*:*" |
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.
What if we dont want the latests but the specific verdions we are using?
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.
The specific versions we are using would be already in the repo (in the lockfile).
If we want to generate them from the scratch (remove the lock file and regenerate it) we would call ./gradlew app:dependencies --write-locks
. Is that what you mean?
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.
Yes.. cause this is how I envision it.
Add a new dependency to the project or bump dependencies manually, then update the lock.. kind of the same we do with gems, cocoapods and npm
Newest code from larkox has been published to preview environment for Git SHA 142aa81 |
Newest code from cwarnermm has been published to preview environment for Git SHA 3eebeb6 |
Summary
We add documentation on how to update the lock files.
This is dependent on mattermost/mattermost-mobile#7875
Ticket Link
NONE