Hi, am I right in thinking that it is impossible t...
# kotlin-native
s
Hi, am I right in thinking that it is impossible to generate android native libraries and executables which utilise the kotlinx serialization library?
Copy code
> Could not resolve all files for configuration ':self-common:androidNativeArm32CompileKlibraries'.
   > Could not resolve org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.20.0-1.4-M2.
     Required by:
         project :self-common
      > Unable to find a matching variant of org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.20.0-1.4-M2:
          - Variant 'iosArm32-api' capability org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.20.0-1.4-M2:
              - Incompatible attribute:
                  - Required org.jetbrains.kotlin.native.target 'android_arm32' and found incompatible value 'ios_arm32'.
              - Other attributes:
                  - Found org.gradle.status 'release' but wasn't required.
                  - Required org.gradle.usage 'kotlin-api' and found compatible value 'kotlin-api'.
                  - Required org.jetbrains.kotlin.platform.type 'native' and found compatible value 'native'.
          - Variant 'iosArm32-iosArm32MetadataElements' capability org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.20.0-1.4-M2:
If this is is stated somewhere obvious apologies as I haven’t seen it.
s
I don’t think there is a technical limitation. If they’re not supplying the pre-built binary, it will require compiling it yourself. I’m not sure how to do that. Maybe within your own maven repository?
r
s
@Sam thanks, any pointers on where I can figure out how to do that?
@russhwolf are you suggesting that modifying this to add the targets is a good place to start?
r
I just mean that's where you can check if serialization currently supports the platform you want. You could try forking and adding it but I don't know what other work you'll need to do to get it to run.
👍 1