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 <ryan@synca.io>
  • Loading branch information
phlax committed May 20, 2024
1 parent f235a21 commit a0111e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docker/linux/ubuntu/fun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,12 @@ 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
echo "INSTALLING NDK ..." >&2
# $sdkmanager --install "ndk;${ANDROID_NDK_VERSION}"
$sdkmanager --install "ndk;27.0.11718014"
# | grep -v = || true
echo "INSTALLED NDK" >&2
$sdkmanager --install "platforms;android-30" | grep -v = || true
$sdkmanager --install "build-tools;30.0.2" | grep -v = || true
}
Expand Down

0 comments on commit a0111e8

Please sign in to comment.