Nishant Aanjaney Jalan
06/03/2024, 9:17 PM|- composeApp/
|- gradle/
|- iosApp/
|- server/
| |- src/
| |- build.gradle.kts
|- shared/
| |- src/
| |- build.gradle.kts
|- build.gradle.kts
|- settings.gradle.kts
Now I have ktor-server
dependencies in :server
and I have ktor-client
dependencies in :shared
. I am aware that although the ktor-server-core
and ktor-client-core
must belong to the respective modules, I want to know if there is any real difference between the dependencies of ktor-*-content-negotation
and ktor-*-resources
. Currently, what's happening is that I have two identical data classes with @Resources, but the tag comes from different dependencies. Is there a way to go around this issue?
in other words, :shared
has a class @Resource("/article") data class Article(...)
and I have the same class in :server
. But :shared
uses ktor-client-resources
while :server
uses ktor-server-resources
.hfhbd
06/03/2024, 9:38 PMhfhbd
06/03/2024, 9:38 PMNishant Aanjaney Jalan
06/03/2024, 9:54 PMAleksei Tirman [JB]
06/04/2024, 6:14 AMI want to know if there is any real difference between the dependencies ofIf you mean the difference between theandktor-*-content-negotation
ktor-*-resources
client
and server
versions for each module, then they are different because they contain specific functionality for the HTTP client or HTTP server, respectively.Nishant Aanjaney Jalan
06/04/2024, 10:32 AM