Nutrient 8.6 migration guide
This guide provides the necessary steps for migrating from Nutrient Android SDK 8 to Nutrient Android SDK 8.6.
Before updating to Nutrient Android SDK 8.6, make sure your app is running at least Nutrient Android SDK 8. 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 8.6.
Upgrading Nutrient
Inside your app/build.gradle
file, update the version of the com.pspdfkit:pspdfkit
dependency to 8.6.0
:
dependencies { - implementation 'com.pspdfkit:pspdfkit:8.5.1' + implementation 'com.pspdfkit:pspdfkit:8.6.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:8.5.1' - implementation 'com.pspdfkit:pspdfkit-ocr-english:8.5.1' + implementation 'com.pspdfkit:pspdfkit-ocr:8.6.0' + implementation 'com.pspdfkit:pspdfkit-ocr-english:8.6.0' ... }
RxJava 2 to RxJava 3
Nutrient Android SDK 8.6 upgrades ReactiveX Java from major version 2 to 3 (specifically 3.1.6).
This means users who make use of our asynchronous APIs need to change their imports, replacing import io.reactivex.
with import io.reactivex.rxjava3
where applicable.
For more details on migrating to RxJava 3, see the official migration guide.
Deprecated symbols removed
Nutrient Android SDK 8.6 removes the following APIs that were deprecated in previous versions:
-
SignatureFormElement#getOverlappingInkSignature
, which was replaced bySignatureFormElement#getOverlappingSignature
. -
The legacy
PKCS7
andPKCS7SignatureContents
constructors, which have been replaced by constructors that useFilterSubtype
:-
PKCS7#create
-
PKCS7SignatureContents
-byte
andPKCS7SignatureContents
-SignatureFormField
-
-
PdfThumbnailGrid#setOnDocumentSavedListener
, which was replaced byaddOnDocumentSavedListener(OnDocumentSavedListener)
. -
PdfDrawable#getPDFToPageTransformation
andPdfDrawable#updatePDFToViewTransformation
, which were replaced bygetPdfToPageTransformation
andupdatePdfToViewTransformation
.