This repository was archived by the owner on Feb 24, 2025. It is now read-only.
Repository navigation
2.0.5
Full Changelog: 2.0.4...2.0.5
⚠️ Breaking Changes
kmp-common
generateRandomUUID()function removed: Use Kotlin standard library instead:
https://kotlinlang.org/docs/whatsnew2020.html#support-for-uuids-in-the-common-kotlin-standard-libraryParcelizecustom implementation removed: Use Kotlin K2 compiler instead: https://kotlinlang.org/docs/whatsnew20.html#compiler-plugins-support
✨ 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