Codename One Adds watchOS and Wear OS Support via Single Java/Kotlin Codebase

Codename One, an open-source framework for building cross-platform apps from a single Java or Kotlin codebase, has released wearable support for both Apple watchOS and Google Wear OS. The watchOS port uses a dedicated Core Graphics rendering backend hosted inside a SwiftUI shell, since watchOS lacks UIKit, OpenGL ES, and Metal. Developers can share the same codebase across phone and watch apps, controlling per screen how much of the UI is displayed on the smaller device. A dedicated entry point, codename1.watchMain, allows the watch build to start from a lightweight class, enabling dead-code elimination to reduce the memory and CPU footprint. On Apple devices, the watch app is embedded within the iOS app by default so both install together, while a standalone watch-only build is also available.
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