# clone cdk too
checkout:
  post:
    - git submodule sync
    - git submodule update --init --recursive

# fix gradlew not begin marked as executable
dependencies:
  override:
    - echo y | android update sdk --no-ui --all --filter tools,platform-tools,android-25,build-tools-25
    - echo y | android update sdk --no-ui --all --filter extra-android-m2repository,extra-google-m2repository,extra-android-support
    - chmod +x ./gradlew
    - ./gradlew dependencies

# clone cdk too
checkout:
  post:
    - git submodule sync
    - git submodule update --init --recursive

# fix gradlew not begin marked as executable
dependencies:
  override:
    - echo yy | android update sdk --no-ui --all --filter tools,platform-tools,android-25,build-tools-25
    - echo y | android update sdk --no-ui --all --filter extra-android-m2repository,extra-google-m2repository,extra-android-support
    - chmod +x ./gradlew
    - ./gradlew dependencies

Make CircleCI build accept build tools 25 license
Make CircleCI build accept build tools 25 license
