# vim: filetype=yaml sw=2
filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
version: 61.0.13
git_hash: 8faa8313bcec03775ddaa194438391c4731eb840 # v61.0.13
git_url: https://github.com/mozilla/application-services

var:
  container:
    use_container: 1
  # This should be updated when the list of gradle dependencies is changed.
  gradle_dependencies_version: 2
  # This should be updated when the list of rust dependencies is changed.
  rust_vendor_version: 1
  # For armv7 we need a different target than the default one we use for
  # GeckoView. We set this variable so the Rust project in the `input_files`
  # below can set the correct target when built for use in this project,
  # querying `origin_project`.
  application_services: 1
  # Switch to make it easier to grab all dependencies during a dry-run.
  fetch_gradle_dependencies: 0

input_files:
  - project: container-image
  - project: '[% c("var/compiler") %]'
    name: '[% c("var/compiler") %]'
  # We need the torbrowser-* targets for Rust, see: #40094.
  - project: fenix-rust
    name: rust-armv7
    target_prepend:
      - torbrowser-android-armv7
  - project: fenix-rust
    name: rust-aarch64
    target_prepend:
      - torbrowser-android-aarch64
  - project: fenix-rust
    name: rust-x86
    target_prepend:
      - torbrowser-android-x86
  - project: fenix-rust
    name: rust-x86_64
    target_prepend:
      - torbrowser-android-x86_64
  - project: nss
    name: nss-armv7
    target_prepend:
      - android-armv7
  - project: nss
    name: nss-aarch64
    target_prepend:
      - android-aarch64
  - project: nss
    name: nss-x86
    target_prepend:
      - android-x86
  - project: nss
    name: nss-x86_64
    target_prepend:
      - android-x86_64
  - project: sqlcipher
    name: sqlcipher-armv7
    target_prepend:
      - android-armv7
  - project: sqlcipher
    name: sqlcipher-aarch64
    target_prepend:
      - android-aarch64
  - project: sqlcipher
    name: sqlcipher-x86
    target_prepend:
      - android-x86
  - project: sqlcipher
    name: sqlcipher-x86_64
    target_prepend:
      - android-x86_64
  - name: python
    project: python
    enable: '[% !c("var/fetch_gradle_dependencies") %]'
  - filename: 'gradle-dependencies-[% c("var/gradle_dependencies_version") %]'
    name: gradle-dependencies
    exec: '[% INCLUDE "fetch-gradle-dependencies" %]'
    enable: '[% !c("var/fetch_gradle_dependencies") %]'
  - URL: https://people.torproject.org/~gk/mirrors/sources/glean-parser-[% c('var/glean_parser') %].tar.bz2
    sha256sum: 69234aa1ae38fd5dda4de71bd5e536795073703c3ed5bb994b9b8485bd7a55dc
    enable: '[% !c("var/fetch_gradle_dependencies") %]'
  # `cargo vendor vendor` in the `application-services` directory has vendored
  # the sources.
  - URL: https://people.torproject.org/~gk/mirrors/sources/application-services-vendor-[% c('var/rust_vendor_version') %].tar.bz2
    sha256sum: fd90572db453b5d83bc7dbb50b09d75c5019f09ee747054fdc12f42605d9da69
  - filename: no-git.patch
  - filename: mavenLocal.patch
    enable: '[% !c("var/fetch_gradle_dependencies") %]'
  - filename: target.patch
  - filename: 1651660.patch
  - filename: 1651662.patch
