This project is not dead: its code now lives in the Nucleus repository, as the tray and tray-app modules, maintained and released there.
dependencies {
implementation("dev.nucleusframework:nucleus.tray:3.0.0") // Tray(...), menus
implementation("dev.nucleusframework:nucleus.tray-app:3.0.0") // TrayApp, the popup anchored to the icon
}→ Migration guide from Compose Native Tray · Tray documentation
Nucleus is modular: each module is its own artifact. nucleus.tray brings only two small Nucleus runtime modules (core-runtime, darkmode-detector), not the window runtime and not nucleusApplication: a Compose Desktop app keeps its own application { } and its own windows and just adds a tray. Only TrayApp asks for more, because its popup is a window: it runs in a nucleusApplication.
A tray is never used alone: it sits next to windows, notifications, the dock and taskbar, packaging and auto-update. Keeping it in its own repository meant tracking Nucleus releases from the outside, with its own build, its own CI and its own version, and finding out about a breaking change after it shipped.
In the Nucleus repository the tray is built, tested and released together with the rest of the framework:
- One version for everything: the tray you depend on is the one tested against the window runtime and the plugin of the same release.
- A pipeline made for native libraries: Nucleus's CI builds the JNI libraries for Windows, macOS and Linux (x64 and ARM64) on every change and runs the tray's Linux torture suites and the
TrayAppend-to-end tests on every pull request; torture suites against the real Windows notification area, the macOS status bar and GNOME Shell come with the code. - Easier to maintain: one place to fix a bug, one changelog, one issue tracker.
The public API did not change: coming from 2.1.x, only the dependency and the imports change. The backends were rewritten on that occasion (one thread per tray, no shared state between trays, a backend per OS that never blocks the UI), and most of the issues open here are fixed by it.
- Code:
trayandtray-appin the Nucleus repository. - Issues and pull requests: Nucleus issues. The issues open here were reviewed: those solved in Nucleus are closed with a pointer, those still relevant were opened again in Nucleus.
- Old code: the last version of this repository (2.1.7 and its history) is kept, read-only, on the
archivebranch. Published versions stay on Maven Central (dev.nucleusframework:composenativetray).
MIT, see LICENSE. Nucleus is MIT as well.