Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Koin Annotations in Compose Multiplatform - Beginner's Guide to Compile-Time Dependency Injection

Philipp Lackner via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn compile-time dependency injection using Koin annotations for Compose Multiplatform applications targeting Android, iOS, and Desktop platforms. Master the fundamentals of dependency injection concepts, including the distinction between real dependency injection and service locator patterns. Set up Koin annotations in your multiplatform project and create sample dependencies to understand the framework's structure. Explore how to organize dependencies using modules and provide them effectively across different platforms. Implement platform-specific dependencies to handle unique requirements for each target platform. Create ViewModel modules to manage application state and business logic in a multiplatform context. Utilize qualifiers to differentiate between similar dependencies and avoid conflicts. Test your implementation across all supported platforms to ensure proper functionality and cross-platform compatibility.

Syllabus

00:00 - Introduction
00:44 - What is Dependency Injection?
04:25 - Real DI vs. Service Locator
10:07 - Koin Annotations Setup
18:50 - Creating sample dependencies
26:48 - Modules & providing dependencies
34:57 - Platform-specific dependencies
40:58 - ViewModel module
45:23 - Qualifiers
48:10 - Trying it out on all platforms

Taught by

Philipp Lackner

Reviews

Start your review of Koin Annotations in Compose Multiplatform - Beginner's Guide to Compile-Time Dependency Injection

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.