buck icon indicating copy to clipboard operation
buck copied to clipboard

Support for Jetpack Compose

Open prempalsingh opened this issue 3 years ago • 2 comments

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?

prempalsingh avatar Apr 14 '21 08:04 prempalsingh

I don't think it's supported.

KapJI avatar Apr 14 '21 10:04 KapJI

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

JustinBis avatar Oct 15 '21 18:10 JustinBis