Nutrient 7 migration guide
This guide provides the necessary steps for migrating from Nutrient Android SDK 6.6 to Nutrient Android SDK 7.
Before updating to Nutrient Android SDK 7, make sure your app is running at least Nutrient Android SDK 6.6. 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 7.
Upgrading Nutrient
Inside your
app/build.gradle.kts
file, update the version of theio.nutrient:nutrient
dependency to7.0.0
:dependencies {implementation("io.nutrient:nutrient:6.6.2")implementation("io.nutrient:nutrient:7.0.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:6.6.2")implementation("io.nutrient:nutrient-ocr-english:6.6.2")implementation("io.nutrient:nutrient-ocr:7.0.0")implementation("io.nutrient:nutrient-ocr-english:7.0.0")...}dropping KitKat support
Nutrient 7 removed support for running on Android 4.4 KitKat (API 19) devices. The new minimum supported Android version is 5.0 Lollipop (API 21).
If you previously supported
minSdkVersion 19
within your Android project, inside yourapp/build.gradle
file, update theminSdkVersion
to21
:android {defaultConfig {minSdkVersion 19minSdkVersion 21}}