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

Upgrade Gradle to 7.4 & AGP to 7.1.1 #719

Merged
merged 24 commits into from
Mar 23, 2022

Conversation

ParaskP7
Copy link
Contributor

@ParaskP7 ParaskP7 commented Feb 28, 2022

This PR upgrades Gradle to 7.4 & AGP to 7.1.1.

It includes the following:

  • Gradle version upgraded to 7.3.3 with the ./gradlew wrapper --gradle-version=7.3.3 --distribution-type=all command.
  • AGP version upgrade to 7.0.4 (see settings.gradle change).
  • Build output diff:
    • To identify and fix new warnings/errors that got added.
    • To identify and verify old warnings/errors that got removed.
  • Lint output diff
    • To identify and fix new warnings/errors that got added.
    • To identify and verify old warnings/errors that got removed.
  • The above 4 steps were redone with a follow-up update to Gradle 7.4 & AGP 7.1.1.
  • Update buildkite docker android build image to 1.2.0.

It suppresses the following Lint issues:

It disables the following Lint issues:

It resolves the following Lint issues:

It created the following GitHub issues:


Besides the above, you can reference the Gradle 7.4 & AGP 7.1.1 PRs of the below clients for testing/verification purposes:

NOTE: This is a draft PR because all Gradle & AGP upgrade PRs need to be merged together.

Merge Instructions

To Test

  1. Smoke test the example app.
  2. CI checks will cover everything in terms of testing.
  3. Testing composite builds and respective clients will be enough (see above).

This error is about not treat position as fixed; Instead, to only use
immediately and call holder.getAdapterPosition() to look it up later.

RecyclerView will not call onBindViewHolder again when the position of
the item changes in the data set unless the item itself is invalidated
or the new position cannot be determined.

For this reason, you should only use the position parameter while
acquiring the related data item inside this method, and should not keep
a copy of it.

If you need the position of an item later on (e.g. in a click listener),
use getAdapterPosition() which will have the updated adapter position.

However, and in order not to cause any unintended issues on the current
implementation of this screen, it is better to suppress this at the
moment, come back to it with a fix and add accompanying adequate
testing on top of the new solution afterwards.
The res/drawable folder is intended for density-independent graphics
such as shapes defined in XML. For bitmaps, move it to drawable-mdpi and
consider providing higher and lower resolution versions in
drawable-ldpi, drawable-hdpi and drawable-xhdpi. If the icon really is
density independent (for example a solid color) you can place it in
drawable-nodpi.

However, at this moment it is better to disable this warning as it only
applies to the 5 x 'intro0X.png' images.
@ParaskP7 ParaskP7 requested a review from oguzkocer February 28, 2022 15:39
@ParaskP7 ParaskP7 self-assigned this Feb 28, 2022
@peril-automattic
Copy link

peril-automattic bot commented Feb 28, 2022

You can test the changes on this Pull Request by downloading the APK here.

@ParaskP7 ParaskP7 marked this pull request as ready for review March 18, 2022 17:18
@ParaskP7 ParaskP7 requested review from a team and removed request for oguzkocer March 18, 2022 17:18
@ParaskP7 ParaskP7 merged commit 0b727f8 into trunk Mar 23, 2022
@ParaskP7 ParaskP7 deleted the update/gradle-to-7.3.3-agp-to-7.0.4 branch March 23, 2022 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants