![]() For example, the Android module could be thought of as a traditional app module in an Android multi-module project. They are what you might consider as entry points to the application. Now, a module directory for each platform - Android, browser, and desktop - has been generated. Project structure straight out of configuration phase ![]() This should be the result of your template configuration: If you’re ready with the configuration, click Finish to jump into your new project. You can also remove any unwanted modules and targets by right-clicking on them and selecting Remove …. You can also include additional modules, such as Web or iOS, by selecting Project in the menu and clicking (or right-clicking) the + button.Īfter adding the browser module, you can proceed to add a js target to the common module if you want to reference it in the browser module. If you’re having trouble locating it or want to use a standalone SDK, you may want to check out this guide: Finding Android SDK on Mac and adding to PATH.Īt this stage, you can also click on your modules and targets. You can use the one that was bundled with your Android Studio installation, which should be located in /Users//Library/Android/sdk. When using this for Android, you’ll be prompted to provide a path to Android SDK. Furthermore, to be able to use native distribution packaging, you must use JDK 15 or later.Īfter choosing a name and location for the new project, click Next. Note that your JDK must be at least JDK 11. Then, pick Compose Multiplatform Application… from the available templates. To start a new Compose Multiplatform project, you first need to install IntelliJ IDEAĪfter selecting New Project, proceed to select Kotlin. This technical guide aims to explain how you can create your own Compose Multiplatform project, add modules, and perform basic setup. Desktop apps (Linux, macOS, and Windows).The Compose Multiplatform framework brings the declarative UI model known to Android developers to other platforms, including: CM uses part of the same technology as Jetpack Compose but extends it to work across platforms. It’s a UI framework that simplifies and speeds up desktop app development with the use of Kotlin. Compose Multiplatform (CM) was a result of the collaboration between Google and the company behind Android Studio and IntelliJ.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |