Open sebastianst opened 4 years ago
First step would be to automatically generate the bindings, i created a Dockerfile with Android SDK+NDK, go and go-mobile. It is also currently building the bindings as example.
Still have to figure out how to get it all together.
Somehow the unit tests do not run when linked with the prnm.aar
file.
https://github.com/golang/go/issues/35403 mentions this, not sure if i can fix it.
PS: Only the pure Java tests seem to be affected. Instrumentation tests on the Android Emulator work.
We should write a Go test (
TestClient
) for theprnm
package:First we need to setup a CI config
Then the test itself
(alice|bob).json
in directorytestdata
using Go's native JSON unmarshaling, or as fixed vars of type*Config
).ganache-cli
withos.Exec
and a fixed mnemonic (-m
).os.Exec
until the test blockchain is setupclient/happy_test.go
)AddPeer
)Close()
d.happy_test.go
.