-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaned up remaining types for android bindings. Added bindings build…
… script
- Loading branch information
Showing
3 changed files
with
23 additions
and
7 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
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
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,16 @@ | ||
#!/bin/bash | ||
# Build android bindings | ||
# Require to have created env variables: | ||
# export ANDROID_HOME=~/Android/Sdk/ | ||
# export ANDROID_NDK_HOME=~/Android/Sdk/ndk/21.0.6113669/ | ||
# (this is default path where Android Studio is installing the SDK and NDK) | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
|
||
OUTDIR="${DIR}/../dist/bindings/android" | ||
# List of packages to include in the generated bindings. (ie: keys is not needed) | ||
INCLUDE_GO_PACKAGES="" | ||
|
||
mkdir -p "${OUTDIR}" 2>/dev/null | ||
|
||
gomobile bind -v -target android -o "${OUTDIR}/e4.aar" ${DIR}/../ ${DIR}/../crypto |