Skip to content

Releases: BlueCodeSystems/AndroidPdfViewer

AndroidPdfViewer 2.0.0

06 Sep 15:04

Choose a tag to compare

AndroidPdfViewer 2.0.0

A major release modernizing the build, publishing pipeline, and dependency coordinates.

Breaking Changes

  • Migrate from deprecated maven/uploadArchives to maven-publish with signing and Sonatype staging (nexus-staging). Publishing tasks and properties changed.
  • Raise minSdk to 28 for both library and sample to align with modern Android dependencies/tooling.

Improvements

  • Gradle 8.7 and Android Gradle Plugin 8.6.0.
  • Target modern toolchain: compileSdk 35, targetSdk 35, Build Tools 35.0.0.
  • Central bundle support: local bundle repository, checksum generation (SHA-256/512), and zip task for manual Maven Central uploads.
  • Composite build substitution to develop against a local Pdfium fork if present.

Fixes

  • Remove deprecated package attribute from library and sample AndroidManifest files (AGP 8+ expects namespace in Gradle).

Dependency Updates

  • Pdfium now resolves to com.github.BlueCodeSystems:PdfiumAndroid:v2.0.0 by default via gradle.properties (can be overridden per build).

CI/Build

  • JitPack uses JDK 17, installs required Android SDK/NDK, publishes to local Maven during build, and standardizes JitPack group as com.github.<owner>.

Installation

  • Maven Central (preferred):

    implementation 'io.github.bluecodesystems:AndroidPdfViewer:2.0.0'
  • JitPack (alternative):

    repositories { maven { url 'https://jitpack.io' } }
    implementation 'com.github.BlueCodeSystems:AndroidPdfViewer:2.0.0'

Publishing (for maintainers)

  • Local Central bundle zip (manual portal upload):

    ./gradlew -PcentralBundle=true -PuseGpgCmd=true \
      :android-pdf-viewer:publishMavenPublicationToCentralBundleRepository \
      :android-pdf-viewer:generateCentralBundleChecksums \
      :android-pdf-viewer:zipCentralBundle
  • Sonatype (staging → release):

    export ORG_GRADLE_PROJECT_sonatypeUsername='TOKEN_USER'
    export ORG_GRADLE_PROJECT_sonatypePassword='TOKEN_PASS'
    ./gradlew :android-pdf-viewer:publish -PuseGpgCmd=true -PcentralRelease=true
    ./gradlew closeAndReleaseRepository