'How to use Swift library in Android native project
We have iOS and Android native applications. iOS team implemented the Onvif library in Swift (which also contains Objective-C libraries). We would like to integrate it into the native Android application.
We discovered possible solutions:
- Write the same code in Kotlin by ourselves
- KMM - if it's possible to share the Swift library
- Translate Swift into Kotlin using https://vinivendra.github.io/Gryphon/
- Gradle plugin for Swift https://github.com/readdle/swift-android-gradle
We prefer to use the original Swift library as all bugs would be fixed there.
What option do you suggest?
Thank you
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
