How can I provide `@Composable` functions from a c...
# compose
r
How can I provide
@Composable
functions from a compiled aar? Specifically, ensuring that the consuming application has all the necessary compose dependencies and configurations to handle its presence. I want to compose the UI with Compose and then expose it via my API either as a Composable method or as a traditional view component. I’m having trouble finding documentation on this.
z
Your library module should declare compose deps as api. Of course, for your consumers to call them, they’ll need to have the compose compiler enabled, but you can’t force them to do that.
There’s nothing special about composable functions from a library publishing perspective though - they are published just like any other functions.