InsertKoinIO / InsertKoinIO/koin-compiler-plugin

Support Koin Compiler with Android Startup (io.insert-koin:koin-androidx-startup).

Open
#69 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:feature-request 🫶
Dominant language
Kotlin
Stars
82
Forks
15
Avg merge
1m
Merged PRs (30d)
1

Description

Is your feature request related to a problem? Please describe.
Unable to use koin-androidx-startup with compiler-plugin

Describe the solution you'd like
Suggestion:
BEFORE:

override fun onKoinStartup() = koinConfiguration { ...}

AFTER:

override fun onKoinStartup<MyApp>() = koinConfiguration { ... }

OR

BEFORE:

class ExampleApplication : Application(), KoinStartup

AFTER:

class ExampleApplication : Application(), KoinStartup<MyApp>

where MyApp is @KoinApplication

Describe alternatives you've considered
Seems only solution for now is to switch back to regular startKoin<MyApp> inside onCreate()

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the KoinStartup and onKoinStartup entry points, then inspect how the compiler plugin handles @KoinApplication and compare this with the startKoin path. The change is done when koin-androidx-startup can use the compiler-generated application configuration without switching to startKoin in onCreate().

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.