Nutrient 5.5 migration guide

This article provides a set of guidelines for migrating from Nutrient Android SDK 5.4 to Nutrient Android SDK 5.5.

Updated dependencies

With Nutrient 5.5, we updated various dependencies of Nutrient:

  • Build system dependencies

    • The version of NDK used to build Nutrient’s native sources was updated to version 20.0.5594570.

Unification of full and demo libraries

Starting with Nutrient 5.5, we no longer provide a separate demo version of Nutrient Android SDK. Evaluation of our framework can now be done using the exact same binary that is used by customers of our full version.

If you are currently evaluating Nutrient Android SDK and want to update your trial to 5.5, you need to adjust the name of the dependency inside your project’s dependencies block, like so:

dependencies {
    // Use this for integrating the demo version of PSPDFKit for Android
    implementation 'com.pspdfkit:pspdfkit:5.5.0'
    implementation 'com.pspdfkit:pspdfkit-instant:5.5.0'
}

ℹ️ Note: Customers who already use the full version of Nutrient Android SDK do not need to change the name of the dependency, but instead should simply update the version to 5.5.0.

Notable changes and deprecations

  • Deprecates AnnotationProvider#getAllAnnotationsOfType(). Use AnnotationProvider#getAllAnnotationsOfTypeAsync() instead. AnnotationProvider#getAllAnnotationsOfType() will be made into a blocking call in Nutrient Android SDK 6.