https://kotlinlang.org logo
Title
m

Marek Niedbach

05/02/2022, 9:15 AM
Hi there 👋 Is it possible that Apple’s
CryptoKit
will be available in the future as a platform library in the kotlin native ios? Currently there is only
CoreCrypto
available which doesn’t have the features I need…
t

Tijl

05/02/2022, 10:29 AM
CryptoKit is Swift only AFAIK, there is no direct Kotlin/Native and Swift interop at the moment. You can use it indirectly by creating your own wrapper.
m

Marek Niedbach

05/02/2022, 10:44 AM
It is how I did, I’ve just wondering if it is going to change. It is now hidden by interface and injected from the Swift code, but this way it can’t be easily extracted to the separated gradle module. I’m not sure if it is swift-only, as the Apple has the separated swift library called Swift Crypto 🤔 Anyway, thanks for confirmation, I’ll stay with my approach 👍
t

Tijl

05/02/2022, 10:53 AM
swift-crypto is the open source version of a subset CryptoKit afaik.
👍 1