Categories:
  - Science & Education
License: Apache-2.0
SourceCode: https://github.com/physphil/UnitConverterUltimate
IssueTracker: https://github.com/physphil/UnitConverterUltimate/issues

AutoName: Unit Converter Ultimate
Description: |-
    A simple and easy-to-use unit converter to handle any conversion you'll ever
    need.

    The beautiful Material Design user interface allows for quick and easy
    conversions from a number in one unit to another. The goal is to keep it simple
    - you won't be overwhelmed with an excess of options and settings, allowing you
    to perform your desired conversion as quickly as possible. Perfect for work,
    school or in the kitchen.

RepoType: git
Repo: https://github.com/physphil/UnitConverterUltimate

Builds:
  - versionName: '4.2'
    versionCode: 40200
    commit: v4.2
    subdir: app
    gradle:
      - yes
    rm:
      - app/src/main/java/com/physphil/android/unitconverterultimate/DonateActivity.java
      - app/src/main/java/com/physphil/android/unitconverterultimate/ui/DonationListAdapter.java
    prebuild:
      - perl -0 -p -i -e 's|<Preference\s[^<]*<intent\s[^<]*\.DonateActivity".*?</Preference>\s*||s'
        app/src/main/res/xml/preferences.xml
      - perl -0 -p -i -e 's|<activity\s[^<]*"\.DonateActivity".*?/>\s*||s' app/src/main/AndroidManifest.xml

  - versionName: '5.0'
    versionCode: 50000
    disable: firebase
    commit: v5.0
    subdir: app
    gradle:
      - yes
    rm:
      - app/src/main/java/com/physphil/android/unitconverterultimate/DonateActivity.java
      - app/src/main/java/com/physphil/android/unitconverterultimate/ui/DonationListAdapter.java
    prebuild:
      - perl -0 -p -i -e 's|<Preference\s[^<]*<intent\s[^<]*\.DonateActivity".*?</Preference>\s*||s'
        app/src/main/res/xml/preferences.xml
      - perl -0 -p -i -e 's|<activity\s[^<]*"\.DonateActivity".*?/>\s*||s' app/src/main/AndroidManifest.xml

  - versionName: 5.0.1
    versionCode: 50001
    disable: firebase
    commit: v5.0
    subdir: app
    gradle:
      - yes
    rm:
      - app/src/main/java/com/physphil/android/unitconverterultimate/DonateActivity.java
      - app/src/main/java/com/physphil/android/unitconverterultimate/ui/DonationListAdapter.java
    prebuild:
      - perl -0 -p -i -e 's|<Preference\s[^<]*<intent\s[^<]*\.DonateActivity".*?</Preference>\s*||s'
        app/src/main/res/xml/preferences.xml
      - perl -0 -p -i -e 's|<activity\s[^<]*"\.DonateActivity".*?/>\s*||s' app/src/main/AndroidManifest.xml

  - versionName: '5.1'
    versionCode: 50100
    commit: v5.1
    subdir: app
    gradle:
      - base
    prebuild:
      - perl -0 -p -i -e 's|<Preference\s[^<]*<intent\s[^<]*\.DonateActivity".*?</Preference>\s*||s'
        app/src/main/res/xml/preferences.xml
      - perl -0 -p -i -e 's|<activity\s[^<]*"\.DonateActivity".*?/>\s*||s' app/src/main/AndroidManifest.xml
      - sed -i -e '/gms/d' -e 's/\(repositories {\)/\1 jcenter()/' ../build.gradle
      - sed -i -e '/firebase/d' build.gradle

  - versionName: '5.2'
    versionCode: 50200
    commit: v5.2
    subdir: app
    gradle:
      - base
    prebuild:
      - perl -0 -p -i -e 's|<Preference\s[^<]*<intent\s[^<]*\.DonateActivity".*?</Preference>\s*||s'
        app/src/main/res/xml/preferences.xml
      - perl -0 -p -i -e 's|<activity\s[^<]*"\.DonateActivity".*?/>\s*||s' app/src/main/AndroidManifest.xml
      - sed -i -e '/gms/d' -e 's/\(repositories {\)/\1 jcenter()/' ../build.gradle
      - sed -i -e '/firebase/d' build.gradle

  - versionName: 5.3.1
    versionCode: 50301
    commit: v5.3.1
    subdir: app
    gradle:
      - base
    prebuild:
      - perl -0 -p -i -e 's|<Preference\s[^<]*<intent\s[^<]*\.DonateActivity".*?</Preference>\s*||s'
        app/src/main/res/xml/preferences.xml
      - perl -0 -p -i -e 's|<activity\s[^<]*"\.DonateActivity".*?/>\s*||s' app/src/main/AndroidManifest.xml
      - sed -i -e '/gms/d' -e 's/\(repositories {\)/\1 jcenter()/' ../build.gradle
      - sed -i -e '/firebase/d' build.gradle

  - versionName: 5.3.3
    versionCode: 50303
    commit: v5.3.3
    subdir: app
    gradle:
      - base
    prebuild:
      - perl -0 -p -i -e 's|<Preference\s[^<]*<intent\s[^<]*\.DonateActivity".*?</Preference>\s*||s'
        app/src/main/res/xml/preferences.xml
      - perl -0 -p -i -e 's|<activity\s[^<]*"\.DonateActivity".*?/>\s*||s' app/src/main/AndroidManifest.xml
      - sed -i -e '/gms/d' -e 's/\(repositories {\)/\1 jcenter()/' ../build.gradle
      - sed -i -e '/firebase/d' build.gradle

  - versionName: '5.4'
    versionCode: 50401
    commit: v5.4.1
    subdir: app
    gradle:
      - base
    prebuild:
      - perl -0 -p -i -e 's|<Preference\s[^<]*<intent\s[^<]*\.DonateActivity".*?</Preference>\s*||s'
        app/src/main/res/xml/preferences.xml
      - perl -0 -p -i -e 's|<activity\s[^<]*"\.DonateActivity".*?/>\s*||s' app/src/main/AndroidManifest.xml
      - sed -i -e '/gms/d' -e 's/\(repositories {\)/\1 jcenter()/' ../build.gradle
      - sed -i -e '/firebase/d' build.gradle

  - versionName: '5.5'
    versionCode: 50500
    commit: v5.5
    subdir: app
    gradle:
      - base
    prebuild:
      - perl -0 -p -i -e 's|<Preference\s[^<]*<intent\s[^<]*\.DonateActivity".*?</Preference>\s*||s'
        app/src/main/res/xml/preferences.xml
      - perl -0 -p -i -e 's|<activity\s[^<]*"\.DonateActivity".*?/>\s*||s' app/src/main/AndroidManifest.xml
      - sed -i -e '/gms/d' -e 's/\(repositories {\)/\1 jcenter()/' ../build.gradle
      - sed -i -e '/firebase/d' build.gradle

  - versionName: '5.5'
    versionCode: 50501
    disable: "Unexpected version/version code in output; APK: '5.5' / '50500',  Expected:\
        \ '5.5' / '50501'"
    commit: v5.5
    subdir: app
    gradle:
      - base
    prebuild:
      - perl -0 -p -i -e 's|<Preference\s[^<]*<intent\s[^<]*\.DonateActivity".*?</Preference>\s*||s'
        app/src/main/res/xml/preferences.xml
      - perl -0 -p -i -e 's|<activity\s[^<]*"\.DonateActivity".*?/>\s*||s' app/src/main/AndroidManifest.xml
      - sed -i -e '/gms/d' -e 's/\(repositories {\)/\1 jcenter()/' ../build.gradle
      - sed -i -e '/firebase/d' build.gradle

AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: '5.5'
CurrentVersionCode: 50501
