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

Bump AGP to 8.5.1 #21082

Merged
merged 19 commits into from
Aug 6, 2024
Merged

Bump AGP to 8.5.1 #21082

merged 19 commits into from
Aug 6, 2024

Conversation

wzieba
Copy link
Contributor

@wzieba wzieba commented Jul 25, 2024

Description

This PR bumps AGP to 8.5.1 to address security alerts and keep our tooling up to date.

To test

Please smoke-test the app. As library modules in this project didn't have obfuscation config, there shouldn't be any issues in this area.

Dependencies

Avoid duplicated formatting, use String arguments when it's expected
Improve the comment to match javadoc convention
as it's not trivial to address this warning. #21079
Here it's only used for mocking tests, so no if anything, we could address defining flag in `ConnectionStatusLiveData` class. For some reason, lint is not reporting any issues there, so I think it's fine
@dangermattic
Copy link
Collaborator

dangermattic commented Jul 25, 2024

3 Warnings
⚠️ View files have been modified, but no screenshot or video is included in the pull request. Consider adding some for clarity.
⚠️ This PR is larger than 300 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.
⚠️ PR is not assigned to a milestone.

Generated by 🚫 Danger

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jul 25, 2024

Jetpack📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack Jetpack
FlavorJalapeno
Build TypeDebug
Versionpr21082-515198c
Commit515198c
Direct Downloadjetpack-prototype-build-pr21082-515198c.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jul 25, 2024

WordPress📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress WordPress
FlavorJalapeno
Build TypeDebug
Versionpr21082-515198c
Commit515198c
Direct Downloadwordpress-prototype-build-pr21082-515198c.apk
Note: Google Login is not supported on these builds.

In these places i18n is not needed - either code value or an empty string
@wzieba wzieba changed the base branch from trunk to update_lint_baseline July 25, 2024 16:34
config/lint/baseline.xml Outdated Show resolved Hide resolved
config/lint/baseline.xml Outdated Show resolved Hide resolved
@wzieba wzieba added Tech Debt Do Not Merge In PRs with this label, our automation will fail a require check, preventing accidental merging labels Jul 26, 2024
@wzieba wzieba added this to the 25.5 milestone Jul 26, 2024
@wzieba wzieba changed the title [WIP] Bump AGP to 8.5.1 Bump AGP to 8.5.1 Jul 26, 2024
@wzieba wzieba requested a review from ParaskP7 July 26, 2024 10:54
@wzieba wzieba marked this pull request as ready for review July 26, 2024 10:54
Copy link
Contributor

@ParaskP7 ParaskP7 left a comment

Choose a reason for hiding this comment

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

👋 @wzieba and thanks for this update, it is a ✅ from me, but I first want to discuss all these Lint baseline changes before merging this to trunk, including #21083 and my comment here.

@wzieba wzieba changed the base branch from update_lint_baseline to trunk July 29, 2024 12:29
@wzieba wzieba requested a review from ParaskP7 July 29, 2024 14:01
@wzieba
Copy link
Contributor Author

wzieba commented Jul 29, 2024

Sorry @ParaskP7 it's not yet ready for re-review, I forgot about last comment 😅

@wzieba wzieba removed the request for review from ParaskP7 July 29, 2024 14:02
@wzieba wzieba requested a review from ParaskP7 July 29, 2024 14:11
build.gradle Outdated Show resolved Hide resolved
@ParaskP7
Copy link
Contributor

ParaskP7 commented Jul 29, 2024

Suggestion (💡): Related to this and this, maybe it is best to redo this PR, cherry-pick all your commits, except for 7dc1e44 and do that again at the very end, making sure it doesn't add any new issue, only updating and removing issues, wdyt? 🤔 😊

PS: I am guessing this previously accompanying PR will/should be soon closed too, right? 🤔

@wzieba
Copy link
Contributor Author

wzieba commented Jul 29, 2024

Suggestion (💡): Related to #21082 (comment) and #21082 (comment), maybe it is best to redo this PR, cherry-pick all your commits, except for 7dc1e44 and do that again at the very end, making sure it doesn't add any new issue, only updating and removing issues, wdyt? 🤔 😊

Frankly, I don't see benefits of recreating this PR - the diff is small, and we can easily verify all the changes it'll introduce to the codebase.

@wzieba wzieba requested a review from ParaskP7 July 29, 2024 19:35
@wpmobilebot
Copy link
Contributor

Found 1 violations:

The PR caused some dependency changes (expand to see details)

-+--- androidx.databinding:viewbinding:8.1.0
++--- androidx.databinding:viewbinding:8.5.1
 \--- project :libs:image-editor
-     \--- androidx.databinding:viewbinding:8.1.0 (*)
+     \--- androidx.databinding:viewbinding:8.5.1 (*)

Please review and act accordingly

Refreshing baseline file with
```
disable += [
                'KtxExtensionAvailable',
                'UsingMaterialAndMaterial3Libraries',
                'UnknownNullness',
                'MissingNullAnnotationOnField',
                'MissingNullAnnotationOnConstructorParameter',
                'MissingNullAnnotationOnMethodParameter',
                'MissingNullAnnotationOnMethodReturnType',
        ]
```

temporary setting
As comment says, it's no longer needed with the newest lint shipped with AGP 8.5.1
@wzieba wzieba modified the milestones: 25.5, 25.6 Aug 1, 2024
@mokagio mokagio removed this from the 25.6 milestone Aug 2, 2024
Copy link

sonarcloud bot commented Aug 6, 2024

@wzieba wzieba removed the Do Not Merge In PRs with this label, our automation will fail a require check, preventing accidental merging label Aug 6, 2024
Copy link

codecov bot commented Aug 6, 2024

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Project coverage is 40.71%. Comparing base (2f712d1) to head (515198c).

Files Patch % Lines
...ss/android/ui/voicetocontent/WaveformVisualizer.kt 0.00% 5 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            trunk   #21082   +/-   ##
=======================================
  Coverage   40.71%   40.71%           
=======================================
  Files        1530     1530           
  Lines       70261    70261           
  Branches    11617    11617           
=======================================
  Hits        28606    28606           
  Misses      39070    39070           
  Partials     2585     2585           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wzieba wzieba merged commit 8fc19bf into trunk Aug 6, 2024
21 checks passed
@wzieba wzieba deleted the bump_agp_to_8_5_1 branch August 6, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants