How to migrate Retrofit to KTOR - Android App to Compose Multiplatform series

Описание к видео How to migrate Retrofit to KTOR - Android App to Compose Multiplatform series

The video discusses the process of migrating an Android app to Kotlin multiplatform and Compose multiplatform, focusing on code structure, design system, core modules, and network layer. I will be demonstrating creating shared modules, adding targets for different platforms, and using expect functions to bridge common code with platform-specific implementations. Then address issues related to setting up compile SDK, handling JVM targets, creating domain models, setting up HTTP clients, and making API calls. The importance of copying files instead of cutting them is emphasized to avoid breaking existing functionality. The video also discusses using plugins like serialization and content negotiation, refactoring code, and successfully testing the app after migration

🔹 What You'll Learn:

How to transition from Retrofit to KTOR in your project
Best practices for setting up KTOR for Kotlin Multiplatform
Integrating new network layer with existing hilt implementation


Don't forget to like, comment, and subscribe for more content on Kotlin Multiplatform and Compose development!

Timestamps: 0
0:01 Intro to Kotlin Multiplatform
01:10 Explaining design system module
03:31 Usage of shared Kotlin modules
05:13 Adding Kotlin multiplatform plugin
07:18 Understanding source sets
09:40 Android and iOS targets defined
11:29 Resolving serialization issues
13:37 'Expect function' concept introduced
16:49 Focus on Android development
20:09 Testing shared module functionality
28:03 Utilizing HTTP client plugins
39:01 API implementation in shared module
49:13 Conclusion and next steps



Get the code at my Github: https://github.com/Kashif-E/Searchify...

Connect with me on Linkedin:   / kashif-mehmood-km  

Follow me on Medium:   / kashif-mehmood-km  

Lets share on Instagram:   / kashif_mughal._  

Комментарии

Информация по комментариям в разработке