It's not 100% related to Compose but still - probably a good place to ask. I started implementing our internal design system in Compose and I published it to
Maven Local. Then I wanted to use it in another project, but I'm not able to call any "global" functions - e.g. I have a file called
OneButton
with a single method in it (no classes or objects):
@Composable
fun OneButton(
modifier: Modifier = Modifier
...
If I try to call it from my other project, Android Studio does not recognize the function.
Then I decided to experiment and created a dummy Kotlin class with a single
@Composable
method in it. Published the .aar to Maven Local and used it in the other project. I created an instance of the dummy class and successfully called the
@Composable
function. What am I missing - my setup is more or less the same as in
Accompanist (I'm not using Metalava and/or API file), I'm using the same Gradle plugin for publishing the artefacts... Any idea what may be wrong?