Skip to content

Commit

Permalink
Fix gradle tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-mullvad committed Jun 17, 2024
1 parent a227b28 commit 7b9058e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/scripts/update-lockfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -eu
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR"

GRADLE_TASKS="assemble compileDebugUnitTestKotlin assembleAndroidTest lint"
GRADLE_TASKS=("assemble" "compileDebugUnitTestKotlin" "assembleAndroidTest" "lint")

TEMP_GRADLE_HOME_DIR=$(mktemp -d)
TEMP_GRADLE_PROJECT_CACHE_DIR=$(mktemp -d)
Expand All @@ -24,4 +24,4 @@ echo "Removing old components..."
sed -i '/<components>/,/<\/components>/d' ../gradle/verification-metadata.xml

echo "Generating new components..."
../gradlew -q -p .. -g "$TEMP_GRADLE_HOME_DIR" --project-cache-dir "$TEMP_GRADLE_PROJECT_CACHE_DIR" -M sha256 "$GRADLE_TASKS"
../gradlew -q -p .. -g "$TEMP_GRADLE_HOME_DIR" --project-cache-dir "$TEMP_GRADLE_PROJECT_CACHE_DIR" -M sha256 "${GRADLE_TASKS[@]}"

0 comments on commit 7b9058e

Please sign in to comment.