Skip to content

Commit

Permalink
build: add get-ndk-version.sh script
Browse files Browse the repository at this point in the history
This can be used for convenience rather than having to manually search
through build.gradle.kts.
  • Loading branch information
Oppzippy committed Nov 7, 2024
1 parent 8010846 commit 3dd88f5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions android/scripts/get-ndk-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail

script_path="$(readlink -f -- "$0")"
script_dir="$(dirname -- "$script_path")"
build_script_path="$script_dir/../app/build.gradle.kts"

awk -F '"' '/ndkVersion = / { print $2 }' "$build_script_path"

0 comments on commit 3dd88f5

Please sign in to comment.