Trying to use lib compiled with 1.3.50 as dependen...
# kotlin-native
k
Trying to use lib compiled with 1.3.50 as dependency in project with 1.3.70-dev. It failed with : w: skipping .... htf-lib-a.klib. The abi versions don't match. Expected '[18]', found '14' w: The compiler versions don't match either. Expected '[]', found '1.3.50-release-11850' e: Could not find .... khtf-lib-a.klib" in [....] Does it mean that using older compiled libs is not possible?
k
Yes. You need to create new klib’s for each major kotlin version. 1.3.40 will work with 1.3.41, but not 1.3.50
k
Is there a way to publish klib for selected older version? E.g. is now it is 1.3.50, publish also version for 1.3.41. As part of publish task.
And if I'm using some library, that is not yet published to new version, I'll have to build it and publish to local repo myself? Sounds bad 🙂
k
Question 1, I’ve never tried publishing 2 versions from the same code base. It would be a lot easier to maintain a branch with the older version, but I guess it depends what you’re doing.
Question 2, yes. Currently doing that for eap-2. It’s not fun, but native is moving pretty fast. Swift v5.1 just got abi stability, so it’ll probably be a while if we want to set expectations. Most major libraries have updates pretty quickly.
k
thx!