From cb8fed51225e8aaf14c8707d4b4f26200d03c3ea Mon Sep 17 00:00:00 2001 From: Heitor Neiva Date: Thu, 28 Oct 2021 16:16:52 -0700 Subject: [PATCH 1/2] Update Mac instructions for mobile auto setup --- procedures/mobile_automation_setup.rst | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/procedures/mobile_automation_setup.rst b/procedures/mobile_automation_setup.rst index 3c9cb4ee..fb91780a 100644 --- a/procedures/mobile_automation_setup.rst +++ b/procedures/mobile_automation_setup.rst @@ -239,27 +239,33 @@ specific gradle versions and are in charge of installing it locally. 1. Install jdk8:: # On mac with homebrew - brew install --cask homebrew/cask-versions/adoptopenjdk8 + brew install openjdk@8 - # On Ubuntu + # On Ubuntu sudo apt install openjdk-8-jdk ⚠️ Currently projects like Focus and Fenix need Java 11 to run, so you might need to install that version and set your $JAVA_HOME to that version. 2. Install android-sdk:: - # On mac with homebrew - brew install --cask android-sdk - # On Ubuntu sudo apt install android-sdk + On mac the only supported way is to install `Android Studio `__ (also recommended for other OSs) + Once installed, click **More Actions** and open the **SDK Manager**. + Make note of the **Android SDK Location** from this screen. + From the **SDK Tools** tab, install ``Android SDK Command-line Tools``. + + 3. Make sure you're pointing to the right java (depending on what version gradle requires):: # In your .zshrc or .bashrc: # On mac export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)" + # If java_home doesn't work, you can use this to get java home instead: + java -XshowSettings:properties -version 2>&1 | grep java.home + # On Ubuntu follow symlinks to find JAVA_HOME ls -l `which java` export JAVA_HOME= @@ -274,7 +280,7 @@ specific gradle versions and are in charge of installing it locally. # In your .zshrc or .bashrc: # On mac - export ANDROID_SDK_ROOT=/usr/local/Caskroom/android-sdk/4333796 + export ANDROID_SDK_ROOT=~/Library/Android/sdk # On Ubuntu export ANDROID_SDK_ROOT=/usr/lib/android-sdk From 2e57973a87170c1279c2f381cf5411bd62a20c70 Mon Sep 17 00:00:00 2001 From: Heitor Neiva Date: Thu, 13 Oct 2022 10:06:31 -0700 Subject: [PATCH 2/2] PR nits on mobile automation --- procedures/mobile_automation_setup.rst | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/procedures/mobile_automation_setup.rst b/procedures/mobile_automation_setup.rst index fb91780a..e3506b4c 100644 --- a/procedures/mobile_automation_setup.rst +++ b/procedures/mobile_automation_setup.rst @@ -241,7 +241,7 @@ specific gradle versions and are in charge of installing it locally. # On mac with homebrew brew install openjdk@8 - # On Ubuntu + # On Ubuntu sudo apt install openjdk-8-jdk ⚠️ Currently projects like Focus and Fenix need Java 11 to run, so you might need to install that version and set your $JAVA_HOME to that version. @@ -261,10 +261,7 @@ specific gradle versions and are in charge of installing it locally. # In your .zshrc or .bashrc: # On mac - export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)" - - # If java_home doesn't work, you can use this to get java home instead: - java -XshowSettings:properties -version 2>&1 | grep java.home + export JAVA_HOME="$(java -XshowSettings:properties -version 2>&1 | grep java.home | sed 's/.* //')" # On Ubuntu follow symlinks to find JAVA_HOME ls -l `which java`