Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support expect / actual for generated factory functions using @CreateComponent #62

Merged
merged 1 commit into from
Oct 28, 2024

Commits on Oct 28, 2024

  1. Support expect / actual for generated factory functions using `@Cre…

    …ateComponent`
    
    Due to how Kotlin 2.0 and newer handles source sets, it's likely that the generated factory function for generated components cannot be referenced from common Kotlin code in KMP projects. This change adds a new annotation `@MergeComponent.CreateComponent` to allow defining an `expect fun` in common code where the `actual fun` will be generated. This closes the gap.
    
    Fixes #20
    vRallev committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    c162fa0 View commit details
    Browse the repository at this point in the history