Skip to content

Commit

Permalink
Added android installation script and instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
donnemartin committed Jul 27, 2015
1 parent d5e1804 commit 59cac70
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 12 deletions.
23 changes: 15 additions & 8 deletions .dots
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ function runDots() {

echo ""
echo "------------------------------"
echo "Step 1/8: Syncing the dev-setup repo to your local machine."
echo "Step 1/9: Syncing the dev-setup repo to your local machine."
echo "------------------------------"
echo ""
cd ~ && curl -#L https://github.com/donnemartin/dev-setup/tarball/master | tar -xzv --strip-components 1 --exclude={README.md,LICENSE}

# Run the osxprep.sh Script
echo ""
echo "------------------------------"
echo "Step 2/8: Updating OSX and installing Xcode command line tools"
echo "Step 2/9: Updating OSX and installing Xcode command line tools"
echo "------------------------------"
echo ""
./osxprep.sh
Expand All @@ -27,7 +27,7 @@ function runDots() {
# commented brew.sh source file directly and tweak it to suit your needs.
echo ""
echo "------------------------------"
echo "Step 3/8: Installing Homebrew along with some common formulae and apps."
echo "Step 3/9: Installing Homebrew along with some common formulae and apps."
echo "This might awhile to complete, as some formulae need to be installed from source."
echo "------------------------------"
echo ""
Expand All @@ -41,39 +41,46 @@ function runDots() {
# the SSD section.
echo ""
echo "------------------------------"
echo "Step 4/8: Setting sensible OSX defaults."
echo "Step 4/9: Setting sensible OSX defaults."
echo "------------------------------"
echo ""
./osx.sh

# Run the pydata.sh Script
echo "------------------------------"
echo "Step 5/8: Setting up Python data development environment."
echo "Step 5/9: Setting up Python data development environment."
echo "------------------------------"
echo ""
./pydata.sh

# Run the aws.sh Script
echo "------------------------------"
echo "Step 6/8: Setting up AWS development environment."
echo "Step 6/9: Setting up AWS development environment."
echo "------------------------------"
echo ""
./aws.sh

# Run the datastores.sh Script
echo "------------------------------"
echo "Step 7/8: Setting up data stores."
echo "Step 7/9: Setting up data stores."
echo "------------------------------"
echo ""
./datastores.sh

# Run the webdev.sh Script
echo "------------------------------"
echo "Step 8/8: Setting up JavaScript web development environment."
echo "Step 8/9: Setting up JavaScript web development environment."
echo "------------------------------"
echo ""
#./webdev.sh # coming soon

# Run the android.sh Script
echo "------------------------------"
echo "Step 9/9: Setting up Android development environment."
echo "------------------------------"
echo ""
./android.sh

echo "------------------------------"
echo "Completed running .dots, restart your computer for all updates to take effect"
echo "------------------------------"
Expand Down
59 changes: 55 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Setting up a new developer machine can be an **ad-hoc, manual, and time-consumin
* **Cloud services**: Amazon Web Services (Boto, AWS CLI, S3cmd, etc) and Heroku
* **Common data stores**: MySQL, MongoDB, Redis, and Elasticsearch
* **Javascript web development**: Node.js, JSHint, and Less
* **Android development**: Java, Android SDK, Android Studio, IntelliJ IDEA

### Sections Summary
* Section 1 contains the dotfiles/scripts and instructions to set up your system.
Expand Down Expand Up @@ -54,6 +55,8 @@ Individual steps executed by [Single Script Setup](#single-script-setup):
* Sets up common data stores
* [Step 8: Run the webdev.sh script](#step-8-run-the-webdevsh-script)
* [Coming Soon] Sets up JavaScript web development
* [Step 9: Run the android.sh script](#step-9-run-the-androidsh-script)
* Sets up Android development

## Section 2: General Apps and Tools

Expand Down Expand Up @@ -116,7 +119,14 @@ Individual steps executed by [Single Script Setup](#single-script-setup):
* [JSHint](#jshint)
* [Less](#less)

## Section 7: Misc
## Section 7: Android Development

* [Java](#java)
* [Android SDK](#android-sdk)
* [Android Studio](#android-studio)
* [IntelliJ IDEA](#intellij-idea)

## Section 8: Misc

* [Contributions](#contributions)
* [Credits](#credits)
Expand Down Expand Up @@ -369,7 +379,18 @@ To set up common data stores, run the following script from your local dev-setup

$ ./webdev.sh # coming soon

[Section 6: JavaScript Web Development](#section-6-javascript-web-development) describes the installed packages and usage.
### Step 9: Run the android.sh script

<p align="center">
<img src="https://raw.githubusercontent.com/donnemartin/dev-setup-resources/master/res/android.png">
<br/>
</p>

To set up an Android development environment, run the following script from your local dev-setup directory after synchronizing with the dev-setup repo through [Step 1: Run the bootstrap.sh script](#step-2-run-the-bootstrapsh-script):

$ ./android.sh

[Section 7: Android Development](#section-7-android-development) describes the installed packages and usage.

## Section 2: General Apps and Tools

Expand Down Expand Up @@ -1673,7 +1694,7 @@ Follow additional instructions on the [JSHint Package Manager page](https://subl

CSS preprocessors are becoming quite popular, the most popular processors are [LESS](http://lesscss.org/) and [SASS](http://sass-lang.com). Preprocessing is a lot like compiling code for CSS. It allows you to reuse CSS in many different ways. Let's start out with using LESS as a basic preprocessor, it's used by a lot of popular CSS frameworks like [Bootstrap](http://getbootstrap.com/).

#### Install
#### Installation

To install LESS you have to use NPM / Node, which you installed earlier using Homebrew. In the terminal use:

Expand Down Expand Up @@ -1703,7 +1724,37 @@ The two options are the "input" and "output" files for the compiler. The command

Read more about LESS on their page here: http://lesscss.org/

## Section 7: Misc
## Section 7: Android Development

***This section is under development.***

### Java

#### Installation

The section [Step 9: Run the android.sh script](#step-9-run-the-androidsh-script) installs Java.

If you prefer to install it separately, you can download the JDK [here](http://www.oracle.com/technetwork/java/javase/downloads/index.html).

### Android SDK

The section [Step 9: Run the android.sh script](#step-9-run-the-androidsh-script) installs the Android SDK.

If you prefer to install it separately, you can download it [here](https://developer.android.com/sdk/index.html).

### Android Studio

The section [Step 9: Run the android.sh script](#step-9-run-the-androidsh-script) installs Android Studio.

If you prefer to install it separately, you can download it [here](https://developer.android.com/sdk/index.html).

### IntelliJ IDEA

The section [Step 9: Run the android.sh script](#step-9-run-the-androidsh-script) installs Java.

If you prefer to install it separately, you can download it [here](https://www.jetbrains.com/idea/download/).

## Section 8: Misc

### Contributions

Expand Down
31 changes: 31 additions & 0 deletions android.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash

# Install command-line tools using Homebrew.

# Ask for the administrator password upfront.
sudo -v

# Keep-alive: update existing `sudo` time stamp until the script has finished.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &

# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi

# Make sure we’re using the latest Homebrew.
brew update

# Install Cask
brew install caskroom/cask/brew-cask

brew cask install --appdir="~/Applications" java
brew cask install --appdir="~/Applications" intellij-idea-ce
brew cask install --appdir="~/Applications" android-studio

brew install android-sdk

# Remove outdated versions from the cellar.
brew cleanup

0 comments on commit 59cac70

Please sign in to comment.