version: 2.1
executors:
  default-executor:
    docker:
      - image: circleci/android:api-30-ndk
    resource_class: large

    environment:
      _JAVA_OPTIONS: "-Xmx1500m -XX:+UnlockExperimentalVMOptions -XX:+UseContainerSupport -XX:ParallelGCThreads=2 -XX:ConcGCThreads=2 -XX:ParallelGCThreads=2 -Djava.util.concurrent.ForkJoinPool.common.parallelism=2"
      TERM: 'dumb'

jobs:
  snapshot:
    executor: default-executor
    steps:
      - run:
          name: install retry
          command: scripts/install-retry.sh
      - run:
          name: build and deploy
          command: |
            yes | sdkmanager "platforms;android-27" || true
            /tmp/retry -m 3 ./gradlew :android:assembleRelease
            /tmp/retry -m 3 scripts/publish-android-snapshot.sh
workflows:
  version: 2
  build-and-deploy:
    jobs:
      - snapshot:
          filters:
            branches:
              only: main

version: 2.1
executors:
  default-executor:
    docker:
      - image: circleci/android:api-30-ndk
    resource_class: large

    environment:
      _JAVA_OPTIONS: "-Xmx1500m -XX:+UnlockExperimentalVMOptions -XX:+UseContainerSupport -XX:ParallelGCThreads=2 -XX:ConcGCThreads=2 -XX:ParallelGCThreads=2 -Djava.util.concurrent.ForkJoinPool.common.parallelism=2"
      TERM: 'dumb'

jobs:
  snapshot:
    executor: default-executor
    steps:
      - checkout
      - run:
          name: install retry
          command: scripts/install-retry.sh
      - run:
          name: build and deploy
          command: |
            yes | sdkmanager "platforms;android-27" || true
            /tmp/retry -m 3 ./gradlew :android:assembleRelease
            /tmp/retry -m 3 scripts/publish-android-snapshot.sh
workflows:
  version: 2
  build-and-deploy:
    jobs:
      - snapshot:
          filters:
            branches:
              only: main

Revert D34818577: Remove checkout step
Revert D34818577: Remove checkout step

Differential Revision:
D34818577 (https://github.com/facebook/flipper/commit/16ab0b7148b76b11ff4bb3b4952ea98e68cc2878)

Original commit changeset: 1f34ab1d1830

Original Phabricator Diff: D34818577 (https://github.com/facebook/flipper/commit/16ab0b7148b76b11ff4bb3b4952ea98e68cc2878)

fbshipit-source-id: b21c3692e63c309b9ff4a5afcea1260b37d3ff31
