Nutrient 6.3 migration guide
Updated build versions
With Nutrient 6.3, we updated various build properties and versions.
- Build System Dependencies
- The Android Gradle plugin used to build Nutrient was updated to version
3.6.2. In addition, all sample applications now use Android Gradle plugin3.6.2as well.
- The Android Gradle plugin used to build Nutrient was updated to version
Updated dependencies
With Nutrient 6.3, we updated multiple transitive dependency versions:
org.jetbrains.kotlin:kotlin-stdlibwas updated to version1.3.71io.reactivex.rxjava2:rxjavawas updated to version2.2.7io.reactivex.rxjava2:rxandroidwas updated to2.1.1com.getkeepsafe.relinker:relinkerwas updated to1.4.1
Changes to MenuItem IDs
With Nutrient Android SDK 6.3, we cleaned up the IDs used for MenuItems a bit by making it more obvious which ones to use for group items. All items that contain subitems now use IDs that include the word group.
pspdf__annotation_creation_toolbar_item_markupwas renamed topspdf__annotation_creation_toolbar_group_markup.pspdf__annotation_creation_toolbar_item_writingwas renamed topspdf__annotation_creation_toolbar_item_writing.pspdf__annotation_creation_toolbar_item_drawingwas renamed topspdf__annotation_creation_toolbar_item_drawing.pspdf__annotation_creation_toolbar_item_multimediawas renamed topspdf__annotation_creation_toolbar_group_multimedia.pspdf__annotation_creation_toolbar_item_undo_redowas renamed topspdf__annotation_creation_toolbar_group_undo_redo.pspdf__annotation_editing_toolbar_item_inspectorwas renamed topspdf__annotation_editing_toolbar_group_inspector.pspdf__annotation_editing_toolbar_item_undo_redowas renamed topspdf__annotation_editing_toolbar_group_undo_redo.pspdf__annotation_editing_toolbar_item_copy_cutwas renamed topspdf__annotation_editing_toolbar_group_copy_cut.pspdf__annotation_editing_toolbar_item_edit_sharewas renamed topspdf__annotation_editing_toolbar_group_edit_share.pspdf__document_editing_toolbar_item_morewas renamed topspdf__document_editing_toolbar_group_more.
Use of the old IDs or any other ID when creating a MenuItem with submenu IDs will result in an error being logged. Starting with Nutrient Android SDK 7, this will also throw an exception.