Skip to content

Commit 2bb276d

Browse files
committed
Exclude tasks in lockfile script
1 parent 02b42cf commit 2bb276d

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/android-audit.yml

-6
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,6 @@ jobs:
8181
- name: Fix git dir
8282
run: git config --global --add safe.directory $(pwd)
8383

84-
# Needed until we improve the build system.
85-
- name: Create dummy jni dir and relay list
86-
run: |
87-
mkdir -p android/app/build/extraJni android/app/build/extraAssets
88-
touch android/app/build/extraAssets/relays.json
89-
9084
- name: Re-generate lockfile
9185
run: android/scripts/update-lockfile.sh
9286

android/scripts/update-lockfile.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ GRADLE_TASKS=(
1919
"assembleAndroidTest"
2020
"lint"
2121
)
22+
EXCLUDED_GRADLE_TASKS=(
23+
"-xensureRelayListExist"
24+
"-xensureJniDirectoryExist"
25+
)
2226

2327
export GRADLE_OPTS
2428
export GRADLE_USER_HOME
@@ -43,6 +47,6 @@ echo "Generating new components..."
4347
# Using a loop here since providing all tasks at once result in gradle task dependency issues.
4448
for GRADLE_TASK in "${GRADLE_TASKS[@]}"; do
4549
echo "Gradle task: $GRADLE_TASK"
46-
../gradlew -q -p .. --project-cache-dir "$TEMP_GRADLE_PROJECT_CACHE_DIR" -M sha256 "$GRADLE_TASK"
50+
../gradlew -q -p .. --project-cache-dir "$TEMP_GRADLE_PROJECT_CACHE_DIR" -M sha256 "$GRADLE_TASK" "${EXCLUDED_GRADLE_TASKS[@]}"
4751
echo ""
4852
done

0 commit comments

Comments
 (0)