buck
buck copied to clipboard
Support for Jetpack Compose
Does Buck support Jetpack Compose? I see that there is support for specifying Kotlin compiler plugins in the kotlin_library()
rule but since support for Kotlin 1.4 is still experimental, I was wondering if anybody has been able to get Jetpack Compose running using Buck?
I don't think it's supported.
There aren't currently out-of-the-box rules or samples to follow, but the dev branch of Buck can now experimentally support Jetpack Compose. You need to specify the compiler plugin yourself on any targets using Compose, and you'll need to enable the desugar_interface_methods_in_prebuilt_jars
buck config flag so that D8 can desugar the Java 8 features used in Compose's JARs.
See this commit for when the flag was added: https://github.com/facebook/buck/commit/096c16642647e3dbd0274a7c88a21462bb4ea85a