Skip to content

Commit

Permalink
fix android build dir (#291)
Browse files Browse the repository at this point in the history
* fix android build dir

* update readme
  • Loading branch information
blagoev committed Mar 10, 2022
1 parent ef3fdde commit a38a346
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -349,6 +349,11 @@ The Realm Dart package is `realm_dart`
./scripts/build-macos.sh
```

* Linux
```
./scripts/build-linux.sh
```

## Building Realm Dart

* Windows
Expand Down
10 changes: 10 additions & 0 deletions scripts/build-android.sh
Expand Up @@ -8,12 +8,22 @@ set -o pipefail
# Output is in PROJECT_DIR/binary directory
# example usage: ../realm-dart$./scripts/build-android.sh all

if [ -z ${ANDROID_HOME} ]; then
echo "Environment variable ANDROID_HOME not set.";
exit 64 # Exit code 64 indicates a usage error.
fi

if [ -z ${ANDROID_NDK} ]; then
echo "Environment variable ANDROID_NDK not set.";
exit 64 # Exit code 64 indicates a usage error.
fi

# Start in the root directory of the project.
cd "$(dirname "$0")/.."
PROJECT_ROOT=$(pwd)

mkdir -p build-android
pushd build-android

# build for x86 first to optimize for emulator testing

Expand Down

0 comments on commit a38a346

Please sign in to comment.