Page MenuHomePhabricator

D5656.id18504.diff
No OneTemporary

D5656.id18504.diff

diff --git a/scripts/source_development_defaults.sh b/scripts/source_development_defaults.sh
--- a/scripts/source_development_defaults.sh
+++ b/scripts/source_development_defaults.sh
@@ -2,14 +2,18 @@
if [[ "$OSTYPE" == 'linux'* ]]; then
export MYSQL_UNIX_PORT=${XDG_RUNTIME_DIR:-/run/user/$UID}/mysql.sock
- export ANDROID_SDK_ROOT=${ANDROID_SDK_ROOT:-$HOME/Android/Sdk}
+ export ANDROID_HOME=${ANDROID_HOME:-$HOME/Android/Sdk}
fi
if [[ "$OSTYPE" == 'darwin'* ]]; then
MARIADB_DIR=${XDG_DATA_HOME:-$HOME/.local/share}/MariaDB
export MYSQL_UNIX_PORT="$MARIADB_DIR"/mysql.sock
- export ANDROID_SDK_ROOT=${ANDROID_SDK_ROOT:-$HOME/Library/Android/sdk}
+ export ANDROID_HOME=${ANDROID_HOME:-$HOME/Library/Android/sdk}
fi
-export PATH=$PATH:$ANDROID_SDK_ROOT/emulator:$ANDROID_SDK_ROOT/tools
-export PATH=$PATH:$ANDROID_SDK_ROOT/tools/bin:$ANDROID_SDK_ROOT/platform-tools
+export PATH=$PATH:$ANDROID_HOME/emulator:$ANDROID_HOME/tools
+export PATH=$PATH:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools
+
+# ANDROID_SDK_ROOT is the deprecated, but it's still used by some tooling
+# such as sdkmanager. ANDROID_HOME is the new prefered env var.
+export ANDROID_SDK_ROOT=${ANDROID_SDK_ROOT:-$ANDROID_HOME}

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 24, 8:57 AM (16 h, 26 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2699325
Default Alt Text
D5656.id18504.diff (1 KB)

Event Timeline