![]() To view the complete structure of the generated multiplatform project, switch from Android to Project in a Project view. 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. Later youll connect it to your existing Android application and your future iOS application. In your Android project, create a Kotlin Multiplatform shared module for your cross-platform code. Specify a name for your application, and click Next. The Kotlin Multiplatform Mobile plugin provides a special wizard for creating such modules. Select Kotlin Multiplatform App in the list of project templates, and click Next. In Android Studio, select File | New | New Project. If you needed any further explanation, there was some sample code for Android and iOS. 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. Everything fell right into place in minutes within opening the docs. 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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |