InsertKoinIO / InsertKoinIO/koin-compiler-plugin
Support Koin Compiler with Android Startup (io.insert-koin:koin-androidx-startup).
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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