Skip to content

Commit

Permalink
mobile/build: Pre-accept licenses for ndk install
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <[email protected]>
  • Loading branch information
phlax committed May 20, 2024
1 parent f235a21 commit 691a73d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/linux/ubuntu/fun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ mobile_install_android () {
mkdir -p sdk/cmdline-tools/latest
mv cmdline-tools/* sdk/cmdline-tools/latest
sdkmanager="${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager"
echo "y" | $sdkmanager --install "ndk;${ANDROID_NDK_VERSION}" | grep -v = || true
(yes || :) | $sdkmanager --licenses
# TODO(phlax): revert to using ANDROID_NDK_VERSION for non-beta
# $sdkmanager --install "ndk;${ANDROID_NDK_VERSION}"
$sdkmanager --install "ndk;27.0.11718014" | (grep -v = || :)
$sdkmanager --install "platforms;android-30" | grep -v = || true
$sdkmanager --install "build-tools;30.0.2" | grep -v = || true
}
Expand Down

0 comments on commit 691a73d

Please sign in to comment.