[Dependency Updates] Update androidxArchCoreVersion to 2.1.0#17642
Conversation
It is generally recommended that transitively used dependencies should be declared directly.
Release Notes: https://developer.android.com/jetpack/androidx/releases/ arch-core#2.1.0
androidxArchCoreVersion to 2.1.0androidxArchCoreVersion to 2.1.0
|
Found 1 violations: The PR caused the following dependency changes:++--- androidx.arch.core:core-common:2.1.0 (*)
+\--- androidx.arch.core:core-runtime:2.1.0 (*)
Please review and act accordingly
|
|
|||||||||||
| 💡 Scan this QR code with your Android phone to download and install the APK directly on it. | ||
| App | WordPress | |
| Build Flavor | Jalapeno | |
| Build Type | Debug | |
| Commit | 0c504ad | |
|
|||||||||||
| 💡 Scan this QR code with your Android phone to download and install the APK directly on it. | ||
| App | Jetpack | |
| Build Flavor | Jalapeno | |
| Build Type | Debug | |
| Commit | 0c504ad | |
| implementation "androidx.arch.core:core-common:$androidxArchCoreVersion" | ||
| implementation "androidx.arch.core:core-runtime:$androidxArchCoreVersion" |
There was a problem hiding this comment.
Why did we add these? I removed them, and the application, unit tests, and android tests still worked.
There was a problem hiding this comment.
👋 @irfano and thanks for the question! 🌟
As per this commit and its description, those are AndroidX Arch Core related missing transitively used dependencies. It is generally recommended that transitively used dependencies should be declared directly. I can expand on that if you like. 🤔
FYI: Note the fact that I got this advise from the Dependency Analysis tool that I am currently using while working with dependency updates, just to make our dependency management a bit more manageable.
PS: You can also check more info about that on this P2 post that I wrote a while back (paqN3M-Iq-p2).
There was a problem hiding this comment.
Thank you for the detailed explanation. I guess I understood the reason.
LGTM! Approving.
|
Thank you a lot for reviewing and testing this PR @irfano , you are awesome! 🙇 ❤️ 🚀 |


Parent #17561
Batch Branch: deps/main-batch-androidx-core
This PR updates
androidxArchCoreVersionto 2.1.0.Also, as part of this update the below transitive dependencies were added on the
WordPressmodule (8884a00):androidx.arch.core:core-commonandroidx.arch.core:core-runtimePS: @irfano I added you as the main reviewer, that is, in addition to the @wordpress-mobile/apps-infrastructure team itself, but randomly, since I just wanted someone from the WordPress team to be aware of and sign-off on that change for WPAndroid.
To test:
Note the fact that:
androidxArchCoreVersionversion is only related to testing (seeandroidx.arch.core:core-testing). Seeandroidx.arch.corerelated imports.androidxArchCoreVersiondependency was already pointing to2.1.0anyway.Regression Notes
Some of the transitive dependencies added might be causing some kind of misbehaviour.
See
To testsection above.N/A
PR submission checklist:
RELEASE-NOTES.txtif necessary.