feat: add menu-macos and sf-symbols modules#162
Merged
kdroidFilter merged 6 commits intomainfrom Mar 28, 2026
Merged
Conversation
New modules: - menu-macos: complete NSMenu/NSMenuItem/NSMenuItemBadge mapping via JNI with a declarative Compose API (NativeMenuBar) for building reactive native macOS application menu bars - sf-symbols: 6195 type-safe Apple SF Symbols constants across 21 categories Plugin fixes: - Use appName (fallback packageName) for CFBundleName in Info.plist - Inject -Dapple.awt.application.name in the run task on macOS - Auto-register Services/Window/Help menus with macOS Example app demonstrates live menu bar recomposition driven by Compose state.
8a33ca1 to
e8e4338
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
menu-macos: Complete NSMenu mapping via JNI with a declarative Compose API (NativeMenuBar) for building fully native, reactive macOS application menu bars — supports SF Symbols, keyboard shortcuts, badges, submenus, checkboxes, radio buttons, section headers, alternate items, tooltips, subtitles, indentation, and delegatessf-symbols: 6 195 type-safe Apple SF Symbols constants across 21 categories (SFSymbolArrows,SFSymbolMedia,SFSymbolObjectsAndTools, etc.), usable directly asNsMenuItemImage.SystemSymbol(SFSymbolMedia.PLAY)CFBundleNamenow usesappName(fallbackpackageName) — previously always usedpackageName. Also auto-injects-Dapple.awt.application.namein theruntask on macOSsetServicesMenu:/setWindowsMenu:/setHelpMenu:API
Test plan
./gradlew :menu-macos:jar— module compiles and packages./gradlew :sf-symbols:jar— 6195 constants compile./gradlew :example:run— Menu tab: Install menu bar, verify all menus appear./gradlew :example:packageDistributionForCurrentOS— verify CFBundleName uses appName