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
file, update the version of the com.pspdfkit:pspdfkit
dependency to 8.7.0
:
dependencies { - implementation 'com.pspdfkit:pspdfkit:8.6.0' + implementation 'com.pspdfkit:pspdfkit: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 'com.pspdfkit:pspdfkit-ocr:8.6.0' - implementation 'com.pspdfkit:pspdfkit-ocr-english:8.6.0' + implementation 'com.pspdfkit:pspdfkit-ocr:8.7.0' + implementation 'com.pspdfkit:pspdfkit-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:
... <FrameLayout android:id="@+id/pspdf__activity_content" android:layout_width="match_parent" android:layout_height="match_parent"> <com.pspdfkit.ui.contentediting.ContentEditingStylingBar android: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.