Joffrey10/08/2021, 2:34 PM
A compileOnly dependency is used in the Kotlin/Native target 'iosArm64'
source set indeed declares
dependency. This is what I want for non-native targets (JVM, JS browser, JS node...) because it's supposed to be used this way (I don't want to force this JSON-specific dependency onto users that want to use other serialization formats). So I have a couple questions: 1. is this actually a problem? I mean, by default it's supposed to compile the native targets to a
(not a linked binary) so why is this a problem? Shouldn't it be a problem on the consumer side when actually building a final binary? 2. if it is a problem, how can I solve it? I tried to add this dependency as
source set, but it doesn't seem to solve the warning I'm tempted to just disable the warning with
but I'd like to understand better if it's really a problem first.