anchor.diff:          openjdk-8-jdk \
           openssh-client \
           pkg-config \
  +        ruby-full \
           software-properties-common \
  -        ruby-full \
           unzip \
  +        vim-tiny \
           wget \
           zip \
           zlib1g-dev > /dev/null && \
  
positive.code:     "http://dl.google.com/android/repository/android-ndk-r${ANDROID_NDK_VERSION}-linux-x86_64.zip" && \
      mkdir --parents "$ANDROID_NDK_HOME" && \
      unzip -q android-ndk.zip -d "$ANDROID_NDK" && \
      rm --force android-ndk.zip && \
  # Install SDKs
  # Please keep these in descending order!
  # The `yes` is for accepting all non-standard tool licenses.
      mkdir --parents "$HOME/.android/" && \
      echo '### User Sources for Android SDK Manager' > \
          "$HOME/.android/repositories.cfg" && \
      yes | "$ANDROID_HOME"/tools/bin/sdkmanager --licenses > /dev/null && \
      echo "Installing platforms" && \
      yes | "$ANDROID_HOME"/tools/bin/sdkmanager \
          "platforms;android-29" \
          "platforms;android-28" \
  
negative.code:         "build-tools;20.0.0" \
          "build-tools;19.1.0" \
          "build-tools;18.1.1" \
          "build-tools;17.0.0" > /dev/null
  
  RUN echo "Installing extras repos" && \
      yes | "$ANDROID_HOME"/tools/bin/sdkmanager \
          "extras;android;m2repository" \
          "extras;google;m2repository" > /dev/null
  
  RUN echo "Installing play services " && \
      yes | "$ANDROID_HOME"/tools/bin/sdkmanager \
          "extras;google;google_play_services" \
          "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2" \
          "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.1" > /dev/null
  
  RUN echo "Installing Google APIs" && \
      yes | "$ANDROID_HOME"/tools/bin/sdkmanager \
          "add-ons;addon-google_apis-google-24" \
          "add-ons;addon-google_apis-google-23" \
  