Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Commit

Permalink
#37: fix for adb
Browse files Browse the repository at this point in the history
  • Loading branch information
commjoen committed Sep 8, 2018
1 parent 6a4f86c commit a6f360b
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions Android/tasks/install-homebrew-items.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,10 @@
command: "brew cask install android-studio"
when: studio_installed.rc != 0

- name: check if adb is installed
command: "which adb"
register: adb_installed
ignore_errors: yes

- name: install android studio Tools
command: "brew caskinstall android-platform-tools"
when: adb_installed.rc != 0

- name: Add path variables
command: "echo 'export ANDROID_HOME=/Users/$USER/Library/Android/sdk' >> ~/.bash_profile ; echo 'export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools' >> ~/.bash_profile"
when: studio_installed.rc != 0

- name: check if Java is installed
command: "which java"
register: java_installed
Expand Down

0 comments on commit a6f360b

Please sign in to comment.