Skip to content

Migrate to Nucleus 2.0 and drop platformtools/SingleInstanceManager#410

Merged
kdroidFilter merged 1 commit into
masterfrom
migrate/nucleus-2.0
Jul 10, 2026
Merged

Migrate to Nucleus 2.0 and drop platformtools/SingleInstanceManager#410
kdroidFilter merged 1 commit into
masterfrom
migrate/nucleus-2.0

Conversation

@kdroidFilter

Copy link
Copy Markdown
Owner

Summary

  • Bump Nucleus 1.12.02.0.0-alpha-202607101252: group io.github.kdroidfilterdev.nucleusframework (artifact names unchanged), Gradle plugin id io.github.kdroidfilter.nucleusdev.nucleusframework.
  • Migrate packages: io.github.kdroidfilter.nucleus.{darkmodedetector,graalvm,desktop.application.dsl}dev.nucleusframework.*.
  • Drop the platformtools.core dependency, replacing its OS/desktop detection with Nucleus core-runtime: getOperatingSystem()/OperatingSystem.*Platform.Current/Platform.{Windows,MacOS,Linux,Unknown}, and detectLinuxDesktopEnvironment()LinuxDesktopEnvironment.Current (now non-null, Unknown instead of null).
  • Remove the bundled utils/SingleInstanceManager.kt; demos now use dev.nucleusframework.core.runtime.SingleInstanceManager (identical API). README updated.

Notes

  • JDK toolchain stays at 17 — the Nucleus 2.0 runtimes ship Java 11 bytecode, and no IntelliJ-snapshots repo is required (no transitive Jewel deps).
  • TrayAppDemo keeps application { }: TrayApp/Tray require Compose's ApplicationScope (for DialogWindow), which nucleusApplication does not expose publicly.

Test plan

  • ./gradlew :compileKotlinJvm :demo:compileKotlinJvm
  • Run the demo and verify tray + single-instance behavior on each OS

- Bump Nucleus to 2.0.0-alpha, migrate coordinates/plugin id/packages to dev.nucleusframework
- Replace platformtools with Nucleus core-runtime Platform and LinuxDesktopEnvironment
- Remove bundled SingleInstanceManager in favor of the one provided by Nucleus core-runtime
@kdroidFilter kdroidFilter merged commit 5f72598 into master Jul 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant