Skip to content

Start Koin with Androidx Startup #281

@senpl

Description

@senpl

Is your feature request related to a problem? Please describe.
Start koin in onCreate make it not that flexible. Better solution would be to start with this plugin (https://insert-koin.io/docs/reference/koin-android/start#start-koin-with-androidx-startup-401-experimental )
Without it go back to main Activity is problematic due to koin setup.

Describe the solution you'd like
As described in https://insert-koin.io/docs/reference/koin-android/start#start-koin-with-androidx-startup-401-experimental adding plugin and use it to KoinStartup avoid blocking main thread at for startup time, and offers better performances.

Describe alternatives you've considered
Singleton for koin start could be used. But it's not that clear as official solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions