DOT Android Document 8.0.0

This guide describes how to migrate DOT Android Document version 7.x to version 8.0. Only the most important changes are highlighted in this guide. For more details, see the Android Samples.

Migration Steps

Machine Readable Zone - check digit validity

  • Replace hasValidChecksum() with checkDigit.isValid for all elements of type ElementWithCheckDigit and DateElementWithCheckDigit.

Before

// Example of getting document number check digit validity in TD1 type
val checkDigitValidity = machineReadableZone!!.td1!!.documentNumber.hasValidChecksum()

After

// Example of getting document number check digit validity in TD1 type
val checkDigitValidity = machineReadableZone!!.td1!!.documentNumber.checkDigit.isValid