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): Run sync before updating gradle #7497

Merged
merged 1 commit into from
Jun 10, 2024
Merged

fix(cli): Run sync before updating gradle #7497

merged 1 commit into from
Jun 10, 2024

Conversation

jcesarmobile
Copy link
Member

If the Android project is in not buildable state, gradle will fail to update the files because the project needs to build to update gradle.
Running npx cap sync before updating the gradle files will generate other non committed gradle files that are needed to build the project and that are not there in case the project was just checked out from github and never ran npx cap sync before on the project.

Also error the migration if npx cap sync failed to run, getCommandOutput doesn't error and reports the command as a success despite it failed, by using runCommand instead, it will fail the migration if npx cap sync fails.

closes #7489

@jcesarmobile jcesarmobile merged commit f27786e into main Jun 10, 2024
14 checks passed
@jcesarmobile jcesarmobile deleted the RDMR-160 branch June 10, 2024 08:29
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