Koin IDE Plugin
Overview
The Koin IDE Plugin is a powerful new tool in the Kotzilla platform, designed to enhance your development experience with the Koin framework. It helps you visualize and manage your Koin configurations and dependencies directly within Android Studio or IntelliJ IDEA. Now in open beta, the plugin simplifies code navigation, improves configuration accuracy, and helps you catch both configuration and performance issues early in the development process.
Key Features in Beta
Configuration Tree View
The Koin Configuration Tree offers a structured visualization of your app's dependency setup, including:
-
Modules: See all declared modules in your application.
-
Components and dependencies: View each defined component and its dependencies, including Factories, Singletons, and ViewModel definitions, ensuring a clear understanding of your setup.
-
Real-time validation checks: Immediate configuration validation that catches issues as you write your code. Configuration errors are highlighted directly in the tree for a easy visusalisation
Contextual Navigation
Navigate easily between components and their configurations without leaving the IDE. The plugin integrates with your codebase to provide:
-
Source navigation: Jump between your configuration tree and source code with a single click.
-
Dependency resolution: Automatically detect argument types and resolve dependencies to help you debug effectively.
-
Koin Gutter icons: Gutter icons are displayed next to relevant lines of code, helping you navigate Koin dependencies and modules. Clicking on these icons will take you directly to the definition of the dependency.
Koin Issues Panel
The Koin Issues Panel is designed to provide a detailed view of potential issues in your application. It is divided into two tabs:
-
Configuration issues: A dedicated view that displays warnings or potential problems in your Koin configuration, helping you instantly identify missing dependencies.
-
Application issues: A real-time view of your app's performance and complexity issues, including slow startups, thread performance bottlenecks or complex dependency graphs. This feature requires the setup of the Kotzilla SDK as described here.
Why use the Koin IDE Plugin?
The Koin IDE Plugin combines Configuration Safety and Application Debugging capabilities right in your IDE:
-
Analyzes configurations in real time: Detects issues or missing declarations while you write your code.
-
Prevents runtime errors: Addresses problems early in the development process, eliminating surprises during runtime or compilation.
-
Facilitates code navigation: Use gutter icons to quickly jump between Koin components and their dependencies, eliminating the need for manual searching.
-
Debugs application issues: Provides a comprehensive view of performance and complexity problems in Kotlin apps using Koin, such as slow startup or thread bottlenecks