Codename One's latest release brings two major platform API additions to the framework core: a first-class LLM client and a ChatView UI component, plus a modern OAuth/OIDC authentication stack using system browsers instead of embedded WebViews. The LlmClient supports OpenAI, Anthropic, Gemini, and Ollama with streaming, tool calls, embeddings, and image generation. A simulator Ollama redirect lets developers iterate locally without API charges. Thirteen new opt-in cn1libs cover on-device ML capabilities via Google ML Kit (OCR, barcode scanning, face detection, translation, pose detection, etc.), TensorFlow Lite, Whisper speech-to-text, and on-device Stable Diffusion. The OAuth overhaul replaces the deprecated in-app WebView flow with PKCE-based system browser authentication (ASWebAuthenticationSession on iOS, Custom Tabs on Android), with provider wrappers for Google, Apple, Microsoft, Facebook, Auth0, and Firebase, plus WebAuthn/passkey support. Smaller additions include WiFi/Bonjour/USB connectivity APIs and share-sheet result callbacks with an iOS Share Extension builder Mojo.

22m read timeFrom foojay.io
Post cover image
Table of contents
AI: a first-class LLM client and a ChatView componentOAuth and OIDC: the modern identity stackConnectivity: WiFi, Bonjour, USB, network-type listenersShare-sheet result callbacksWrapping up
37.7K Impressions