How To Use Koin As Dependency Injection Framework For Kotlin & Compose Multiplatform - KMP Tutorial

  Рет қаралды 4,481

Yanneck Reiß

Yanneck Reiß

Күн бұрын

In this video, we form a basic understanding of dependency injection and how we can use Koin as a dependency injection framework in our Kotlin Multiplatform project with Compose Multiplatform.
While we only cover Android and iOS as target builds, you can also apply the content of this video for other platforms like Desktop and Web!
🔍 What You Will Learn:
- A basic understanding of the Dependency Injection design principle
- How to Setup Koin With Kotlin DSL and Koin Annotations KSP Plugin
- How to declare definitions / dependencies with Koin
- How to inject definitions / dependencies in your code with Koin
🔗 Helpful Links:
- Koin: insert-koin.io/
- Video's GitHub repository: github.com/YanneckReiss/kmp-c...
🙌 Follow me on:
Twitter: / yanneckreiss
Medium: / yanneck-reiss
Instagram: / yanneckreiss
📌 Timestamps:
00:00 - Intro
00:58 - Why Dependency Injection?
02:52 - Why Koin?
03:49 - KMP Project Setup
05:48 - Constructor vs. Field Injection
06:44 - How To Declare Definitions / Dependencies With Kotlin DSL
10:48 - Constructor DSL
12:18 - How to Start Koin
15:34 - Koin Annotations KSP Plugin
20:36 - Koin in Compose Multiplatform Code
22:37 - Outro
#Kotlin #KotlinMultiplatform #ComposeMultiplatform #Koin #MobileAppDevelopment #DependencyInjection #DeveloperTutorial #Programming #TechGuide
🌟 Stay tuned for more insightful videos on the latest in software development technologies and best practices. Don’t forget to like and share!
Thank you for watching and happy coding! 🌟

Пікірлер: 19
@yusufceylan9863
@yusufceylan9863 9 күн бұрын
Great explanation, thanks a lot Yanneck!
@cabritamecanica2776
@cabritamecanica2776 5 ай бұрын
The best video, I'm Brazilian, I'm studying multiplatform composing and your channel very helps to studying and solutions error. Thanks bro!
@SociedadAndroide
@SociedadAndroide 4 ай бұрын
Thi is an excelent introduction to DI in KPM ! thanks for the content
@hellodevs
@hellodevs 4 ай бұрын
Despite being a big fan of Hiit, I see Koin as the best option for Compose Multiplata. Thank you very much
@Germansdev
@Germansdev 15 күн бұрын
Thanks Yanneck!
@yanneckreiss
@yanneckreiss 15 күн бұрын
Thank you for watching 😊
@diegoribeiro5992
@diegoribeiro5992 5 ай бұрын
Congrats from Brazil, bro. It was amazing.
@yanneckreiss
@yanneckreiss 5 ай бұрын
Thank you very much! I'm glad you liked it. That really motivates me! 😊
@pgnrr
@pgnrr 5 ай бұрын
Could you do a video on how would you do a Compose multiplatform app with api networl requests, pagination, bottom navigation,etc... it would be of great help🔥 and Merry Xmas!!!!!
@yanneckreiss
@yanneckreiss 5 ай бұрын
Merry xmas to you too! I will first try to split those topic into separate videos but I can totally think of a video where I do all at once in a longer video to build a fully functionally app 😊
@justinsmith3981
@justinsmith3981 4 ай бұрын
One thing that can be improved here is migrating to version catalogs.
@yanneckreiss
@yanneckreiss 4 ай бұрын
You are right - but because the template project doesn't use it I didn't want to introduce too many new technologies that are not the actual topic of the video:) hope you still found it useful
@bejagungdb1152
@bejagungdb1152 3 ай бұрын
Nice video, but have you considered about using kotlin-inject since it's really rare to find video telling about it?
@maikolsoro1835
@maikolsoro1835 22 күн бұрын
I have a complex native android app and I need to have it in multiplatform, what do you recommend me to migrate to KMP or flutter?
@bebobauomy1265
@bebobauomy1265 4 ай бұрын
Hello yannek, Does kotlin have a way to manage memory manually?
@henrik908
@henrik908 3 ай бұрын
Please make thrid part of cameraX with tensorflow.
@radhe3891
@radhe3891 5 ай бұрын
please not edit the video like this be it normal so that we can see at least android studio and pakage structure properlly , thank you
@yanneckreiss
@yanneckreiss 5 ай бұрын
Good point, I tried the presentation mode for this and my last videos but also realized especially with this one when I was editing that it often can lead to confusion when one can't see the whole IDE 😅 thanks for your feedback 😊
@willi11319
@willi11319 5 ай бұрын
best christmas present 2023
Koin в Android на практике c MVVM
28:08
Тимофей Коваленко
Рет қаралды 21 М.
100❤️
00:19
Nonomen ノノメン
Рет қаралды 38 МЛН
Bro be careful where you drop the ball  #learnfromkhaby  #comedy
00:19
Khaby. Lame
Рет қаралды 42 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 118 #shorts
00:30
it takes two to tango 💃🏻🕺🏻
00:18
Zach King
Рет қаралды 29 МЛН
Using Kotlin Multiplatform to build apps for cars
13:13
Novoda
Рет қаралды 1,2 М.
Meet Voyager: A Kotlin Compose Multiplatform Navigation Solution
14:41
Sealed Classes for UI State are an ANTI-PATTERN - Here's why!
9:53
Philipp Lackner
Рет қаралды 17 М.
The AI Humanoid Robots Race is getting CRAZY
1:20:32
AI Search
Рет қаралды 18 М.
100❤️
00:19
Nonomen ノノメン
Рет қаралды 38 МЛН