Skip to content

Commit

Permalink
Build only release APK in automated build scripts
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 316396224
  • Loading branch information
YoungSeok Yoon authored and copybara-github committed Jun 15, 2020
1 parent a50d453 commit 40e3ac5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lite/tools/build_android_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ function build_android_example {
# Check if the directory contains a gradle wrapper.
if [[ -x "$1/gradlew" ]]; then
# Run the "build" task with the gradle wrapper.
./gradlew clean build --stacktrace
./gradlew clean assembleRelease --stacktrace
elif [[ -x "$1/finish/gradlew" ]]; then
# Accommodate codelab directory
./finish/gradlew clean build --stacktrace
./finish/gradlew clean assembleRelease --stacktrace
else
echo "ERROR: Gradle wrapper could not be found under ${RELATIVE_DIR}."
exit 1
Expand Down Expand Up @@ -92,6 +92,6 @@ function build_smartreply_aar {
echo
}

build_android_example "$1"
time build_android_example "$1"

build_smartreply_aar "$1"
time build_smartreply_aar "$1"

0 comments on commit 40e3ac5

Please sign in to comment.