Kotlin Multiplatform
摘要
Kotlin Multiplatform (KMP) is an innovative software development framework that allows the developers to create shared code that can be workable across numerous platforms, including iOS, Android, web, desktop, and embedded devices. It is a major component of the Kotlin system that aims to offer a balance between cross-platform code exchange and platform-specific customization. Unlike other cross-platform frameworks such as Flutter or React local, which generate user interfaces for several operating systems, KMP prioritizes the exchange of business logic, data models, and network logic, while ensuring that the user experience remains local to a given platform. It is developed and maintained by JetBrains, the same organization that created. The Kotlin KMP allows the development of common code in Kotlin while using platform-specific implementations as required. It has several advantages, such as better integration into existing projects and allowing the progressive adoption of the new standard without compromising the comprehensive rewrites of applications. An overview of KMP is shown in Figure 15-1.