Skip to content

Commit

Permalink
[Android/Kotlin]: Export BOOST_ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshiotomakan committed Oct 10, 2023
1 parent 4250ae1 commit dab61d4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions tools/android-build
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ set -e
source $(dirname $0)/library
version=$(wc_read_version)

if [[ `uname` == "Darwin" ]]; then
export BOOST_ROOT=$(brew --prefix boost)
fi

pushd android
./gradlew assembleRelease
cp wallet-core/build/outputs/aar/wallet-core-release.aar ../build/wallet-core.aar
Expand Down
4 changes: 4 additions & 0 deletions tools/android-release
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ set -e
source $(dirname $0)/library
version=$(wc_read_version)

if [[ `uname` == "Darwin" ]]; then
export BOOST_ROOT=$(brew --prefix boost)
fi

echo "Building $version"

export ANDROID_HOME="$HOME/Library/Android/sdk"
Expand Down
4 changes: 4 additions & 0 deletions tools/android-test
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ ANDROID_CMDTOOLS=$(find_android_cmdline_tools)
AVD_NAME="integration-tests"
PORT=5556

if [[ `uname` == "Darwin" ]]; then
export BOOST_ROOT=$(brew --prefix boost)
fi

# Make sure it builds before starting an emulator
pushd android
./gradlew assembleAndroidTest
Expand Down
4 changes: 2 additions & 2 deletions tools/install-kotlin-dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ source "$(dirname $0)/android-sdk"

ANDROID_CMDTOOLS=$(find_android_cmdline_tools)

"$ANDROID_CMDTOOLS/sdkmanager --verbose "cmake;3.22.1" "ndk;25.2.9519653"
yes | "ANDROID_CMDTOOLS/sdkmanager --licenses
$ANDROID_CMDTOOLS/sdkmanager --verbose "cmake;3.22.1" "ndk;25.2.9519653"
yes | $ANDROID_CMDTOOLS/sdkmanager --licenses

0 comments on commit dab61d4

Please sign in to comment.