Nutrient 7 migration guide

This guide provides the necessary steps for migrating from Nutrient Android SDK 6.6 to Nutrient Android SDK 7.

Information

Before updating to Nutrient Android SDK 7, make sure your app is running at least Nutrient Android SDK 6.6. If you’re running an earlier version, see our previous migration guides first, which will guide you through the necessary update steps up to version 7.

Upgrading Nutrient

Inside your app/build.gradle file, update the version of the com.pspdfkit:pspdfkit dependency to 7.0.0:

dependencies {
-   implementation 'com.pspdfkit:pspdfkit:6.6.2'
+   implementation 'com.pspdfkit:pspdfkit:7.0.0'
 }

Upgrading OCR dependencies

If your project also integrates the [Nutrient OCR library][], make sure to upgrade the version of all OCR dependencies too:

dependencies {
-   implementation 'com.pspdfkit:pspdfkit-ocr:6.6.2'
-   implementation 'com.pspdfkit:pspdfkit-ocr-english:6.6.2'
+   implementation 'com.pspdfkit:pspdfkit-ocr:7.0.0'
+   implementation 'com.pspdfkit:pspdfkit-ocr-english:7.0.0'
    ...
}

dropping KitKat support

Nutrient 7 removed support for running on Android 4.4 KitKat (API 19) devices. The new minimum supported Android version is 5.0 Lollipop (API 21).

If you previously supported minSdkVersion 19 within your Android project, inside your app/build.gradle file, update the minSdkVersion to 21:

android {
    defaultConfig {
-       minSdkVersion 19
+       minSdkVersion 21
    }
}