Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3523299
D5656.id18504.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D5656.id18504.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D5656: [Nix] Default value of ANDROID_HOME
Attached
Detach File
Event Timeline
Log In to Comment