Closed mNizhurin closed 5 years ago
That is the limitation of x/mobile/bind. Not ideal, but is it not possible to write a wrapper library for go-ipfs including APIs meaningful for mobile applications and using the supported types as listed in https://godoc.org/golang.org/x/mobile/cmd/gobind#hdr-Type_restrictions?
@hyangah, so you say this must be done on the side of go-ipfs?
@mNizhurin that's one way. Another way is that the mobile app developer who wants to use the go library writes a small wrapper containing only needed types and interfaces, and bind the wrapper.
Seems like there isn't anything left to do on the x/mobile/bind
side, so closing.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go get github.com/ipfs/go-ipfs/cmd/ipfs go get -d github.com/ipfs/go-ipfs/cmd/ipfs/... gomobile bind -target=ios github.com/ipfs/go-ipfs/core
What did you expect to see?
Framework with .h file containing interface for classes, constructors and methods to work with ipfs.
What did you see instead?
As you can see, all methods and properties are skipped because of unsupported type:
CoreIpfsNode.h: