AntiFeatures:
  - KnownVuln
Categories:
  - Reading
License: AGPL-3.0-or-later
WebSite: https://mupdf.com
SourceCode: https://git.ghostscript.com/?p=mupdf-android-viewer-old.git;a=summary
IssueTracker: https://bugs.ghostscript.com
Changelog: https://git.ghostscript.com/?p=mupdf.git;a=blob_plain;f=CHANGES;hb=HEAD

AutoName: MuPDF
Summary: Lightweight document viewer
Description: |-
    Deprecated in favor of [[com.artifex.mupdf.viewer.app]].

    The last version has multiple vulnerabilities:

    * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-15587
    * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-14687
    * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-14686
    * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-14685

    MuPDF supports PDF 1.7 with transparency, encryption, hyperlinks, annotations,
    searching, form editing and more. It also reads OpenXPS and CBZ (comic book)
    documents.

RepoType: git
Repo: git://git.ghostscript.com/mupdf-android-viewer-old.git

Builds:
  - versionName: '1.2'
    versionCode: 2
    commit: '1.2'
    subdir: android
    submodules: true
    prebuild:
      - cd ..
      - make generate
      - cd android
    buildjni:
      - yes

  - versionName: 1.2-ARM
    versionCode: 50
    commit: 0516026e
    subdir: platform/android
    submodules: true
    forceversion: true
    prebuild:
      - sed -i 's/armeabi-v7a/armeabi armeabi-v7a/g' jni/Application.mk
      - cd ../..
      - make generate
    buildjni:
      - yes

  - versionName: 1.2-x86
    versionCode: 51
    commit: 0516026e
    subdir: platform/android
    submodules: true
    patch:
      - x86.patch
    forceversion: true
    forcevercode: true
    prebuild:
      - cd ../..
      - make generate
    buildjni:
      - yes

  - versionName: 1.2-MIPS
    versionCode: 52
    commit: 0516026e
    subdir: platform/android
    submodules: true
    patch:
      - mips.patch
    forceversion: true
    forcevercode: true
    prebuild:
      - cd ../..
      - make generate
    buildjni:
      - yes

  - versionName: '1.5'
    versionCode: 53
    commit: 1.5-ios-appstore
    subdir: platform/android
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i 's/armeabi-v7a/armeabi armeabi-v7a/g' jni/Application.mk
      - cd ../..
      - make generate
    scandelete:
      - build/debug/
    buildjni:
      - yes

  - versionName: '1.5'
    versionCode: 54
    commit: 1.5-ios-appstore
    subdir: platform/android
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i -e 's/armeabi-v7a/x86/g' -e 's/android-8/android-9/g' jni/Application.mk
      - cd ../..
      - make generate
    scandelete:
      - build/debug/
    buildjni:
      - yes

  - versionName: '1.5'
    versionCode: 55
    commit: 1.5-ios-appstore
    subdir: platform/android
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i -e 's/armeabi-v7a/mips/g' -e 's/android-8/android-9/g' jni/Application.mk
      - cd ../..
      - make generate
    scandelete:
      - build/debug/
    buildjni:
      - yes

  - versionName: '1.6'
    versionCode: 61
    commit: android-release-60
    subdir: platform/android
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i 's/armeabi-v7a/armeabi armeabi-v7a/g' jni/Application.mk
      - cd ../..
      - make generate
    scandelete:
      - build/debug/
    buildjni:
      - yes

  - versionName: '1.6'
    versionCode: 62
    commit: android-release-60
    subdir: platform/android
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i -e 's/armeabi-v7a/x86/g' -e 's/android-8/android-9/g' jni/Application.mk
      - cd ../..
      - make generate
    scandelete:
      - build/debug/
    buildjni:
      - yes

  - versionName: '1.6'
    versionCode: 63
    commit: android-release-60
    subdir: platform/android
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i -e 's/armeabi-v7a/mips/g' -e 's/android-8/android-9/g' jni/Application.mk
      - cd ../..
      - make generate
    scandelete:
      - build/debug/
    buildjni:
      - yes

  - versionName: '1.7'
    versionCode: 71
    commit: '1.7'
    subdir: platform/android
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i 's/armeabi-v7a/armeabi armeabi-v7a/g' jni/Application.mk
      - cd ../..
      - make generate
    scandelete:
      - build/debug/
    buildjni:
      - yes

  - versionName: '1.7'
    versionCode: 72
    commit: '1.7'
    subdir: platform/android
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i -e 's/armeabi-v7a/x86/g' -e 's/android-8/android-9/g' jni/Application.mk
      - cd ../..
      - make generate
    scandelete:
      - build/debug/
    buildjni:
      - yes

  - versionName: '1.7'
    versionCode: 73
    commit: '1.7'
    subdir: platform/android
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i -e 's/armeabi-v7a/mips/g' -e 's/android-8/android-9/g' jni/Application.mk
      - cd ../..
      - make generate
    scandelete:
      - build/debug/
    buildjni:
      - yes

  - versionName: 1.7a
    versionCode: 76
    commit: 1.7a
    subdir: platform/android
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i 's/armeabi-v7a/armeabi armeabi-v7a/g' jni/Application.mk
      - cd ../..
      - make generate
    scandelete:
      - build/debug/
    buildjni:
      - yes

  - versionName: 1.7a
    versionCode: 77
    commit: 1.7a
    subdir: platform/android
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i -e 's/armeabi-v7a/x86/g' -e 's/android-8/android-9/g' jni/Application.mk
      - cd ../..
      - make generate
    scandelete:
      - build/debug/
    buildjni:
      - yes

  - versionName: 1.7a
    versionCode: 78
    commit: 1.7a
    subdir: platform/android
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i -e 's/armeabi-v7a/mips/g' -e 's/android-8/android-9/g' jni/Application.mk
      - cd ../..
      - make generate
    scandelete:
      - build/debug/
    buildjni:
      - yes

  - versionName: '1.8'
    versionCode: 81
    commit: '1.8'
    subdir: platform/android
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i 's/armeabi-v7a/armeabi armeabi-v7a/g' jni/Application.mk
      - cd ../..
      - make generate
    scandelete:
      - build/debug/
      - thirdparty/curl/tests/data/test*
    buildjni:
      - yes

  - versionName: '1.8'
    versionCode: 82
    commit: '1.8'
    subdir: platform/android
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i -e 's/armeabi-v7a/x86/g' -e 's/android-8/android-9/g' jni/Application.mk
      - cd ../..
      - make generate
    scandelete:
      - build/debug/
      - thirdparty/curl/tests/data/test*
    buildjni:
      - yes

  - versionName: '1.8'
    versionCode: 83
    commit: '1.8'
    subdir: platform/android
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i -e 's/armeabi-v7a/mips/g' -e 's/android-8/android-9/g' jni/Application.mk
      - cd ../..
      - make generate
    scandelete:
      - build/debug/
      - thirdparty/curl/tests/data/test*
    buildjni:
      - yes

  - versionName: '1.9'
    versionCode: 91
    commit: 1.9a
    subdir: platform/android/viewer
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i 's/armeabi-v7a/armeabi armeabi-v7a/g' jni/Application.mk
      - cd ../../..
      - make generate
    scandelete:
      - build/release/
      - thirdparty/curl/tests/data/test*
    buildjni:
      - yes

  - versionName: '1.9'
    versionCode: 92
    commit: 1.9a
    subdir: platform/android/viewer
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i -e 's/armeabi-v7a/x86/g' -e 's/android-8/android-9/g' jni/Application.mk
      - cd ../../..
      - make generate
    scandelete:
      - build/release/
      - thirdparty/curl/tests/data/test*
    buildjni:
      - yes

  - versionName: '1.9'
    versionCode: 93
    commit: 1.9a
    subdir: platform/android/viewer
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i -e 's/armeabi-v7a/mips/g' -e 's/android-8/android-9/g' jni/Application.mk
      - cd ../../..
      - make generate
    scandelete:
      - build/release/
      - thirdparty/curl/tests/data/test*
    buildjni:
      - yes

  - versionName: '1.10'
    versionCode: 101
    commit: 1.10a
    subdir: platform/android/viewer
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i -e 's/armeabi-v7a/armeabi-v7a/g' -e 's/android-8/android-9/g' jni/Application.mk
      - cd ../../..
      - make generate
    scandelete:
      - build/release/
      - thirdparty/curl/tests/data/test*
    buildjni:
      - yes
    ndk: r11c

  - versionName: '1.10'
    versionCode: 102
    commit: 1.10a
    subdir: platform/android/viewer
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i -e 's/armeabi-v7a/x86/g' -e 's/android-8/android-9/g' jni/Application.mk
      - cd ../../..
      - make generate
    scandelete:
      - build/release/
      - thirdparty/curl/tests/data/test*
    buildjni:
      - yes
    ndk: r11c

  - versionName: '1.10'
    versionCode: 103
    commit: 1.10a
    subdir: platform/android/viewer
    submodules: true
    forceversion: true
    forcevercode: true
    prebuild:
      - sed -i -e 's/armeabi-v7a/mips/g' -e 's/android-8/android-9/g' jni/Application.mk
      - cd ../../..
      - make generate
    scandelete:
      - build/release/
      - thirdparty/curl/tests/data/test*
    buildjni:
      - yes
    ndk: r11c

  - versionName: '1.11'
    versionCode: 111
    commit: '1.11'
    submodules: true
    output: bin/MuPDF-release-unsigned.apk
    forceversion: true
    forcevercode: true
    rm:
      - libmupdf/thirdparty/curl/tests
    build: make release APP_ABI=armeabi-v7a
    ndk: r14b

  - versionName: '1.11'
    versionCode: 112
    commit: '1.11'
    submodules: true
    output: bin/MuPDF-release-unsigned.apk
    forceversion: true
    forcevercode: true
    rm:
      - libmupdf/thirdparty/curl/tests
    build: make release APP_ABI=x86
    ndk: r14b

  - versionName: '1.11'
    versionCode: 113
    commit: '1.11'
    submodules: true
    output: bin/MuPDF-release-unsigned.apk
    forceversion: true
    forcevercode: true
    rm:
      - libmupdf/thirdparty/curl/tests
    build: make release APP_ABI=mips
    ndk: r14b

MaintainerNotes: |-
    The version code "bears no resemblance to the version name", however it
    follows this pattern:
    * MINOR + "1" for armeabi-v7a
    * MINOR + "2" for x86
    * MINOR + "3" for mips
    E.g. MuPDF 1.11 for x86 has version code 112 ("11" + "2").

    Documents:
    * https://www.mupdf.com/docs/how-to-build-mupdf-for-android
    * https://mupdf.com/downloads/
    * https://twiki.ghostscript.com/do/view/MuPDF/AndroidReleases

    Split Android and iOS viewers into separate projects:
    * mupdf-viewer-ios.git has the iOS viewer.
    * mupdf-viewer-android-old.git has the Android viewer.
    * mupdf-viewer-android-nui.git has a new advanced Android viewer.
    * mupdf-viewer-android-mini.git has a new minimalist Android viewer.

ArchivePolicy: 0 versions
AutoUpdateMode: None
UpdateCheckMode: None
CurrentVersion: '1.11'
CurrentVersionCode: 113
