This repository has been archived by the owner on Jan 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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` |