nowinandroid
nowinandroid copied to clipboard
Apply version catalog in the convention plugins
Apply version catalog in the convention plugins.
Please explain why this is a good idea. At first glance, the lines like this:
libs.findPlugin("compose").get().get().pluginId
look less readable than the original
apply(plugin = "org.jetbrains.kotlin.plugin.compose")
@dturner I think this is the good for SSOT, and when we would change plugins, we can change name or group in just one place libs.versions.toml.
I agreed with you it is hard to read then origin, but I think that we can remove .get().get() using extension function.
Kindly leave your comment here. I'll change or close this PR. Thank you.
@dturner I have improved the style more readable. It have had more clear context about the source, it comes from version catalog.
apply(plugin = libs.getPlugin("android.application"))
Is there anything more do I improve?