Skip to content

Conversation

dkhalanskyjb
Copy link
Collaborator

  • Applied every IDE suggestion to the samples. We should keep the sample code copy-pasteable into the IDE without warnings.
  • Gradle mentions that compileOnly dependencies don't work in Wasm, so changed the dependency of kotlinx-datetime-zoneinfo from compileOnly to api.
  • Replaced the non-exhaustive-when error suppressions with a runtime check to be able to diagnose the issue better if we indeed make an error at some point. The runtime check can be removed if the compiler becomes smarter.
  • Fixed various other warnings both in test/ and src/.

* Applied every IDE suggestion to the samples.
  We should keep the sample code copy-pasteable into the IDE
  without warnings.
* Gradle mentions that compileOnly dependencies don't work in Wasm,
  so changed the dependency of `kotlinx-datetime-zoneinfo`
  from compileOnly to api.
* Replaced the non-exhaustive-when error suppressions with
  a runtime check to be able to diagnose the issue better if
  we indeed make an error at some point.
  The runtime check can be removed if the compiler becomes smarter.
* Fixed various other warnings both in test/ and src/.
@dkhalanskyjb dkhalanskyjb requested a review from ilya-g October 21, 2025 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant