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.kts
file, update the version of theio.nutrient:nutrient
dependency to8.6.0
:dependencies {implementation("io.nutrient:nutrient:8.5.1")implementation("io.nutrient:nutrient: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("io.nutrient:nutrient-ocr:8.5.1")implementation("io.nutrient:nutrient-ocr-english:8.5.1")implementation("io.nutrient:nutrient-ocr:8.6.0")implementation("io.nutrient:nutrient-ocr-english:8.6.0")...}RxJava 2 to RxJava 3
Nutrient Android SDK 8.6 upgrades ReactiveX Java(opens in a new tab) 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.
withimport io.reactivex.rxjava3
where applicable.For more details on migrating to RxJava 3, see the official migration guide(opens in a new tab).
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
.