TrustWalletCore/WalletCore pod in Kotlin Multiplatform - almost no classes #2494
igemonster
started this conversation in
Ideas & Feature request
Replies: 1 comment
-
Inspired from: https://github.com/KodeinKoders/playground-SwiftLib-in-KMMLib#points-of-interest |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
Only a Crypto class is available from cocoapods.WalletCore in Kotlin (and CryptoMeta which doesn't look too different).
To Reproduce
In a Kotlin Multiplatform Mobile project for iOS and Android, try to access TrustWalletCore cocoapod from Kotlin:
the Podfile is
This successfully enables import
cocoapods.WalletCore.*
in shared/iosMain (see screenshot). Without the abovecocoapods {...}
the import is unavailable. So far so good.Expected behavior
Many classes available for import in Kotlin: WalletCore classes like
HDWallet
,EthereumSigningInput
,AnySigner
etc.Screenshots
![image](https://user-images.githubusercontent.com/3066560/184134123-0a01f30f-d495-490e-80d1-c6e8c317093a.png)
Additional context
I can see/use these library classes in Swift, in Xcode via
pod TrustWalletCore
(andimport WalletCore
).By the looks of it, the available Crypto class is generated from the Pod/library by commonizer in
0_WalletCore.knm
(about 15expect
functions in total - a couple here for illustration):Crypto has mnemonic-related functionality, as well as
signHash/verifySignature
but not much else.Beta Was this translation helpful? Give feedback.
All reactions