Nutrient 8.7 migration guide
This guide provides the necessary steps for migrating from Nutrient Android SDK 8 to Nutrient Android SDK 8.7.
Before updating to Nutrient Android SDK 8.7, 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.7.
Upgrading Nutrient
Inside your
app/build.gradle.kts
file, update the version of theio.nutrient:nutrient
dependency to8.7.0
:dependencies {implementation("io.nutrient:nutrient:8.6.0")implementation("io.nutrient:nutrient:8.7.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.6.0")implementation("io.nutrient:nutrient-ocr-english:8.6.0")implementation("io.nutrient:nutrient-ocr:8.7.0")implementation("io.nutrient:nutrient-ocr-english:8.7.0")...}Content editing
Nutrient Android SDK 8.7 adds the Content Editor component. It’s enabled by default, but if you’re using a custom layout, have Content Editor in your license, and want to use the Content Editor, you need to add
ContentEditingStylingBar
to your layout:...<FrameLayoutandroid:id="@+id/pspdf__activity_content"android:layout_width="match_parent"android:layout_height="match_parent"><com.pspdfkit.ui.contentediting.ContentEditingStylingBarandroid:id="@+id/pspdf__activity_content_editing_bar"android:layout_width="match_parent"android:layout_height="wrap_content"android:layout_gravity="bottom"/>...</FrameLayout>Otherwise, you need to disable Content Editor in your configuration. If you’re not using a custom layout, you don’t need to do anything to enable Content Editor.