machine:
  environment:
    TOOLS_VERSION: 25.1.6
    BUILD_TOOLS_VERSION: 23.0.3
  java:
    version: oraclejdk8

dependencies:
  pre:
    - if ! $(grep -q "Revision="$TOOLS_VERSION $ANDROID_HOME/tools/source.properties); then echo y | android update sdk --no-ui --all --filter "tools"; fi
    - if [ ! -e $ANDROID_HOME/build-tools/$BUILD_TOOLS_VERSION ]; then echo y | android update sdk --no-ui --all --filter "build-tools-"$BUILD_TOOLS_VERSION; fi
    - echo y | android update sdk --no-ui --all --filter extra-android-m2repository
  cache_directories:
    - /usr/local/android-sdk-linux/tools
    - /usr/local/android-sdk-linux/build-tools/$BUILD_TOOLS_VERSION


test:
  override:
    - ./gradlew assembleDebug

machine:
  environment:
    TARGET_SDK_VERSION: 24
    TOOLS_VERSION: 25.1.7
    BUILD_TOOLS_VERSION: 24.0.0
  java:
    version: oraclejdk8

dependencies:
  pre:
    - if ! $(grep -q "Revision="$TOOLS_VERSION $ANDROID_HOME/tools/source.properties); then echo y | android update sdk --no-ui --all --filter "tools"; fi
    - if [ ! -e $ANDROID_HOME/build-tools/$BUILD_TOOLS_VERSION ]; then echo y | android update sdk --no-ui --all --filter "build-tools-"$BUILD_TOOLS_VERSION; fi
    - echo y | android update sdk --no-ui --all --filter "extra-android-m2repository,android-"$TARGET_SDK_VERSION
  cache_directories:
    - /usr/local/android-sdk-linux/tools
    - /usr/local/android-sdk-linux/build-tools/$BUILD_TOOLS_VERSION


test:
  override:
    - ./gradlew assembleDebug

Update CircleCI config for Android N support.
Update CircleCI config for Android N support.
