-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish for all kotlin platforms #5
Comments
Is there any eta on this? |
We've just started to work in this way, stay tuned. We are going to publish iOS and JS platforms within this month and add a transaction signing process into the library |
Do you mean all native platforms? iOS is already targeted from what I see. |
I mean only iOS for now, because of the our needs, we will use web3swift for transaction signing. Can you tell a bit more about your usecase? |
Making a web3 app in compose ui. Which is now supporting js and native if you compile it yourself, it probably is going to be released soon (js,ios/macOS at least). Would be nice to have a web3 library which supports all platforms. |
Do you need to sign transactions/transfer/write smart contract methods in your app? |
Still figuring web3 out and learning as I go... so I don't fully understand all my requirements yet haha. But, I will need to be able to both mint and purchase nfts essentially |
So yes, you need this functionality. It's hard to implement in Kotlin since there are cryptographic functions being used for signing. So we decided to use native frameworks for these cases, but it may be problematic to find a framework for every single platform. |
It's not problem to do it with JS/iOS/jvm and that's our goals for now. Rewriting the entire signing process to Kotlin Multiplatform will help us to release the library to every platform, but as I meantioned above it's not so easy. |
I understand. JS/iOS/jvm would be great for my needs for now 👍. A native mac target would be cool too if web3swift supports it. Thanks for the quick response |
Any reason why you guys are using the OkHttp engine for ktor? Just swapping that for the CIO engine seems to get it working for JVM. If I submitted that as a pull request would you consider it? (That or using different engines for jvm and android?) |
@Alex009 I think the comment above is up to you |
@luca992 OkHttp work on jvm too. |
@Alex009 cio is the only option which support both Android and jvm according to the docs. https://ktor.io/docs/http-client-engines.html#jvm-android Plus, I tried using okhttp and confirmed it did not work on jvm. I could always make a pull request with okhttp for Android and maybe apache for jvm? Or whatever engine you prefer for jvm |
You do something wrong. Okhttp is jvm library an we already use it in jvm https://github.com/icerockdev/binance-futures-kotlin-api/blob/master/src/main/kotlin/dev/icerock/binance/futures/FuturesApi.kt |
Huh, I guess you're right. I just rebuilt with OkHttp and I'm not getting the runtime error I was getting before. I think there was an issue with the ktor version I was using in the app and the older version being used in moko-web3. I updated my fork of moko-web3 to use ktor 2.0.0-beta which is what I'm also using in my app and now everything seems to be playing nice. Sorry for the confusion, ktor's documentation isn't very clear. Disregard this issue. |
our dependencies support all platforms and we not use expect/actual - it's time to publish for all platforms
The text was updated successfully, but these errors were encountered: