Home | History | Annotate | Download | only in install_maven_dependencies
      1 #!/bin/sh
      2 # This script installs the necessary Android dependencies to compile Glide and run
      3 # the test suite.
      4 # 
      5 # Pre-requisites: 
      6 # Using the android sdk tool, under Android 4.4.2 (API 19), install:
      7 #   SDK Platform
      8 #   Glass Development Kit Preview
      9 # Also using the android sdk tool, under Android 4.4.0 (API 14), install:
     10 #   SDK Platform
     11 
     12 git clone https://github.com/mosabua/maven-android-sdk-deployer.git
     13 cd maven-android-sdk-deployer 
     14 mvn clean install -N && cd platforms && mvn clean install -N && cd android-19 && mvn clean install || {
     15   echo 'Failed to install 4.4 SDK, install relevant packages in android SDK first';
     16   exit 1; 
     17 }
     18 cd ../..
     19 mvn clean install -N && cd platforms && mvn clean install -N && cd android-14 && mvn clean install || {
     20   echo 'Failed to install 4.0 SDK, install relevant packages in android SDK first';
     21   exit 1;
     22 }
     23 cd ../..
     24 mvn clean install -N && cd extras && mvn clean install -N && cd compatibility-v4 && mvn clean install || {
     25   echo 'Failed to install android-support-v4, install support library in android SDK first';
     26   exit 1;
     27 }
     28 cd ../../..
     29 rm -rf maven-android-sdk-deployer
     30