Update dependency com.kizitonwose.calendar:compose to v2.8.0 #337
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.4.0
->2.8.0
Release Notes
kizitonwose/calendar (com.kizitonwose.calendar:compose)
v2.8.0
Compare Source
Compose (Android):
Compose (Multiplatform):
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:
YearMonth
type, which replaces the one previously provided by the calendar library. You'll need to replace the importscom.kizitonwose.calendar.core.YearMonth
withkotlinx.datetime.YearMonth
.kotlinx.datetime.Clock
, please usekotlin.time.Clock
instead.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.See the release notes for Kotlin DateTime 0.7.0 for all changes.
Dependencies:
v2.7.0
Compare Source
Compose (Android & Multiplatform) :
Dependencies:
v2.6.2
Compare Source
View:
calculateExtraLayoutSpace
in the layout manager.RecyclerView
version.Compose:
The following methods are now available in the compose module:
Month calendar:
scrollToDate
scrollToDay
animateScrollToDate
animateScrollToDay
Week calendar:
scrollToDate
scrollToDay
animateScrollToDate
animateScrollToDay
Year calendar:
scrollToDate
scrollToDay
scrollToMonth
animateScrollToDate
animateScrollToDay
animateScrollToMonth
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.v2.6.1
Compare Source
Compose (Android & Multiplatform) :
Dependencies:
v2.6.0
Compare Source
Compose (Android & Multiplatform) :
Dependencies:
v2.5.4
Compare Source
Compose (Android & Multiplatform) :
columns
tomonthColumns
.View:
YearCalendarView
class to match the year calendar composable available in the compose module. See documentation.v2.5.3
Compare Source
Compose (Android & Multiplatform) :
Add
HorizontalYearCalendar
andVerticalYearCalendar
composables for compose version 1.6.x. See documentation.v2.5.2
Compare Source
View:
Core:
desugar
dependency from the library.Note: Apps with min SDK version below 26 still need to use
desugar
, however the library itself is no longer bundled with this dependency, which means that apps with min SDK version 26 and above will be able to use the library withoutdesugar
.v2.5.1
Compare Source
Compose:
rememberCalendarState()
function does not refresh the calendar.v2.5.0
Compare Source
Compose:
v2.4.1
Compare Source
Compose:
firstDayOfWeek
does not refresh the current month #514View:
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.