2021-07-21 Changelog

Reader SDK
Link to section

Version summary

  • Square Version: 2021-07-21
Link to section


Link to section

SDK Changes

  • Upgrade to Kotlin 1.5
  • Various fixes addressing native crashes
  • Fix for conflicting versions of Kotlin Coroutines libraries
  • Various bug fixes and performance improvements
Link to section

Breaking changes

  • If your app is still using Kotlin 1.3 or 1.4 you must upgrade to 1.5 to use Reader SDK 1.5.1. In general, the Kotlin plugin takes care of the migration, but Square suggests that you follow these guidelines for migration:
Link to section

Upgrade to Reader SDK 1.5.1

To use Reader SDK 1.5.1 you must add a workaround for a packaging issue the Square Reader SDK development team discovered during testing. This is a temporary fix. The issue will be resolved in the next Reader SDK release.

Add following inside the android{} block of your application build.gradle file:

packagingOptions { exclude("META-INF/*.kotlin_module") }

Refer to the Square Quickstart App on GitHub for an example of the correct configuration.

After adding the snippet, set the version of Reader SDK to 1.5.1

def readerSdkVersion = "1.5.1" // SQUARE_READER_SDK_APPLICATION_ID is defined in ./gradle.properties implementation "com.squareup.sdk.reader:reader-sdk-$SQUARE_READER_SDK_APPLICATION_ID:$readerSdkVersion" runtimeOnly "com.squareup.sdk.reader:reader-sdk-internals:$readerSdkVersion"