Why is it distributed as a compiler plugin? #156
Answered
by
JakeWharton
joakimtall
asked this question in
Q&A
-
I looked at the source and it seems it pretty much only adds a normal dependency so I got curious, why distribute it as a compiler plugin? Genuinely curious, not complaining 👍 |
Beta Was this translation helpful? Give feedback.
Answered by
JakeWharton
Dec 26, 2022
Replies: 1 comment
-
It adds two dependencies: the runtime APIs as a normal dependency and the Jetpack Compose Kotlin compiler plugin. It also enables the stub generation behavior of the Compose compiler plugin when targeting Kotlin/JS. It's the same reason that JetBrains Compose and Jetpack Compose (via AGP) are Gradle plugins. There's multiple things to set up. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
joakimtall
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It adds two dependencies: the runtime APIs as a normal dependency and the Jetpack Compose Kotlin compiler plugin. It also enables the stub generation behavior of the Compose compiler plugin when targeting Kotlin/JS.
It's the same reason that JetBrains Compose and Jetpack Compose (via AGP) are Gradle plugins. There's multiple things to set up.