![]() The greet() function is now called inside LaunchedEffect to avoid recalling it on each recomposition. To do so, add the following line to the file of the shared module: To add routines to your project, specify a dependency in the common source set. ![]() Ktor, a framework as an HTTP client for retrieving data over the internet. rialization, for deserializing JSON responses into objects of entity classes used to process network operations. routines, for using coroutines to write asynchronous code, which allows simultaneous operations. You'll need the following multiplatform libraries in your project: The updated app will retrieve data over the internet from a SpaceX API and display the date of the last successful launch of a SpaceX rocket. ![]() Learn how to implement these in your first application, so that after completing this onboarding journey you can use them in future projects. Network requests and data serialization are the most popular cases to share with Kotlin Multiplatform. You've already implemented common logic using external dependencies. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |