facebook / buck

A fast build system that encourages the creation of small, reusable modules over a variety of platforms and languages.
https://buck.build
Apache License 2.0
8.56k stars 1.16k forks source link

Support for Jetpack Compose #2612

Open prempalsingh opened 3 years ago

prempalsingh commented 3 years ago

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?

KapJI commented 3 years ago

I don't think it's supported.

JustinBis commented 2 years ago

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