Migration

Migration

This document explains what you need to change to migrate from a previous to a new SDK version.

1.3.1 -> 1.4.0

  1. Add to your build.gradle the repository dependency maven { url "https://jitpack.io" }.
  2. Add suffix LiveData to function calls from UserManager, BookingManager and UnitController.
  3. Result.onError { ... } gives you a type Result.Error<T>. You can get a list of messages from it.
  4. Result.hasErrors() got removed. Now you must check if Result<T> it type of Result.Error<T>.
  5. Result.data got renamed to Result.dataOrNull. Alternatively you can cast to Result.Success and get data from it.