diff --git a/CHANGELOG.md b/CHANGELOG.md index b5bfa9d..9dc415b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,16 @@ Notable changes are documented in this file, whose format follows [Keep a Change ## [Unreleased] +## [0.9.0] - 2024-07-08 + +> [!IMPORTANT] +> Version 0.9.0 and higher of kotlinx-resources target Kotlin 2.0 are incompatible with Kotlin 1.9. +> Only lower versions (even if published in the future), alongside the `k1` branch, target Kotlin 1.9. + +### Added + +- Support for Kotlin 2.0.0 (#115 - thanks @DRSchlaubi!) + ## [0.4.2] - 2024-07-03 ### Fixed diff --git a/README.md b/README.md index ac5dbde..b50ad5d 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Kotlin Multiplatform (KMP) plugin and library that add support for reading resou The plugin and a library work in tandem to provide a unified API across platforms for reading resources from each source set's `resources` folder. -## Usage +## Setup List the plugin in your `build.gradle.kts`: @@ -41,7 +41,14 @@ kotlin { } ``` -Once that's done, a `Resource` class becomes available in all test sources, with a simple API: +> [!IMPORTANT] +> The latest version targets Kotlin 2.0 and is incompatible with Kotlin 1.9. +> On 2.0 and above, use the latest version available. +> On 1.9, use the latest version _below v0.9.0_. + +## Usage + +Once setup is done done, a `Resource` class becomes available in all test sources, with a simple API: ```kotlin class Resource(path: String) {