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

fix(cli): Don't downgrade variables on migrate #7472

Merged
merged 3 commits into from
Jun 10, 2024

Conversation

jcesarmobile
Copy link
Member

Checking the new barcode plugin I noticed that in the example app the minSdkVersion was downgraded from the required 26 to 22, so I checked if this was caused by migrate command, and it was, it changes any version in the variables.gradle to match the default Capacitor ones, even if that means downgrading it.

This PR checks the version and only update them if the value in variables.gradle is smaller.

@jcesarmobile jcesarmobile changed the title fix(cli): Don't downgrade variables fix(cli): Don't downgrade variables on migrate May 20, 2024
@jcesarmobile jcesarmobile merged commit 1e7aeb5 into main Jun 10, 2024
6 checks passed
@jcesarmobile jcesarmobile deleted the no-downgrade-variables branch June 10, 2024 14:10
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.

None yet

3 participants