Google Data Analytics, IBM AI & Meta Marketing — All in One Subscription
The Most Addictive Python and SQL Courses
Overview
Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
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