PSPDFKit 6.6 Migration Guide
This article provides a set of guidelines for migrating from PSPDFKit 6.5 for Android to PSPDFKit 6.6 for Android.
Dependency and Build System Updates
With PSPDFKit 6.6, we updated various build properties and versions.
The Android Gradle plugin used to build PSPDFKit was updated to version
4.1.1. All sample applications now use Android Gradle plugin
org.jetbrains.kotlin:kotlin-stdlibwas updated to version
Removed Device Year Class Dependency
Device Year Class is a deprecated library from Facebook that analyzes an Android device’s specifications. With PSPDFKit 6.6 for Android, we removed the Device Year Class transitive dependency in favor of a simpler in-house algorithm that works by following similar principles to optimize the default configuration.
❗ Important: Follow the next step only if you manually integrated the PSPDFKit
.aarfile. If you used Maven/Gradle for integrating PSPDFKit, Device Year Class has already been removed for you.
dependencies block of your
app/build.gradle, remove the following line:
- implementation 'com.facebook.device.yearclass:yearclass:2.0.0'