Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

Commit

Permalink
updated build bash
Browse files Browse the repository at this point in the history
  • Loading branch information
apisit committed Feb 20, 2018
1 parent 67a91b9 commit 3ec4b5d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3ec4b5d

Please sign in to comment.