checkout:
  post:
    - git submodule sync
    - git submodule update --init

test:
  override:
    - ./gradlew clean verify

deployment:
  master:
    branch: master
    commands:
      - ./gradlew uploadArchives -PsonatypeUsername=$SONATYPE_NEXUS_SNAPSHOTS_USERNAME -PsonatypePassword=$SONATYPE_NEXUS_SNAPSHOTS_PASSWORD

checkout:
  post:
    - git submodule sync
    - git submodule update --init

dependencies:
  pre:
    - echo y | android update sdk --all --no-ui --force --filter "build-tools"

test:
  override:
    - ./gradlew clean verify

deployment:
  master:
    branch: master
    commands:
      - ./gradlew uploadArchives -PsonatypeUsername=$SONATYPE_NEXUS_SNAPSHOTS_USERNAME -PsonatypePassword=$SONATYPE_NEXUS_SNAPSHOTS_PASSWORD

Update Android build tools on Circle CI
Update Android build tools on Circle CI
