Nevertheless, it's not too simplistic like just a "hello world" example. Those components are simple enough to not overwhelm you at the beginning of the project.
Those users' data will be exposed in Koin with different kinds of applications: Kotlin, Android. We are sharing the main UserRepository component, to expose a list and find inside a collection of users. The idea is to have an easy comparison between technologies. For all the starter projects, we have finally reworked them to propose the same common data project to be exposed in different contexts. Those projects were already existing since the beginning of Koin. Koin website - insert-koin.io Revamping Starter Projects This section is a list of quickstart tutorials to help you learn how to start Koin for a given technology use case. If you have not noticed, the Koin website contains a "Quickstart" section. Today, I would like to zoom in on the Koin Quickstart applications. Open the continue to rework regularly our documentation website to bring you the best content for your Kotlin development. To view the complete structure of the generated multiplatform project, switch from Android to Project in a Project view.Ĭonfigure build scripts Update Kotlin Gradle plugins It may take some time to download and set up the required components when you do this for the first time. On the next page, leave the default settings and click Finish to create a new project. In our tutorial, the application name is KmmKtor. Specify a name for your application, and click Next. Select Kotlin Multiplatform App in the list of project templates, and click Next. In Android Studio, select File | New | New Project. You will need a Mac with macOS to complete certain steps in this tutorial, which include writing iOS-specific code and running an iOS application. Learn how to do this from the Set up an environment section. Prerequisitesįirst, you need to set up an environment for cross-platform mobile development by installing the necessary tools on a suitable operating system. To learn how to create your first Kotlin Multiplatform Mobile application, see Create your first cross-platform mobile app. In this tutorial, we'll create a simple Kotlin Multiplatform Mobile application, which sends a request and receives a response body as plain HTML text. The Ktor HTTP client can be used in multiplatform projects. Creating a cross-platform mobile application