This is a wrapper over zboxcore package of gosdk, This can be used to perform zbox(storage) related operations on the chain.
Since this is written in Go, It's pretty easy and fast to use it directly with the mobile applications.
Mobile Builds (iOS and Android)
gosdk can be build to use on Mobile platforms iOS and Android using gomobile.
Xcode Command Line Tools is required to build SDK for iOS.
Android studio with NDK is required to build SDK for Android
Run below command for the first time to setup gomobile environment
make setup-gomobile
Use below commands in the root folder of the repo to build Mobile SDK
For iOS and Android:
make build-mobilesdk IOS=1 ANDROID=1
For iOS only:
make build-mobilesdk IOS=1
For Android only:
make build-mobilesdk ANDROID=1
For Mac only:
make build-mobilesdk MAC=1
For any updates in code, before compiling run:
go generate sh -c "sed -e /@REMOVE@/d -e s/@DATE@/`date +%Y%m%d`/ version.go > version_generated.go"
Notes
For iOS: If you are already using the SDK and getting the older version after updating, then you need to manually remove the SDK from the location where is was already placed (Most probably it will be Project Folder > SDK > zboxmobile.framework).
Build with local gosdk: - change GOSDK_PATH in Makefile, - enable replace in go.mod
This repo includes already compiled bls-go-binary. If you want to update it - refference to bls-go-binary github repo