Skip to content

Provide annotations for navigation3 #345

Description

@theimpulson

Is your feature request related to a problem? Please describe.

Koin already supports navigation3 as described on the official website here. Now that annotations are supported along with compiler plugin, it would be nice to have support for navigation3 as well.

Describe the solution you'd like

To be able to do something like:

@Module
@ComponentScan
@Configuration
object NavModule {

    @Navigation(binds = [Screen.About::class])
    @Composable
    fun provideAbout() = AboutScreen(onNavigateUp = {...})
}

Describe alternatives you've considered

Building a module using DSL and providing it to the KoinApplication manually.

Target Koin project

koin-compiler-plugin = = "1.0.0"
koin-annotations = "4.2.1"
koin-compose-navigation3 = "4.2.1"
koin-compose-viewmodel = "4.2.1"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions