2.9.0
Compose (Android & Multiplatform) :
- Bump Compose UI to version 1.9.1 (Android) and 1.9.0 (Multiplatform)
Dependencies:
- Bump AGP to version 8.13.0
- Bump Kotlin to version 2.2.20
Android SDK:
- Bump
compileSdkto version 36
2.8.0
Compose (Android):
- Bump Compose UI to version 1.8.3
Compose (Multiplatform):
- Bump Compose UI to version 1.8.2
- Bump Kotlin DateTime to 0.7.1
- Bump Kotlin Serialization to 1.9.0
Kotlin DateTime 0.7.x comes with some API changes that have been inherited by the multiplatform calendar which depends on it.
The most important changes are:
- Addition of the
YearMonthtype, which replaces the one previously provided by the calendar library. You'll need to replace the importscom.kizitonwose.calendar.core.YearMonthwithkotlinx.datetime.YearMonth. - Removal of
kotlinx.datetime.Clock, please usekotlin.time.Clockinstead.
Note that there are some method and field name differences between the YearMonth previously provided by the library and the new one in the Kotlin DateTime library. The relevant methods and fields are listed below.
| com.kizitonwose.calendar.core.YearMonth | kotlinx.datetime.YearMonth |
|---|---|
| atStartOfMonth() | firstDay |
| atEndOfMonth() | lastDay |
| lengthOfMonth() | numberOfDays |
| atDay() | onDay() |
See the release notes for Kotlin DateTime 0.7.0 for all changes.
Dependencies:
- Bump AGP to 8.11.1
2.7.0
Compose (Android & Multiplatform) :
- Bump Compose UI to version 1.8.1 (Android) and 1.8.0 (Multiplatform)
Dependencies:
- Bump AGP to version 8.10.0
- Bump Kotlin to version 2.1.21
2.6.2
View:
- Allow overriding
calculateExtraLayoutSpacein the layout manager. - Minimum SDK version is now 21 due to a bump in
RecyclerViewversion.
Compose:
The following methods are now available in the compose module:
Month calendar:
scrollToDatescrollToDayanimateScrollToDateanimateScrollToDay
Week calendar:
scrollToDatescrollToDayanimateScrollToDateanimateScrollToDay
Year calendar:
scrollToDatescrollToDayscrollToMonthanimateScrollToDateanimateScrollToDayanimateScrollToMonth
Note that unlike the view system (RecyclerView) which allows offset calculation when the scroll target index becomes visible on the screen, compose (LazyList) requires you to provide the desired scroll offset for the target index before initiating the scroll. Therefore, the current implementation assumes equal-sized headers in each item to be able to calculate the day offset in the target index.
2.6.1
Compose (Android & Multiplatform) :
- Bump Compose UI to version 1.7.5 (Android) and 1.7.1 (Multiplatform)
Dependencies:
- Bump AGP to version 8.7.3
- Bump Desugar to version 2.1.3
2.6.0
Compose (Android & Multiplatform) :
- Bump Compose UI to version 1.7.2 (Android) and 1.7.0-beta02 (Multiplatform).
Dependencies:
- Bump Kotlin to version 2.0.20
- Bump AGP to version 8.5.2
2.6.0-beta04
Compose (Android & Multiplatform) :
- Rename year calendar composable parameter
columnstomonthColumns.
View:
- Add
YearCalendarViewclass to match the year calendar composable available in the compose module. See documentation.
2.5.4
Compose (Android & Multiplatform) :
- Rename year calendar composable parameter
columnstomonthColumns.
View:
- Add
YearCalendarViewclass to match the year calendar composable available in the compose module. See documentation.
2.6.0-beta03
Compose (Android & Multiplatform) :
Add HorizontalYearCalendar and VerticalYearCalendar composables for compose version 1.7.x. See documentation.
Compose Multiplatform:
- Remove Java
Serializableinterface implementation from the includedYearMonthclass. - Add kotlinx.serialization
YearMonthIso8601SerializerandYearMonthComponentSerializerclasses.
2.5.3
Compose (Android & Multiplatform) :
Add HorizontalYearCalendar and VerticalYearCalendar composables for compose version 1.6.x. See documentation.