Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

2.0.5

Choose a tag to compare

@Tweener Tweener released this 13 Oct 12:30
· 44 commits to main since this release

Full Changelog: 2.0.4...2.0.5


⚠️ Breaking Changes

kmp-common

✨ What's new

kmp-common

  • Add new extension functions to easily apply a percentage to an Int, a Float or a Double.
  • Add new extension functions to safely divide an Int, a Float or a Double by 0.
  • Add a new extension function to round a Float with a given decimal precision as the number of decimal digits.
  • Add a few functions to better handle Coroutines Continuation:
    • suspendCatching: Calls a specified suspendable function block with a value as its receiver and returns its encapsulated result if invocation was successful, or encapsulates as failure if any Throwable was thrown.
    • resumeIfActive: Resumes the execution of the corresponding coroutine passing value as the return value of the last suspension point, if this [CancellationException] is still active.
    • resumeWithExceptionIfActive: Resumes the execution of the corresponding coroutine so that the exception is re-thrown right after the last suspension point, if this [CancellationException] is still active.
  • Flow can now combine up to 6 Flows
  • Add new extension functions to LocalDate and LocalDateTime to get the number of days in a month.

💪 Enhancements

kmp-common

  • AmountFormatter now allows abbreviations when displaying amounts: "B" for billions, "M" for millions and "k" for thousands.

🪲 Bug Fixes

kmp-firebase

  • Fixes Firebase authentication to better handle coroutines and avoid using callbacks with suspend functions. (Thanks to @DatL4g for pointing that out!)

🛠️ Performance Improvements

None

🟡 Other Changes

None