Codename One Adds Apple Watch and Wear OS Support From a Single Codebase

Open-source framework Codename One has introduced watch app support for both Apple Watch and Wear OS through a single Java or Kotlin codebase via pull request #5487. On Apple platforms, setting a watchMain entry point automatically adds a companion watch target to the existing phone build. For Wear OS, enabling the watchStandalone flag replaces the phone build with a standalone Wear OS application, though a companion Wear APK alongside the phone app is not yet supported. The update also introduces a unified phone-to-watch communication API that maps to WCSession on Apple and the Wearable Data Layer on Android, offering both persistent data sync and real-time messaging. While the phone and watch can share source files, resources, and themes, they maintain completely separate runtime state, storage, and SQLite databases.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in