Home / Companies / JetBrains / Blog / Post Details
Content Deep Dive

A New Default Project Structure for Kotlin Multiplatform | The Kotlin Blog

Blog post from JetBrains

Post Details
Company
Date Published
Author
Márton Braun
Word Count
1,064
Language
American English
Hacker News Points
-
Summary

The Kotlin Multiplatform project structure has been updated to provide modules with clearer responsibilities and better alignment with modern build conventions, reflecting changes in the Android Gradle Plugin 9.0. This new structure, now implemented in the Kotlin Multiplatform wizard and official documentation, separates shared code into a distinct module and designates individual application modules for each platform, such as Android, desktop, and web. This approach resolves the previous structural complexity where a single module contained both shared libraries and application-specific configurations, particularly addressing the asymmetry in iOS development that required separate iOS folders. The updated structure supports modularity, allowing projects to easily expand from a single multiplatform module to multiple ones, and accommodates different configurations, including the use of native UI and server-side Kotlin. While existing projects are not obligated to adopt this new structure, compliance with Android Gradle Plugin 9.0 changes is necessary, and guidance is available to assist migrations.