Is it possible to output a framework and an androi...
# kotlin-native
k
Is it possible to output a framework and an android SO from the same kotlin/native module? Im trying to add a library artifact (to be used for android) and a framework for ios, but it always seems to try and generate a framework for my android target. Sample build.gradle here
m
.so is
dynamic
,
library
is .klib
k
Same question with dynamic
Thanks, it seems to try and generate an Android artifact for a framework when Android is in the list of targets. So I guess my question is how to associate an artifact entry with a specific target. I didn't see anything in the konanartifact dsl that allowed that
i
In the current DSL you cannot set targets for artifacts separately but I think we can add such an option in 0.6. As a workaround you may just disable the wrong tasks after the
konanArtifacts
block:
Copy code
compileKonanTestAndroid_arm32.enabled = false
compileKonanTestSOIphone.enabled = false
compileKonanTestSOIphone_sim.enabled = false
👍 1
I've created an issue to track this feature: https://youtrack.jetbrains.com/issue/KT-22023
k
Cool, thanks!