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

[RNMobile] Upgrade Gradle to 8.2.1 and AGP to 8.1.0 #5989

Conversation

wpmobilebot
Copy link
Collaborator

@wpmobilebot wpmobilebot commented Jul 24, 2023

Related PRs

Description

This PR is generated by version-toolkit to downstream the changes for gutenberg submodule.

@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Jul 24, 2023

Wanna run full suite of Android and iOS UI tests? Click here and 'Approve' CI job!

@fluiddot fluiddot added the dependencies Pull requests that update a dependency file label Jul 24, 2023
@fluiddot fluiddot linked an issue Jul 24, 2023 that may be closed by this pull request
12 tasks
.java-version Outdated Show resolved Hide resolved
@fluiddot fluiddot force-pushed the version-toolkit/gutenberg/rnmobile/0.69.4-upgrade-gradle-to-8.2.1-and-agp-to-8.0.2 branch from 8fc7397 to 2476fd9 Compare July 25, 2023 12:16
.circleci/config.yml Outdated Show resolved Hide resolved
@fluiddot fluiddot force-pushed the version-toolkit/gutenberg/rnmobile/0.69.4-upgrade-gradle-to-8.2.1-and-agp-to-8.0.2 branch from b630fc0 to aa5ea08 Compare July 25, 2023 14:35
wpmobilebot and others added 3 commits July 25, 2023 19:31
For some reason, the default behavior of picking automatically a node version after loading the nvm script, it's leading to a failure in consecutive steps after the `install-node-version` step.
@fluiddot fluiddot force-pushed the version-toolkit/gutenberg/rnmobile/0.69.4-upgrade-gradle-to-8.2.1-and-agp-to-8.0.2 branch from 2b7cffc to ea7a603 Compare July 25, 2023 17:36
oguzkocer and others added 2 commits July 25, 2023 16:09
…image-to-add-JDK-17-support

Update Android Docker Image to add JDK 17 support
@@ -160,8 +160,7 @@ commands:
parameters:
android-docker-image:
type: string
# Hash points to previous version with node 12. When everything works with node 14 it can be removed
default: "circleci/android:api-29-node@sha256:71d61d6c21b29948d57120f476a83cc322a280979bce355c5a0ad771293ca380"
default: "cimg/android:2023.07-node"
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we pick the needed node/npm version via nvm (reference), we can use the latest version of CircleCI's Android docker image. Note the tag is different because the previous one was deprecated, more information can be found in Legacy Convenience Image Deprecation.

@@ -147,7 +147,7 @@ commands:
echo 'Default NVM_DIR to .nvm in home'
echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV
fi
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" --no-use' >> $BASH_ENV
Copy link
Contributor

Choose a reason for hiding this comment

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

NVM tries to pick the node version automatically upon loading the script. For some reason, when using the new CircleCI's docker image, this leads to a failure related to not finding node 14. As a workaround, this behavior has been disabled using the --no-use argument. This should have no impact on the job, as we explicitly pick the node version here.

@fluiddot fluiddot changed the title [RNMobile] Upgrade Gradle to 8.2.1 and AGP to 8.0.2 [RNMobile] Upgrade Gradle to 8.2.1 and AGP to 8.1.0 Jul 28, 2023
@fluiddot fluiddot added this to the 1.101.0 (23.0) milestone Jul 28, 2023
@fluiddot fluiddot self-assigned this Jul 28, 2023
@SiobhyB SiobhyB self-requested a review July 28, 2023 09:45
Copy link
Contributor

@SiobhyB SiobhyB left a comment

Choose a reason for hiding this comment

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

@oguzkocer oguzkocer enabled auto-merge July 28, 2023 18:17
@oguzkocer oguzkocer merged commit effcd08 into trunk Jul 28, 2023
@oguzkocer oguzkocer deleted the version-toolkit/gutenberg/rnmobile/0.69.4-upgrade-gradle-to-8.2.1-and-agp-to-8.0.2 branch July 28, 2023 19:00
@SiobhyB SiobhyB mentioned this pull request Aug 3, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade Gradle 8.2.1 & AGP 8.0.2
5 participants