does anyone use ktor server in a multiplatform env...
# multiplatform
w
does anyone use ktor server in a multiplatform environment? i know the CIO client is able to work like that, not sure about the server. also asked in #ktor
d
@william This may not be the crux of your question; but as some handy (and hard-won!) info: I'm currently forced to use the
multiplatform
plugin to compile my (JVM-only) server, because I'm maintaining a 'shared' multiplatform module between server and clients. In theory one should be able to make a multi-platform project reference from the server as a
kotlin("jvm")
plugin project; and indeed configuring in this way does compile without issue. However the IDE support isn't there - both IntelliJ and Android fail to 'see' the multiplatform project dependencies correctly. Setting up the top-level server project as
multiplatform
fixes this, though you do have to add the
jvmMain
classpaths etc. manually if you're e.g. making a WAR file.
c
@darkmoon_uk I think your problem is different, I have multiple projects where a non-multiplatform module depends on a Multiplatform module with no issues (I use IDEA stable and IDEA EAP, haven't tested AS) For example: •
api
is Multiplatform •
server
is JVM, depends on
api
client
is Multiplatform, depends on
api
ui
is JS, depends on
client
https://gitlab.com/arcachon-ville/formulaide