From 8d0a10f8ca92de4766aee8d41f3e235590c3a848 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Mon, 29 Jul 2019 18:49:52 +0200 Subject: update shapeshifter lib build script using gomobile --- go/android_build_shapeshifter_lib.sh | 18 ++++++++++++++++++ go/lib/shapeshifter-sources.jar | Bin 0 -> 6294 bytes go/lib/shapeshifter.aar | Bin 0 -> 8464902 bytes 3 files changed, 18 insertions(+) create mode 100755 go/android_build_shapeshifter_lib.sh create mode 100644 go/lib/shapeshifter-sources.jar create mode 100644 go/lib/shapeshifter.aar (limited to 'go') diff --git a/go/android_build_shapeshifter_lib.sh b/go/android_build_shapeshifter_lib.sh new file mode 100755 index 00000000..e3cd22d2 --- /dev/null +++ b/go/android_build_shapeshifter_lib.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +export GOPATH=`pwd` +export GO_LANG=`pwd`/golang/go/bin +export GO_COMPILED=`pwd`/bin +PATH="${GO_LANG}:${GO_COMPILED}:${PATH}" + +if [ -z $ANDROID_NDK_HOME ]; then + echo "Android NDK path not specified!" + echo "Please set \$ANDROID_NDK_HOME before starting this script!" + exit 1; +fi + +./golang/go/bin/go get golang.org/x/mobile/cmd/gomobile + +gomobile init +gomobile bind -target=android -o ./lib/shapeshifter.aar se.leap.bitmaskclient/shapeshifter/ +cp lib/shapeshifter* ../shapeshifter/. \ No newline at end of file diff --git a/go/lib/shapeshifter-sources.jar b/go/lib/shapeshifter-sources.jar new file mode 100644 index 00000000..e0a94055 Binary files /dev/null and b/go/lib/shapeshifter-sources.jar differ diff --git a/go/lib/shapeshifter.aar b/go/lib/shapeshifter.aar new file mode 100644 index 00000000..6b8acaf1 Binary files /dev/null and b/go/lib/shapeshifter.aar differ -- cgit v1.2.3