You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Recommend separate Gradle module for Compose + native interop
When using Nucleus Native Access with Compose Desktop, the Compose compiler
plugin conflicts with arbitrary Kotlin/Native targets used for FFM bridges.
This update documents the recommended approach: separate the native bridge code
into its own Gradle module without the Compose compiler plugin, and have the
Compose Desktop app depend on it.
This avoids configuration conflicts and allows both plugins to work correctly.
Copy file name to clipboardExpand all lines: README.md
+47-7Lines changed: 47 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -491,29 +491,69 @@ For GraalVM native-image builds, the native `.so`/`.dylib` must be placed next t
491
491
492
492
### Using with Compose Desktop / Nucleus
493
493
494
+
The Compose compiler plugin and Nucleus Native Access both add Kotlin/Native targets, but Compose doesn't support arbitrary native compilations (e.g. `linuxX64`, `mingwX64` for FFM bridges). **The recommended approach is to put your native code in a separate Gradle module** without the Compose compiler plugin:
495
+
496
+
```
497
+
my-app/
498
+
├── native/ ← Kotlin/Native + nucleusnativeaccess (no Compose)
0 commit comments