Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update to version 2.0.0 with versioned AAR filename
- Bump version from 1.9.0 to 2.0.0 due to significant build layer changes
- Configure AAR filename to include version: PdfiumAndroid-2.0.0-release.aar
- Update README with version 2.0.0 references and rationale
- Add libraryVariants configuration for versioned output filename
  • Loading branch information
visyan committed Jul 30, 2025
commit e78b5da4ba2795aea86fbe18046d66eddd0f3978
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ This repository is a fork of [meganz/PdfiumAndroid](https://github.com/meganz/Pd

This fork is updated to **SDK 35 / NDK 28** and delivers a working AAR compatible with **Android 15 (16KB page size support)**.

**Version 2.0.0** - Significant updates to the build layer and compatibility improvements warrant a major version bump from the original 1.9.0.

### Key Updates:
- **Android SDK 35** and **NDK 28** compatibility
- **Android Gradle Plugin 8.9.2** support
Expand Down Expand Up @@ -48,17 +50,17 @@ Remark: you might need to update the 'javaHome' environment variable in the `gra
# Build release AAR
./gradlew assembleRelease

# Output: build/outputs/aar/PdfiumAndroid-release.aar
# Output: build/outputs/aar/PdfiumAndroid-2.0.0-release.aar
```

## Using in Your Project

### Method 1: Local AAR
1. Copy `PdfiumAndroid-release.aar` to your app's `libs/` folder
1. Copy `PdfiumAndroid-2.0.0-release.aar` to your app's `libs/` folder
2. Add to your app's `build.gradle`:
```groovy
dependencies {
implementation files('libs/PdfiumAndroid-release.aar')
implementation files('libs/PdfiumAndroid-2.0.0-release.aar')
implementation 'androidx.core:core:1.16.0'
}
```
Expand All @@ -70,7 +72,7 @@ repositories {
}

dependencies {
implementation 'com.github.yourusername:your-repo-name:tag'
implementation 'com.github.yourusername:PdfiumAndroid:v2.0.0'
}
```

Expand Down
9 changes: 8 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ext {
siteUrl = 'https://github.com/barteksc/PdfiumAndroid'
gitUrl = 'https://github.com/barteksc/PdfiumAndroid.git'

libraryVersion = '1.9.0'
libraryVersion = '2.0.0'

developerId = 'barteksc'
developerName = 'Bartosz Schiller'
Expand Down Expand Up @@ -78,6 +78,13 @@ android {
}

ndkVersion '28.2.13676358'

// Configure AAR filename to include version
libraryVariants.all { variant ->
variant.outputs.all {
outputFileName = "PdfiumAndroid-${defaultConfig.versionName}-${variant.buildType.name}.aar"
}
}
}

repositories {
Expand Down