filmov
tv
Kotlin Multiplatform Learning: Module structure of the official tutorial for the Native UI version

Показать описание
Hello, this is ringring.
Welcome to the Kotlin Multiplatform Learning Series for Android Engineers.
In this video, we will be exploring the module structure of the official tutorial for the Native UI version.
Following the official tutorial for the Native UI version, when you create a Kotlin Multiplatform project in Android Studio, you'll likely see a plethora of folders.
First and foremost, it's crucial to understand that this project is divided into three modules.
The first one is the shared module.
This module consolidates logic common to both Android and iOS.
It's written in Kotlin and built using Gradle.
The second one is the androidApp module, which encapsulates logic specific to Android.
Like the shared module, it's written in Kotlin and built using Gradle.
Finally, there's the iosApp module, responsible for consolidating logic specific to iOS.
This module is written in Swift and built using the iOS framework.
When making actual code modifications, you'll find yourself opening only this module in Xcode.
In summary, when following the official tutorial for the Native UI version, please remember to place common logic in the shared module, and specific processes for each operating system's views, etc., should be placed in the androidApp and iosApp modules.
We'll guide you through the challenging aspects at each step in this learning series, so make use of it in your learning journey.
Thank you for watching.
If you found this guide helpful, don't forget to like, subscribe, and hit the bell.
Stay tuned for more content on Kotlin Multiplatform.
Happy coding.