Skip to content

Commit

Permalink
Update System Requirements
Browse files Browse the repository at this point in the history
Update System Requirements according to latest Android reqs.
  • Loading branch information
rosen-vladimirov committed Sep 16, 2015
1 parent 0a474e0 commit 8aec37b
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 21 deletions.
16 changes: 12 additions & 4 deletions setup/ns-cli-setup/ns-setup-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ On Linux systems, you can use the NativeScript CLI to develop only Android apps.
* JDK 8 or a later stable official release
* Android SDK 22 or a later stable official release
* Gradle 2.3 or a later stable official release
* Android Support Repository 21.0.0
* Android Support Repository
* Android SDK Build-tools 22.0.0 or a later stable official release
* ANDROID_HOME environment variable must be set
* (Optional) Genymotion to expand your testing options

## Setup
Expand All @@ -49,7 +51,7 @@ On Linux systems, you can use the NativeScript CLI to develop only Android apps.
sudo apt-get install oracle-java8-installer
```
1. After installation if you have multiple installations of java you can choose which to use:

```Shell
sudo update-alternatives --config java
```
Expand Down Expand Up @@ -83,13 +85,19 @@ On Linux systems, you can use the NativeScript CLI to develop only Android apps.
```Shell
sudo android update sdk --filter tools,platform-tools,android-22,android-17,build-tools-22.0.1,sys-img-x86-android-22,extra-android-m2repository,extra-google-m2repository,extra-android-support --all --no-ui
```
1. Set ANDROID_HOME system environment variable
```
export ANDROID_HOME=Path to Android installation directory
```
For example: ANDROID_HOME=/android/sdk/
> NOTE: The home directory is the one that contains `tools` and `platform-tools` directories.
1. (Optional) Install Genymotion.<br/>Genymotion is a third-party native emulator.
1. Go to [Download VirtualBox](https://www.virtualbox.org/wiki/Downloads) and download and install VirtualBox for Linux.
1. Go to [Get Genymotion](https://www.genymotion.com/#!/download), select Linux and click the download link for Ubuntu.
1. After the download completes, run the installer and complete the installation.
1. Install the NativeScript CLI.
1. Run the following command.
1. Run the following command.

```Shell
sudo npm install nativescript -g --unsafe-perm
```
Expand Down
36 changes: 24 additions & 12 deletions setup/ns-cli-setup/ns-setup-os-x.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,17 @@ On OS X systems, you can use the NativeScript CLI to develop Android and iOS app
* Command-line tools for Xcode
* For Android development
* JDK 8 or a later stable official release
* Apache Ant 1.8 or later
* Android SDK 19 or later
* Android SDK 22 or a later stable official release
* Gradle 2.3 or a later stable official release
* Android Support Repository
* Android SDK Build-tools 22.0.0 or a later stable official release
* ANDROID_HOME environment variable must be set
* (Optional) Genymotion to expand your testing options

## Setup

1. Install [Homebrew](http://brew.sh) to simplify the installation process.

```Shell
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```
Expand All @@ -48,19 +51,18 @@ On OS X systems, you can use the NativeScript CLI to develop Android and iOS app
1. Go to [Java SE Downloads](http://www.oracle.com/technetwork/java/javase/downloads/index.html) and click **Download** for JDK.
1. In the **Java SE Development Kit** section, accept the license agreement and click the download link for Mac OS X.
1. Wait for the download to complete and install the JDK.
1. Install [Apache Ant 1.8](http://ant.apache.org/bindownload.cgi) or a later stable official release.
1. In the terminal, run the following command.
1. Install [Gradle 2.3](https://docs.gradle.org/current/userguide/installation.html) or a later stable official release.
1. Run the following commands.

```Shell
brew install ant
brew install gradle
```
1. If not present, add the following file path to the `PATH` system environment variable.

```
Path to the bin directory in the Apache Ant installation folder
Path to the bin directory in the Gradle installation folder
```

For example: Run the following command `export PATH=${PATH}:/ant/apache-ant-1.9.4/bin`
For example: `PATH=...:...:/usr/tools/gradle-2.3/bin`
1. Install the [Android SDK](http://developer.android.com/sdk/index.html).
1. In the terminal, run the following command.

Expand All @@ -80,7 +82,17 @@ On OS X systems, you can use the NativeScript CLI to develop Android and iOS app
```
android update sdk
```
1. Select all packages for the Android 19 SDK and any other SDKs that you want to install and click **Install**.
1. Select all packages for the Android 22 SDK, Android SDK Build-tools 22.0.0 or later, Android Support Repository (under Extras) and any other SDKs that you want to install and click **Install**.
You can use the following command, that will install all required tools:
```
android update sdk --filter tools,platform-tools,android-22,android-17,build-tools-22.0.1,sys-img-x86-android-22,extra-android-m2repository,extra-google-m2repository,extra-android-support --all --no-ui
```
1. Set ANDROID_HOME system environment variable
```
export ANDROID_HOME=Path to Android installation directory
```
For example: ANDROID_HOME=/usr/local/Cellar/android-sdk/24/
> NOTE: The home directory is the one that contains `tools` and `platform-tools` directories.
1. (Optional) Install Genymotion.<br/>Genymotion is a third-party native emulator.
1. Go to [Download VirtualBox](https://www.virtualbox.org/wiki/Downloads) and download and install VirtualBox for OS X.
1. Go to [Get Genymotion](https://www.genymotion.com/#!/download), select Mac and click **Get Genymotion**.
Expand All @@ -94,8 +106,8 @@ On OS X systems, you can use the NativeScript CLI to develop Android and iOS app

For example: Run the following command `export PATH=$PATH:/Applications/Genymotion\ Shell.app/Contents/MacOS/:/Applications/Genymotion.app/Contents/MacOS/`
1. Install the NativeScript CLI.
1. Run the following command.
1. Run the following command.

```Shell
npm i -g nativescript
```
Expand Down
10 changes: 5 additions & 5 deletions setup/ns-cli-setup/ns-setup-win.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ On Windows systems, you can use the NativeScript CLI to develop only Android app
* JDK 8 or a later stable official release
* Android SDK 22 or a later stable official release
* Gradle 2.3 or a later stable official release
* Android Support Repository 21.0.0
* Android Support Repository
* (Optional) Genymotion to expand your testing options

## Setup
Expand All @@ -37,8 +37,8 @@ On Windows systems, you can use the NativeScript CLI to develop only Android app
```
1. Restart the command prompt.
1. Install [JDK 8](http://www.oracle.com/technetwork/java/javase/downloads/index.html) or a later stable official release.
1. In the command prompt, run the following command.
1. In the command prompt, run the following command.

```Shell
choco install jdk8
```
Expand Down Expand Up @@ -82,8 +82,8 @@ On Windows systems, you can use the NativeScript CLI to develop only Android app
1. If prompted, confirm the download.
1. After the download completes, run the installer and complete the installation.
1. Install the NativeScript CLI.
1. Run the following command.
1. Run the following command.

```Shell
npm i -g nativescript
```
Expand Down

0 comments on commit 8aec37b

Please sign in to comment.