我们正在考虑使用 Swift 而不是 C/C++ 为 iOS 和 Android 编写一个库。
我发现了一些关于 Android 上的 Swift 的讨论:
最佳答案
在 MillerTechnologies,我们目前正在致力于此。看看那些 repo 协议(protocol)。
https://github.com/MillerTechnologyPeru/swift-android
https://github.com/PureSwift/Android
我们的项目基于这个 repo
https://github.com/SwiftJava/swift-android-kotlin
但首先你需要配置工具链
关于android - 现在可以为 Android 编写 Swift 库吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44018261/