Closed gtmickey closed 4 months ago
Currently the SDK functions rely on wasm-bindgen, so it requires Wasm. You have a couple options:
You can run Wasm code in Android and iOS, for example by using WebView.
Many Android / iOS apps internally use JS / Wasm, this is a common practice.
I have try use wasm on android, but there are an error: webview cannot load fetch local assets due to secure reason, so .wasm file cannot be load, could you please provide some test code or link to guide me how to do that?
@gtmickey Have you tried enabling appcache?
I had try above solution but still error with URL scheme "file" is not supported.
, looks like need to find another way to do it.
Unfortunately I'm not familiar with Android apps. I did find these things, which might help:
https://developer.android.com/develop/ui/views/layout/webapps/load-local-content
https://github.com/react-native-webview/react-native-webview/issues/746#issuecomment-812812275
🚀 Feature
I would like to ask of there are some pure rust codes can provide functions like dir sdk/wasm , so I can use them to build android so and ios .framework, and then call from dart lang
Motivation
So that I can use flutter_rust_bridge to call rust api to do new privatekey->viewKey->address, and sign message, transfer credits
Implementation
now I can do it with some functions, like privatekey's api,
but can not transfer, because, inside transfer function, there are wasm_bindgen::JsValue call ex:
that make impossible to use with flutter_rust_bridge