mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-15 04:07:03 +05:30
fix(scripts): migrate away from deprecated ANDROID_SDK_ROOT
This commit is contained in:
parent
f816580886
commit
a23ad82b60
1 changed files with 4 additions and 4 deletions
|
@ -5,8 +5,8 @@
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
[ -n "${ANDROID_SDK_ROOT:-}" ] || {
|
[ -n "${ANDROID_HOME:-}" ] || {
|
||||||
echo "ANDROID_SDK_ROOT must be set to use this script"
|
echo "ANDROID_HOME must be set to use this script"
|
||||||
exit
|
exit
|
||||||
1
|
1
|
||||||
}
|
}
|
||||||
|
@ -16,14 +16,14 @@ API_LEVEL="${ANDROID_API_LEVEL:-30}"
|
||||||
|
|
||||||
sdkmanager "system-images;android-${API_LEVEL};google_apis;x86_64"
|
sdkmanager "system-images;android-${API_LEVEL};google_apis;x86_64"
|
||||||
|
|
||||||
echo no | "${ANDROID_SDK_ROOT}"/cmdline-tools/latest/bin/avdmanager create avd \
|
echo no | "${ANDROID_HOME}"/cmdline-tools/latest/bin/avdmanager create avd \
|
||||||
--force \
|
--force \
|
||||||
-n "Pixel_XL_API_${API_LEVEL}" \
|
-n "Pixel_XL_API_${API_LEVEL}" \
|
||||||
--abi 'google_apis/x86_64' \
|
--abi 'google_apis/x86_64' \
|
||||||
--package "system-images;android-${API_LEVEL};google_apis;x86_64" \
|
--package "system-images;android-${API_LEVEL};google_apis;x86_64" \
|
||||||
--device 'pixel_xl'
|
--device 'pixel_xl'
|
||||||
|
|
||||||
"${ANDROID_SDK_ROOT}"/emulator/emulator \
|
"${ANDROID_HOME}"/emulator/emulator \
|
||||||
-avd "Pixel_XL_API_${API_LEVEL}" \
|
-avd "Pixel_XL_API_${API_LEVEL}" \
|
||||||
-no-window \
|
-no-window \
|
||||||
-noaudio \
|
-noaudio \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue