Matthew Feinberg
10/21/2024, 4:39 AMexpect fun
(part of our library implementation) is being called on Android builds, but only when our library is included as a dependency (in the "sample" app, it works fine)! I have no idea where to start to try to diagnose this problem. Any pointers would be greatly appreciated. If it matters, the function in question is a composable function:@Composable
internal expect fun PlatformRenderView(...)
settings.gradle.kts
we have include(":sample:composeApp")
and include(":lib")
). When running the sample app, everything works fine on both Desktop and Android targets. However, when we publish the lib
internally (using maven-publish
) and try to use it as a dependency in another multiplatform project, the Desktop build works fine, but whenever we try to call a expect
function on the Android built, it tries to use the desktop actual
rather than the Android actual
.ephemient
10/21/2024, 6:35 AMephemient
10/21/2024, 6:35 AMMatthew Feinberg
10/21/2024, 6:36 AMMatthew Feinberg
10/21/2024, 8:00 AM