Is there any way to create a multiplatform project...
# multiplatform
c
Is there any way to create a multiplatform project with custom targets? My project is targeting three different JVM frameworks that host it, and I'd like to use expect/actual syntax instead of needing separate dependency injection to interface with them.
h
It was supported in the past, called multiple same targets, but it is deprecated without expect/actual support: https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-compatibility-guide.html#declaring-several-similar-targets
e
I like that its not supported. You should use dependency injection and a shared interface. Expect actual should be left for development across multiple platformsonly
h
Why do you want to limit it? Gradle has the same feature called Java Features (but without expect/actual), so using it with Kotlin would be very nice.