Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.48 KB

MIGRATING.md

File metadata and controls

42 lines (32 loc) · 1.48 KB

Migrating

If any releases introduce a significant change to any of Kotter's APIs, this document will provide steps to help users migrate their codebase over to newer versions.

1.0.x to 1.1.0

1.1.0 upgrades Kotter from a JVM library to a multiplatform library, adding Kotlin/Native support (for Windows, Linux, and Mac OS targets).

While a lot of Kotter converted over smoothly, some APIs that were too closely tied to the JVM had to be updated.

Build script

The coordinate com.varabyte.kotter:kotter must now be declared as kotter-jvm:

// BEFORE:
dependencies {
  implementation("com.varabyte.kotter:kotter:1.0.2")
  //                                  ^^^^^^
}

// AFTER:
dependencies {
  implementation("com.varabyte.kotter:kotter-jvm:1.1.0")
  //                                  ^^^^^^^^^^
}

Code changes

  • Java Duration -> Kotlin Duration
  • java.net.URI -> com.varabyte.kotter.platform.net.Uri
    • You probably aren't using this.
  • java.util.concurrent.locks.ReentrantReadWriteLock.write -> com.varabyte.kotter.platform.concurrent.locks.ReentrantReadWriteLock.write
    • You probably aren't using this.