From 9f363c7bd35b51851b77dedfb52a46a47ed1307a Mon Sep 17 00:00:00 2001 From: Apisit Toompakdee Date: Tue, 20 Feb 2018 11:46:26 +0900 Subject: [PATCH] Create README.md --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..661f767 --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +# neo-utils +Useful functions for NEO blockchain written in Go. + +This library can be fully compiled to native iOS and Android framework using `gomobile bind` + +note: `gomobile` does not support slice parameter yet so some functions are optimized to take a comma separated string as a param instead of a array of string. + +### Installation +`go get github.com/o3labs/neo-utils/neoutils` + + +## Compile this library to native mobile frameworks. + +### Install gomobile +`go get golang.org/x/mobile/cmd/gomobile` +`gomobile init` + + +### Compile to iOS framework +XCode is required. +`gomobile bind -target=ios -o=output/ios/neoutils.framework github.com/o3labs/neo-utils/neoutils` + +### Compile to Android framework +Android NDK is required. https://developer.android.com/ndk/guides/index.html +`gomobile init -ndk ~/Library/Android/sdk/ndk-bundle/` +`ANDROID_HOME=/Users/apisit/Library/Android/sdk gomobile bind -target=android -o=output/android/neoutils.aar github.com/o3labs/neo-utils/neoutils`