diff --git a/build.sh b/build.sh index 7946231..7385b59 100644 --- a/build.sh +++ b/build.sh @@ -3,5 +3,10 @@ #gomobile init -ndk ~/Library/Android/sdk/ndk-bundle/ #if you are using go 1.9.4 and ran into the issue related to #cgo CFLAGS: -fmodules #here is the workaround: export CGO_CFLAGS_ALLOW='-fmodules|-fblocks' +rm -rf output/* +mkdir output/ios/ +mkdir output/android/ +echo "Building for iOS..." gomobile bind -target=ios -o=output/ios/neoutils.framework github.com/o3labs/neo-utils/neoutils +echo "Building for Android..." ANDROID_HOME=/Users/apisit/Library/Android/sdk gomobile bind -target=android -o=output/android/neoutils.aar github.com/o3labs/neo-utils/neoutils