-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Cleanup dependencies #1315
base: main
Are you sure you want to change the base?
Cleanup dependencies #1315
Conversation
This is a followup cleanup of android#1163 that was partially addressed by android#1140. - Remove unused `projects.core.testing` dependencies (or replace with direct dependencies). - Introduce `androidx.compose.ui.test` bundle. - Remove `NiaTestRunner` from the default config, forcing consumers to depend on it, even when not used.
Using latest graphviz 10.0.1
@@ -24,11 +24,10 @@ android { | |||
} | |||
|
|||
dependencies { | |||
api(libs.androidx.activity.compose) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why api
and not implementation
? Is a module which is dependent on :core:screenshot-testing
using this library's API?
Same question for the other 2 api
dependences.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
androidx.activity.compose
: I thought it was part of one of the API signatures of this module, but in fact, we only useandroidx.activity.compose.setContent
inside thecaptureForDevice
extension.robolectric
: same.androidx.compose.ui.test
: For this one, we useandroidx.compose.ui.test.junit4.AndroidComposeTestRule
as part of the signature ofcaptureForDevice
andcaptureMultiDevice
What's the purpose of introducing the bundle? |
The change was an internal version name contained in a comment.
The main purpose of this bundle is to avoid the need to specify both Stacktrace
|
Sorry @SimonMarquis, do you mind resolving the conflicts here please? |
@dturner ✅ |
This is a followup cleanup of #1163 that was partially addressed by #1140.
projects.core.testing
dependencies (or replace with direct dependencies).androidx.compose.ui.test
bundle.NiaTestRunner
from the default config, forcing consumers to depend on it, even when not used.Here is the current diff on the generated instrumented test APKs (
assembleDemoDebugAndroidTest
):