Skip to content

Release 1.9.0

Compare
Choose a tag to compare
@vgarciabnz vgarciabnz released this 22 Nov 08:44
· 1001 commits to master since this release
2cd5a13

Features

Bug

Library changes:

  • ANDROSDK-1737 Update Kotlin version to 1.9.10.
  • ANDROSDK-1740 Upgrade OkHttp library to 4.10.0. It might imply the update of OkHttp resolution to at least 4.10.0.
  • ANDROSDK-1618 Dagger is replaced by Koin
  • Some changes in the SDK forces to update Gradle to >= 7.4.2 in the consuming app.

Breaking changes:

  • If you are using Kotlin, you might experience some breaking changes in your code. These changes come from the continuous refactor of the codebase to Kotlin and usually they cannot be avoided. They have to do with how Java and Kotlin deal with nullability and, in general, these changes will introduce more robustness (null safety) in your code.

    A common change is the return type of different methods, such as ObjectRepository. Taking DataElement as an example, this query (dataElements().uid("uid").get()) in the JAVA-implemented repository will return a DataElement! in Kotlin, which means that it can't tell if the returned object is nullable or not. In this case, the Kotlin compiler let you deal with these object as if they were NonNull, which could lead to a NullPointerException. Now, the repository will return a DataElement?, which explicitly informs about the nullability of the object.