如何将 Google 的 libphonenumber 库导入 KMP common”
How to import Google's libphonenumber library into KMP common"
我想导入 [libphonenumber] into the 'common' part of a KMP project, but Kotlin can't import it. I see the library added twice to the external libraries after I added the maven url。但是,Kotlin 中的导入无法解析库,所以我无法使用库 类。我错过了什么?
libphonenumber 不是 Kotlin 多平台库。它似乎支持许多平台,因此您可以为 Kotlin 编写库包装器。
我发表了关于编写平台包装器库的演讲:https://vimeo.com/371460823
如果本机的目标是 C++,您可能需要编写一些 C 包装器。仅供参考。
我想导入 [libphonenumber] into the 'common' part of a KMP project, but Kotlin can't import it. I see the library added twice to the external libraries after I added the maven url。但是,Kotlin 中的导入无法解析库,所以我无法使用库 类。我错过了什么?
libphonenumber 不是 Kotlin 多平台库。它似乎支持许多平台,因此您可以为 Kotlin 编写库包装器。
我发表了关于编写平台包装器库的演讲:https://vimeo.com/371460823
如果本机的目标是 C++,您可能需要编写一些 C 包装器。仅供参考。