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

[BUG] Precompose 1.6.0 pulls androidx.compose.ui:ui-test-junit4-android in the runtime classpath #317

Closed
martinbonnin opened this issue Apr 28, 2024 · 1 comment · Fixed by #328

Comments

@martinbonnin
Copy link
Contributor

Running ./gradlew dependencies in my project yields the following results:

|         +--- moe.tlaster:precompose:1.6.0
|         |    \--- moe.tlaster:precompose-android-debug:1.6.0
|         |         +--- androidx.compose.ui:ui-test-manifest:1.5.4 -> 1.6.4
|         |         |    +--- androidx.activity:activity:1.2.1 -> 1.8.2 (*)
|         |         |    +--- androidx.compose.ui:ui:1.6.4 (c)
|         |         |    +--- androidx.compose.ui:ui-geometry:1.6.4 (c)
|         |         |    +--- androidx.compose.ui:ui-graphics:1.6.4 (c)
|         |         |    +--- androidx.compose.ui:ui-test:1.6.4 (c)
|         |         |    +--- androidx.compose.ui:ui-text:1.6.4 (c)
|         |         |    +--- androidx.compose.ui:ui-tooling:1.6.4 (c)
|         |         |    +--- androidx.compose.ui:ui-unit:1.6.4 (c)
|         |         |    +--- androidx.compose.ui:ui-util:1.6.4 (c)
|         |         |    +--- androidx.compose.ui:ui-tooling-data:1.6.4 (c)
|         |         |    \--- androidx.compose.ui:ui-tooling-preview:1.6.4 (c)
|         |         +--- androidx.compose.ui:ui-test-junit4-android:1.5.4
|         |         |    +--- androidx.activity:activity:1.2.1 -> 1.8.2 (*)
|         |         |    +--- androidx.activity:activity-compose:1.3.0 -> 1.8.2
|         |         |    |    +--- androidx.activity:activity-ktx:1.8.2 (*)
|         |         |    |    +--- androidx.compose.runtime:runtime:1.0.1 -> 1.6.4 (*)
|         |         |    |    +--- androidx.compose.runtime:runtime-saveable:1.0.1 -> 1.6.4 (*)
|         |         |    |    +--- androidx.compose.ui:ui:1.0.1 -> 1.6.4 (*)
|         |         |    |    +--- androidx.lifecycle:lifecycle-viewmodel:2.6.1 -> 2.7.0 (*)
|         |         |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.22 -> 2.0.0-RC1 (*)
|         |         |    |    +--- androidx.activity:activity:1.8.2 (c)
|         |         |    |    \--- androidx.activity:activity-ktx:1.8.2 (c)
|         |         |    +--- androidx.annotation:annotation:1.1.0 -> 1.7.1 (*)
|         |         |    +--- androidx.compose.runtime:runtime-saveable:1.5.4 -> 1.6.4 (*)
|         |         |    +--- androidx.compose.ui:ui-test:1.5.4 -> 1.6.4
|         |         |    |    \--- androidx.compose.ui:ui-test-android:1.6.4
|         |         |    |         +--- androidx.annotation:annotation:1.1.0 -> 1.7.1 (*)
|         |         |    |         +--- androidx.compose.runtime:runtime:1.6.4 (*)
|         |         |    |         +--- androidx.compose.ui:ui:1.6.4 (*)
|         |         |    |         +--- androidx.compose.ui:ui-graphics:1.6.4 (*)
|         |         |    |         +--- androidx.compose.ui:ui-text:1.6.4 (*)
|         |         |    |         +--- androidx.compose.ui:ui-unit:1.6.4 (*)
|         |         |    |         +--- androidx.compose.ui:ui-util:1.6.4 (*)
|         |         |    |         +--- androidx.core:core-ktx:1.2.0 -> 1.12.0 (*)
|         |         |    |         +--- androidx.test:monitor:1.6.1
|         |         |    |         |    +--- androidx.annotation:annotation:1.2.0 -> 1.7.1 (*)
|         |         |    |         |    +--- androidx.test:annotation:1.0.1
|         |         |    |         |    |    +--- androidx.annotation:annotation:1.2.0 -> 1.7.1 (*)
|         |         |    |         |    |    \--- androidx.annotation:annotation-experimental:1.1.0 -> 1.4.0 (*)
|         |         |    |         |    \--- androidx.tracing:tracing:1.0.0 (*)
|         |         |    |         +--- androidx.test.espresso:espresso-core:3.5.0

Looks like this was introduced here because the dependencies {} block is resolved as the top level block and not the instrumented tests one. Was that made on purpose?

@Tlaster
Copy link
Owner

Tlaster commented Apr 29, 2024

Opps, this is not intended to be included in the runtime classpath.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants