Skip to content

debugApi instead of implementation why? #845

Answered by SimonMarquis
mobilekosmos asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mobilekosmos and @denebchorny,

I guess this androidx.compose.ui:ui-tooling dependency has been initially added as an api configuration to be able to easily expose it transitively to all the module's consumers.

That being said, a more "correct" way of doing that should have been to simply add the debugImplementation dependency in the Compose convention plugins, here:

dependencies {
val bom = libs.findLibrary("androidx-compose-bom").get()
add("implementation", platform(bom))
add("androidTestImplementation", platform(bom))
}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@denebchorny
Comment options

Answer selected by mobilekosmos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants