2021年11月12日·阅读约1分钟

JetBrains 推出用于 Kotlin 的 Compose 多平台 UI 框架 Beta 版

Kotlin 编程语言的创造者 JetBrains 发布了其 Compose Multiplatform UI 框架的测试版。声明式 UI 框架使开发人员能够使用统一的方法为桌面和 Web 应用程序创建原生感觉的界面,构建于 Google 的 Jetpack Compose 之上。

JetBrains 推出用于 Kotlin 的 Compose 多平台 UI 框架 Beta 版

以 IntelliJ IDEA 和 Kotlin 编程语言而闻名的软件开发工具制造商 JetBrains 宣布了其Compose Multiplatform UI 框架的测试版。今年早些时候推出的声明式 UI 框架是 JetBrains 对 Kotlin 统一 UI 开发方法愿景的重大飞跃。

Compose Multiplatform框架基于 Google 的Jetpack Compose, a toolkit for UI development on Android. The JetBrains framework brings the same declarative approach and APIs used in Android app development to create native-feeling user interfaces for desktop and web apps.

JetBrains 的开发倡导者 Sebastian Aigner 在博客文章中宣布了测试版的发布。 Compose Multiplatform由 Compose for Desktop 和 Compose for Web 组成,现在更接近其稳定版本,预计将于今年晚些时候发布。在准备 1.0 版本时,JetBrains 正在稳定 API 并明确标记实验接口。 Aigner 还强调,此次更新通过引用谷歌发布的 Android 工件解决了兼容性问题。

Compose for Desktop 在此版本中进行了重大改进,例如通过智能回退到软件渲染增强了有问题的硬件和驱动程序的稳定性、新的鼠标指针 API、新的悬停 API、对透明窗口的支持以及辅助功能支持的首次预览在 macOS 上。

同时,Compose for Web 现在允许开发人员在 DOM 树中使用 SVG 和 HTML 元素,同时仍然利用 Compose API。 JetBrains 的Compose项目负责人 Nikolay Igotti 评论了构建真正的多平台 UI 框架的挑战,并强调在每个版本中,他们都在实施新功能和兼容性层,以使框架更接近生产级开发。

根据 JetBrains 的 State of Developer Ecosystem 2021 调查,大多数开发人员都在创建 Web 和桌面应用程序,只有 30% 专注于移动开发。 Kotlin 作为 Android 开发的官方首选语言,由于其静态类型特性,在运行时比 Java 更稳定,允许它检查弱点并支持变量类型接口、闭包、扩展函数和混合等特性。它还比 Java 更简洁,使开发人员能够使用更易读的语法编写更少的代码。

Compose Multiplatform UI 框架的引入可以让开发人员更轻松地为桌面、Web 和移动应用程序等各种平台进行 UI 开发。 AppMasterno-code platform, for example, is already enabling customers to build backend, web, and mobile applications through visual design, facilitating cost-effective and fast application development. appmaster.io/blog/our-guide-to-the-best-mobile-app-development-tools-android-ios-in-2022> AppMaster是为各种规模的企业开发可扩展、高性能应用程序的理想解决方案.

JetBrains 在 2011 年 JVM 语言峰会上公布了Kotlin ,随后在 Apache 2 开源许可下发布了它以供分发。

Easy to start
Create something amazing

Experiment with AppMaster with free plan.
When you will be ready you can choose the proper subscription.

Get Started