From 09fae5269c702124ad0d8bb70b13b08fecefa687 Mon Sep 17 00:00:00 2001 From: Goooler Date: Wed, 17 Jul 2024 19:34:09 +0800 Subject: [PATCH] Add BCV to check APIs https://github.com/Kotlin/binary-compatibility-validator --- .github/workflows/check.yml | 14 + build.gradle.kts | 7 + .../library/api/android/library.api | 337 ++++++++++++++++++ .../library/api/desktop/library.api | 337 ++++++++++++++++++ compose/api/compose.api | 182 ++++++++++ core/api/core.api | 89 +++++ data/api/data.api | 79 ++++ gradle/libs.versions.toml | 1 + view/api/view.api | 161 +++++++++ 9 files changed, 1207 insertions(+) create mode 100644 compose-multiplatform/library/api/android/library.api create mode 100644 compose-multiplatform/library/api/desktop/library.api create mode 100644 compose/api/compose.api create mode 100644 core/api/core.api create mode 100644 data/api/data.api create mode 100644 view/api/view.api diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index b605d661..24660920 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -38,6 +38,20 @@ jobs: - name: Run Ktlint run: ./gradlew lintKotlin + api-check: + name: API Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: 17 + - uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true + - run: ./gradlew apiCheck + unit-tests: name: Unit tests runs-on: ubuntu-latest diff --git a/build.gradle.kts b/build.gradle.kts index 86219a5d..bf01c7dc 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,12 +9,19 @@ plugins { alias(libs.plugins.kotlinMultiplatform) apply false alias(libs.plugins.jetbrainsCompose) apply false alias(libs.plugins.versionCheck) + alias(libs.plugins.bcv) } allprojects { apply(plugin = rootProject.libs.plugins.kotlinter.get().pluginId) } +apiValidation { + ignoredProjects += listOf( + "sample", + ) +} + // tasks.register("clean").configure { // delete(rootProject.layout.buildDirectory) // } diff --git a/compose-multiplatform/library/api/android/library.api b/compose-multiplatform/library/api/android/library.api new file mode 100644 index 00000000..5eca3398 --- /dev/null +++ b/compose-multiplatform/library/api/android/library.api @@ -0,0 +1,337 @@ +public final class com/kizitonwose/calendar/compose/CalendarItemInfo : androidx/compose/foundation/lazy/LazyListItemInfo { + public static final field $stable I + public fun (Landroidx/compose/foundation/lazy/LazyListItemInfo;Lcom/kizitonwose/calendar/core/CalendarMonth;)V + public fun getContentType ()Ljava/lang/Object; + public fun getIndex ()I + public fun getKey ()Ljava/lang/Object; + public final fun getMonth ()Lcom/kizitonwose/calendar/core/CalendarMonth; + public fun getOffset ()I + public fun getSize ()I +} + +public final class com/kizitonwose/calendar/compose/CalendarKt { + public static final fun HeatMapCalendar (Landroidx/compose/ui/Modifier;Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState;Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeekHeaderPosition;ZLandroidx/compose/foundation/layout/PaddingValues;Lkotlin/jvm/functions/Function5;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V + public static final fun HorizontalCalendar (Landroidx/compose/ui/Modifier;Lcom/kizitonwose/calendar/compose/CalendarState;ZZZLandroidx/compose/foundation/layout/PaddingValues;Lcom/kizitonwose/calendar/compose/ContentHeightMode;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function5;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function5;Landroidx/compose/runtime/Composer;III)V + public static final fun VerticalCalendar (Landroidx/compose/ui/Modifier;Lcom/kizitonwose/calendar/compose/CalendarState;ZZZLandroidx/compose/foundation/layout/PaddingValues;Lcom/kizitonwose/calendar/compose/ContentHeightMode;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function5;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function5;Landroidx/compose/runtime/Composer;III)V + public static final fun WeekCalendar (Landroidx/compose/ui/Modifier;Lcom/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState;ZZZLandroidx/compose/foundation/layout/PaddingValues;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V +} + +public final class com/kizitonwose/calendar/compose/CalendarLayoutInfo : androidx/compose/foundation/lazy/LazyListLayoutInfo { + public static final field $stable I + public fun (Landroidx/compose/foundation/lazy/LazyListLayoutInfo;Lkotlin/jvm/functions/Function1;)V + public fun getAfterContentPadding ()I + public fun getBeforeContentPadding ()I + public fun getMainAxisItemSpacing ()I + public fun getOrientation ()Landroidx/compose/foundation/gestures/Orientation; + public fun getReverseLayout ()Z + public fun getTotalItemsCount ()I + public fun getViewportEndOffset ()I + public fun getViewportSize-YbymL2g ()J + public fun getViewportStartOffset ()I + public fun getVisibleItemsInfo ()Ljava/util/List; + public final fun getVisibleMonthsInfo ()Ljava/util/List; +} + +public final class com/kizitonwose/calendar/compose/CalendarState : androidx/compose/foundation/gestures/ScrollableState { + public static final field $stable I + public static final field Companion Lcom/kizitonwose/calendar/compose/CalendarState$Companion; + public final fun animateScrollToMonth (Lcom/kizitonwose/calendar/core/YearMonth;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun dispatchRawDelta (F)F + public final fun getEndMonth ()Lcom/kizitonwose/calendar/core/YearMonth; + public final fun getFirstDayOfWeek ()Ljava/time/DayOfWeek; + public final fun getFirstVisibleMonth ()Lcom/kizitonwose/calendar/core/CalendarMonth; + public final fun getInteractionSource ()Landroidx/compose/foundation/interaction/InteractionSource; + public final fun getLastVisibleMonth ()Lcom/kizitonwose/calendar/core/CalendarMonth; + public final fun getLayoutInfo ()Lcom/kizitonwose/calendar/compose/CalendarLayoutInfo; + public final fun getOutDateStyle ()Lcom/kizitonwose/calendar/core/OutDateStyle; + public final fun getStartMonth ()Lcom/kizitonwose/calendar/core/YearMonth; + public fun isScrollInProgress ()Z + public fun scroll (Landroidx/compose/foundation/MutatePriority;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun scrollToMonth (Lcom/kizitonwose/calendar/core/YearMonth;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun setEndMonth (Lcom/kizitonwose/calendar/core/YearMonth;)V + public final fun setFirstDayOfWeek (Ljava/time/DayOfWeek;)V + public final fun setOutDateStyle (Lcom/kizitonwose/calendar/core/OutDateStyle;)V + public final fun setStartMonth (Lcom/kizitonwose/calendar/core/YearMonth;)V +} + +public final class com/kizitonwose/calendar/compose/CalendarState$Companion { +} + +public final class com/kizitonwose/calendar/compose/CalendarStateKt { + public static final fun rememberCalendarState (Lcom/kizitonwose/calendar/core/YearMonth;Lcom/kizitonwose/calendar/core/YearMonth;Lcom/kizitonwose/calendar/core/YearMonth;Ljava/time/DayOfWeek;Lcom/kizitonwose/calendar/core/OutDateStyle;Landroidx/compose/runtime/Composer;II)Lcom/kizitonwose/calendar/compose/CalendarState; +} + +public final class com/kizitonwose/calendar/compose/ComposableSingletons$CalendarMonthsKt { + public static final field INSTANCE Lcom/kizitonwose/calendar/compose/ComposableSingletons$CalendarMonthsKt; + public static field lambda-1 Lkotlin/jvm/functions/Function5; + public static field lambda-2 Lkotlin/jvm/functions/Function5; + public fun ()V + public final fun getLambda-1$library_release ()Lkotlin/jvm/functions/Function5; + public final fun getLambda-2$library_release ()Lkotlin/jvm/functions/Function5; +} + +public final class com/kizitonwose/calendar/compose/ContentHeightMode : java/lang/Enum { + public static final field Fill Lcom/kizitonwose/calendar/compose/ContentHeightMode; + public static final field Wrap Lcom/kizitonwose/calendar/compose/ContentHeightMode; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public static fun valueOf (Ljava/lang/String;)Lcom/kizitonwose/calendar/compose/ContentHeightMode; + public static fun values ()[Lcom/kizitonwose/calendar/compose/ContentHeightMode; +} + +public final class com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState : androidx/compose/foundation/gestures/ScrollableState { + public static final field $stable I + public static final field Companion Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState$Companion; + public final fun animateScrollToMonth (Lcom/kizitonwose/calendar/core/YearMonth;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun dispatchRawDelta (F)F + public final fun getEndMonth ()Lcom/kizitonwose/calendar/core/YearMonth; + public final fun getFirstDayOfWeek ()Ljava/time/DayOfWeek; + public final fun getFirstVisibleMonth ()Lcom/kizitonwose/calendar/core/CalendarMonth; + public final fun getInteractionSource ()Landroidx/compose/foundation/interaction/InteractionSource; + public final fun getLastVisibleMonth ()Lcom/kizitonwose/calendar/core/CalendarMonth; + public final fun getLayoutInfo ()Lcom/kizitonwose/calendar/compose/CalendarLayoutInfo; + public final fun getStartMonth ()Lcom/kizitonwose/calendar/core/YearMonth; + public fun isScrollInProgress ()Z + public fun scroll (Landroidx/compose/foundation/MutatePriority;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun scrollToMonth (Lcom/kizitonwose/calendar/core/YearMonth;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun setEndMonth (Lcom/kizitonwose/calendar/core/YearMonth;)V + public final fun setFirstDayOfWeek (Ljava/time/DayOfWeek;)V + public final fun setStartMonth (Lcom/kizitonwose/calendar/core/YearMonth;)V +} + +public final class com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState$Companion { +} + +public final class com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarStateKt { + public static final fun rememberHeatMapCalendarState (Lcom/kizitonwose/calendar/core/YearMonth;Lcom/kizitonwose/calendar/core/YearMonth;Lcom/kizitonwose/calendar/core/YearMonth;Ljava/time/DayOfWeek;Landroidx/compose/runtime/Composer;II)Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState; +} + +public final class com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeek { + public static final field $stable I + public fun (Ljava/util/List;)V + public final fun component1 ()Ljava/util/List; + public final fun copy (Ljava/util/List;)Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeek; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeek;Ljava/util/List;ILjava/lang/Object;)Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeek; + public fun equals (Ljava/lang/Object;)Z + public final fun getDays ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeekHeaderPosition : java/lang/Enum { + public static final field End Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeekHeaderPosition; + public static final field Start Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeekHeaderPosition; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public static fun valueOf (Ljava/lang/String;)Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeekHeaderPosition; + public static fun values ()[Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeekHeaderPosition; +} + +public final class com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarItemInfo : androidx/compose/foundation/lazy/LazyListItemInfo { + public static final field $stable I + public fun (Landroidx/compose/foundation/lazy/LazyListItemInfo;Lcom/kizitonwose/calendar/core/Week;)V + public fun getContentType ()Ljava/lang/Object; + public fun getIndex ()I + public fun getKey ()Ljava/lang/Object; + public fun getOffset ()I + public fun getSize ()I + public final fun getWeek ()Lcom/kizitonwose/calendar/core/Week; +} + +public final class com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarLayoutInfo : androidx/compose/foundation/lazy/LazyListLayoutInfo { + public static final field $stable I + public fun (Landroidx/compose/foundation/lazy/LazyListLayoutInfo;Lkotlin/jvm/functions/Function1;)V + public fun getAfterContentPadding ()I + public fun getBeforeContentPadding ()I + public fun getMainAxisItemSpacing ()I + public fun getOrientation ()Landroidx/compose/foundation/gestures/Orientation; + public fun getReverseLayout ()Z + public fun getTotalItemsCount ()I + public fun getViewportEndOffset ()I + public fun getViewportSize-YbymL2g ()J + public fun getViewportStartOffset ()I + public fun getVisibleItemsInfo ()Ljava/util/List; + public final fun getVisibleWeeksInfo ()Ljava/util/List; +} + +public final class com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState : androidx/compose/foundation/gestures/ScrollableState { + public static final field $stable I + public static final field Companion Lcom/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState$Companion; + public final fun animateScrollToWeek (Lkotlinx/datetime/LocalDate;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun dispatchRawDelta (F)F + public final fun getEndDate ()Lkotlinx/datetime/LocalDate; + public final fun getFirstDayOfWeek ()Ljava/time/DayOfWeek; + public final fun getFirstVisibleWeek ()Lcom/kizitonwose/calendar/core/Week; + public final fun getInteractionSource ()Landroidx/compose/foundation/interaction/InteractionSource; + public final fun getLastVisibleWeek ()Lcom/kizitonwose/calendar/core/Week; + public final fun getLayoutInfo ()Lcom/kizitonwose/calendar/compose/weekcalendar/WeekCalendarLayoutInfo; + public final fun getStartDate ()Lkotlinx/datetime/LocalDate; + public fun isScrollInProgress ()Z + public fun scroll (Landroidx/compose/foundation/MutatePriority;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun scrollToWeek (Lkotlinx/datetime/LocalDate;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun setEndDate (Lkotlinx/datetime/LocalDate;)V + public final fun setFirstDayOfWeek (Ljava/time/DayOfWeek;)V + public final fun setStartDate (Lkotlinx/datetime/LocalDate;)V +} + +public final class com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState$Companion { + public final fun getSaver ()Landroidx/compose/runtime/saveable/Saver; +} + +public final class com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarStateKt { + public static final fun rememberWeekCalendarState (Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;Ljava/time/DayOfWeek;Landroidx/compose/runtime/Composer;II)Lcom/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState; +} + +public final class com/kizitonwose/calendar/core/CalendarDay { + public static final field $stable I + public fun (Lkotlinx/datetime/LocalDate;Lcom/kizitonwose/calendar/core/DayPosition;)V + public final fun component1 ()Lkotlinx/datetime/LocalDate; + public final fun component2 ()Lcom/kizitonwose/calendar/core/DayPosition; + public final fun copy (Lkotlinx/datetime/LocalDate;Lcom/kizitonwose/calendar/core/DayPosition;)Lcom/kizitonwose/calendar/core/CalendarDay; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/core/CalendarDay;Lkotlinx/datetime/LocalDate;Lcom/kizitonwose/calendar/core/DayPosition;ILjava/lang/Object;)Lcom/kizitonwose/calendar/core/CalendarDay; + public fun equals (Ljava/lang/Object;)Z + public final fun getDate ()Lkotlinx/datetime/LocalDate; + public final fun getPosition ()Lcom/kizitonwose/calendar/core/DayPosition; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/core/CalendarMonth { + public static final field $stable I + public final fun component1 ()Lcom/kizitonwose/calendar/core/YearMonth; + public final fun component2 ()Ljava/util/List; + public final fun copy (Lcom/kizitonwose/calendar/core/YearMonth;Ljava/util/List;)Lcom/kizitonwose/calendar/core/CalendarMonth; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/core/CalendarMonth;Lcom/kizitonwose/calendar/core/YearMonth;Ljava/util/List;ILjava/lang/Object;)Lcom/kizitonwose/calendar/core/CalendarMonth; + public fun equals (Ljava/lang/Object;)Z + public final fun getWeekDays ()Ljava/util/List; + public final fun getYearMonth ()Lcom/kizitonwose/calendar/core/YearMonth; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/core/ConvertersKt { + public static final fun toJavaYearMonth (Lcom/kizitonwose/calendar/core/YearMonth;)Ljava/time/YearMonth; + public static final fun toKotlinYearMonth (Ljava/time/YearMonth;)Lcom/kizitonwose/calendar/core/YearMonth; +} + +public final class com/kizitonwose/calendar/core/DayPosition : java/lang/Enum { + public static final field InDate Lcom/kizitonwose/calendar/core/DayPosition; + public static final field MonthDate Lcom/kizitonwose/calendar/core/DayPosition; + public static final field OutDate Lcom/kizitonwose/calendar/core/DayPosition; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public static fun valueOf (Ljava/lang/String;)Lcom/kizitonwose/calendar/core/DayPosition; + public static fun values ()[Lcom/kizitonwose/calendar/core/DayPosition; +} + +public final class com/kizitonwose/calendar/core/ExtensionsKt { + public static final fun atDay (Lcom/kizitonwose/calendar/core/YearMonth;I)Lkotlinx/datetime/LocalDate; + public static final fun atEndOfMonth (Lcom/kizitonwose/calendar/core/YearMonth;)Lkotlinx/datetime/LocalDate; + public static final fun atStartOfMonth (Lcom/kizitonwose/calendar/core/YearMonth;)Lkotlinx/datetime/LocalDate; + public static final fun daysOfWeek (Ljava/time/DayOfWeek;)Ljava/util/List; + public static synthetic fun daysOfWeek$default (Ljava/time/DayOfWeek;ILjava/lang/Object;)Ljava/util/List; + public static final fun getNextMonth (Lcom/kizitonwose/calendar/core/YearMonth;)Lcom/kizitonwose/calendar/core/YearMonth; + public static final fun getPreviousMonth (Lcom/kizitonwose/calendar/core/YearMonth;)Lcom/kizitonwose/calendar/core/YearMonth; + public static final fun getYearMonth (Lkotlinx/datetime/LocalDate;)Lcom/kizitonwose/calendar/core/YearMonth; + public static final fun minusMonths (Lcom/kizitonwose/calendar/core/YearMonth;I)Lcom/kizitonwose/calendar/core/YearMonth; + public static final fun now (Lcom/kizitonwose/calendar/core/YearMonth$Companion;)Lcom/kizitonwose/calendar/core/YearMonth; + public static final fun now (Lkotlinx/datetime/LocalDate$Companion;)Lkotlinx/datetime/LocalDate; + public static final fun plusMonths (Lcom/kizitonwose/calendar/core/YearMonth;I)Lcom/kizitonwose/calendar/core/YearMonth; +} + +public final class com/kizitonwose/calendar/core/Extensions_jvmKt { + public static final fun firstDayOfWeekFromLocale (Landroidx/compose/ui/text/intl/Locale;)Ljava/time/DayOfWeek; + public static synthetic fun firstDayOfWeekFromLocale$default (Landroidx/compose/ui/text/intl/Locale;ILjava/lang/Object;)Ljava/time/DayOfWeek; +} + +public final class com/kizitonwose/calendar/core/OutDateStyle : java/lang/Enum { + public static final field EndOfGrid Lcom/kizitonwose/calendar/core/OutDateStyle; + public static final field EndOfRow Lcom/kizitonwose/calendar/core/OutDateStyle; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public static fun valueOf (Ljava/lang/String;)Lcom/kizitonwose/calendar/core/OutDateStyle; + public static fun values ()[Lcom/kizitonwose/calendar/core/OutDateStyle; +} + +public final class com/kizitonwose/calendar/core/Week { + public static final field $stable I + public final fun component1 ()Ljava/util/List; + public final fun copy (Ljava/util/List;)Lcom/kizitonwose/calendar/core/Week; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/core/Week;Ljava/util/List;ILjava/lang/Object;)Lcom/kizitonwose/calendar/core/Week; + public fun equals (Ljava/lang/Object;)Z + public final fun getDays ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/core/WeekDay { + public static final field $stable I + public fun (Lkotlinx/datetime/LocalDate;Lcom/kizitonwose/calendar/core/WeekDayPosition;)V + public final fun component1 ()Lkotlinx/datetime/LocalDate; + public final fun component2 ()Lcom/kizitonwose/calendar/core/WeekDayPosition; + public final fun copy (Lkotlinx/datetime/LocalDate;Lcom/kizitonwose/calendar/core/WeekDayPosition;)Lcom/kizitonwose/calendar/core/WeekDay; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/core/WeekDay;Lkotlinx/datetime/LocalDate;Lcom/kizitonwose/calendar/core/WeekDayPosition;ILjava/lang/Object;)Lcom/kizitonwose/calendar/core/WeekDay; + public fun equals (Ljava/lang/Object;)Z + public final fun getDate ()Lkotlinx/datetime/LocalDate; + public final fun getPosition ()Lcom/kizitonwose/calendar/core/WeekDayPosition; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/core/WeekDayPosition : java/lang/Enum { + public static final field InDate Lcom/kizitonwose/calendar/core/WeekDayPosition; + public static final field OutDate Lcom/kizitonwose/calendar/core/WeekDayPosition; + public static final field RangeDate Lcom/kizitonwose/calendar/core/WeekDayPosition; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public static fun valueOf (Ljava/lang/String;)Lcom/kizitonwose/calendar/core/WeekDayPosition; + public static fun values ()[Lcom/kizitonwose/calendar/core/WeekDayPosition; +} + +public final class com/kizitonwose/calendar/core/YearMonth : java/io/Serializable, java/lang/Comparable { + public static final field $stable I + public static final field Companion Lcom/kizitonwose/calendar/core/YearMonth$Companion; + public fun (II)V + public fun (ILjava/time/Month;)V + public fun compareTo (Lcom/kizitonwose/calendar/core/YearMonth;)I + public synthetic fun compareTo (Ljava/lang/Object;)I + public final fun component1 ()I + public final fun component2 ()Ljava/time/Month; + public final fun copy (ILjava/time/Month;)Lcom/kizitonwose/calendar/core/YearMonth; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/core/YearMonth;ILjava/time/Month;ILjava/lang/Object;)Lcom/kizitonwose/calendar/core/YearMonth; + public fun equals (Ljava/lang/Object;)Z + public final fun getMonth ()Ljava/time/Month; + public final fun getYear ()I + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/core/YearMonth$Companion { +} + +public final class com/kizitonwose/calendar/data/WeekData { + public static final field $stable I + public final fun copy (Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;)Lcom/kizitonwose/calendar/data/WeekData; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/data/WeekData;Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;ILjava/lang/Object;)Lcom/kizitonwose/calendar/data/WeekData; + public fun equals (Ljava/lang/Object;)Z + public final fun getWeek ()Lcom/kizitonwose/calendar/core/Week; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/data/WeekDataKt { + public static final fun getWeekCalendarAdjustedRange (Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;Ljava/time/DayOfWeek;)Lcom/kizitonwose/calendar/data/WeekDateRange; + public static final fun getWeekCalendarData (Lkotlinx/datetime/LocalDate;ILkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;)Lcom/kizitonwose/calendar/data/WeekData; + public static final fun getWeekIndex (Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;)I + public static final fun getWeekIndicesCount (Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;)I +} + +public final class com/kizitonwose/calendar/data/WeekDateRange { + public static final field $stable I + public fun (Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;)V + public final fun component1 ()Lkotlinx/datetime/LocalDate; + public final fun component2 ()Lkotlinx/datetime/LocalDate; + public final fun copy (Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;)Lcom/kizitonwose/calendar/data/WeekDateRange; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/data/WeekDateRange;Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;ILjava/lang/Object;)Lcom/kizitonwose/calendar/data/WeekDateRange; + public fun equals (Ljava/lang/Object;)Z + public final fun getEndDateAdjusted ()Lkotlinx/datetime/LocalDate; + public final fun getStartDateAdjusted ()Lkotlinx/datetime/LocalDate; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + diff --git a/compose-multiplatform/library/api/desktop/library.api b/compose-multiplatform/library/api/desktop/library.api new file mode 100644 index 00000000..b4a70081 --- /dev/null +++ b/compose-multiplatform/library/api/desktop/library.api @@ -0,0 +1,337 @@ +public final class com/kizitonwose/calendar/compose/CalendarItemInfo : androidx/compose/foundation/lazy/LazyListItemInfo { + public static final field $stable I + public fun (Landroidx/compose/foundation/lazy/LazyListItemInfo;Lcom/kizitonwose/calendar/core/CalendarMonth;)V + public fun getContentType ()Ljava/lang/Object; + public fun getIndex ()I + public fun getKey ()Ljava/lang/Object; + public final fun getMonth ()Lcom/kizitonwose/calendar/core/CalendarMonth; + public fun getOffset ()I + public fun getSize ()I +} + +public final class com/kizitonwose/calendar/compose/CalendarKt { + public static final fun HeatMapCalendar (Landroidx/compose/ui/Modifier;Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState;Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeekHeaderPosition;ZLandroidx/compose/foundation/layout/PaddingValues;Lkotlin/jvm/functions/Function5;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V + public static final fun HorizontalCalendar (Landroidx/compose/ui/Modifier;Lcom/kizitonwose/calendar/compose/CalendarState;ZZZLandroidx/compose/foundation/layout/PaddingValues;Lcom/kizitonwose/calendar/compose/ContentHeightMode;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function5;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function5;Landroidx/compose/runtime/Composer;III)V + public static final fun VerticalCalendar (Landroidx/compose/ui/Modifier;Lcom/kizitonwose/calendar/compose/CalendarState;ZZZLandroidx/compose/foundation/layout/PaddingValues;Lcom/kizitonwose/calendar/compose/ContentHeightMode;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function5;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function5;Landroidx/compose/runtime/Composer;III)V + public static final fun WeekCalendar (Landroidx/compose/ui/Modifier;Lcom/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState;ZZZLandroidx/compose/foundation/layout/PaddingValues;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V +} + +public final class com/kizitonwose/calendar/compose/CalendarLayoutInfo : androidx/compose/foundation/lazy/LazyListLayoutInfo { + public static final field $stable I + public fun (Landroidx/compose/foundation/lazy/LazyListLayoutInfo;Lkotlin/jvm/functions/Function1;)V + public fun getAfterContentPadding ()I + public fun getBeforeContentPadding ()I + public fun getMainAxisItemSpacing ()I + public fun getOrientation ()Landroidx/compose/foundation/gestures/Orientation; + public fun getReverseLayout ()Z + public fun getTotalItemsCount ()I + public fun getViewportEndOffset ()I + public fun getViewportSize-YbymL2g ()J + public fun getViewportStartOffset ()I + public fun getVisibleItemsInfo ()Ljava/util/List; + public final fun getVisibleMonthsInfo ()Ljava/util/List; +} + +public final class com/kizitonwose/calendar/compose/CalendarState : androidx/compose/foundation/gestures/ScrollableState { + public static final field $stable I + public static final field Companion Lcom/kizitonwose/calendar/compose/CalendarState$Companion; + public final fun animateScrollToMonth (Lcom/kizitonwose/calendar/core/YearMonth;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun dispatchRawDelta (F)F + public final fun getEndMonth ()Lcom/kizitonwose/calendar/core/YearMonth; + public final fun getFirstDayOfWeek ()Ljava/time/DayOfWeek; + public final fun getFirstVisibleMonth ()Lcom/kizitonwose/calendar/core/CalendarMonth; + public final fun getInteractionSource ()Landroidx/compose/foundation/interaction/InteractionSource; + public final fun getLastVisibleMonth ()Lcom/kizitonwose/calendar/core/CalendarMonth; + public final fun getLayoutInfo ()Lcom/kizitonwose/calendar/compose/CalendarLayoutInfo; + public final fun getOutDateStyle ()Lcom/kizitonwose/calendar/core/OutDateStyle; + public final fun getStartMonth ()Lcom/kizitonwose/calendar/core/YearMonth; + public fun isScrollInProgress ()Z + public fun scroll (Landroidx/compose/foundation/MutatePriority;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun scrollToMonth (Lcom/kizitonwose/calendar/core/YearMonth;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun setEndMonth (Lcom/kizitonwose/calendar/core/YearMonth;)V + public final fun setFirstDayOfWeek (Ljava/time/DayOfWeek;)V + public final fun setOutDateStyle (Lcom/kizitonwose/calendar/core/OutDateStyle;)V + public final fun setStartMonth (Lcom/kizitonwose/calendar/core/YearMonth;)V +} + +public final class com/kizitonwose/calendar/compose/CalendarState$Companion { +} + +public final class com/kizitonwose/calendar/compose/CalendarStateKt { + public static final fun rememberCalendarState (Lcom/kizitonwose/calendar/core/YearMonth;Lcom/kizitonwose/calendar/core/YearMonth;Lcom/kizitonwose/calendar/core/YearMonth;Ljava/time/DayOfWeek;Lcom/kizitonwose/calendar/core/OutDateStyle;Landroidx/compose/runtime/Composer;II)Lcom/kizitonwose/calendar/compose/CalendarState; +} + +public final class com/kizitonwose/calendar/compose/ComposableSingletons$CalendarMonthsKt { + public static final field INSTANCE Lcom/kizitonwose/calendar/compose/ComposableSingletons$CalendarMonthsKt; + public static field lambda-1 Lkotlin/jvm/functions/Function5; + public static field lambda-2 Lkotlin/jvm/functions/Function5; + public fun ()V + public final fun getLambda-1$library ()Lkotlin/jvm/functions/Function5; + public final fun getLambda-2$library ()Lkotlin/jvm/functions/Function5; +} + +public final class com/kizitonwose/calendar/compose/ContentHeightMode : java/lang/Enum { + public static final field Fill Lcom/kizitonwose/calendar/compose/ContentHeightMode; + public static final field Wrap Lcom/kizitonwose/calendar/compose/ContentHeightMode; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public static fun valueOf (Ljava/lang/String;)Lcom/kizitonwose/calendar/compose/ContentHeightMode; + public static fun values ()[Lcom/kizitonwose/calendar/compose/ContentHeightMode; +} + +public final class com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState : androidx/compose/foundation/gestures/ScrollableState { + public static final field $stable I + public static final field Companion Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState$Companion; + public final fun animateScrollToMonth (Lcom/kizitonwose/calendar/core/YearMonth;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun dispatchRawDelta (F)F + public final fun getEndMonth ()Lcom/kizitonwose/calendar/core/YearMonth; + public final fun getFirstDayOfWeek ()Ljava/time/DayOfWeek; + public final fun getFirstVisibleMonth ()Lcom/kizitonwose/calendar/core/CalendarMonth; + public final fun getInteractionSource ()Landroidx/compose/foundation/interaction/InteractionSource; + public final fun getLastVisibleMonth ()Lcom/kizitonwose/calendar/core/CalendarMonth; + public final fun getLayoutInfo ()Lcom/kizitonwose/calendar/compose/CalendarLayoutInfo; + public final fun getStartMonth ()Lcom/kizitonwose/calendar/core/YearMonth; + public fun isScrollInProgress ()Z + public fun scroll (Landroidx/compose/foundation/MutatePriority;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun scrollToMonth (Lcom/kizitonwose/calendar/core/YearMonth;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun setEndMonth (Lcom/kizitonwose/calendar/core/YearMonth;)V + public final fun setFirstDayOfWeek (Ljava/time/DayOfWeek;)V + public final fun setStartMonth (Lcom/kizitonwose/calendar/core/YearMonth;)V +} + +public final class com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState$Companion { +} + +public final class com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarStateKt { + public static final fun rememberHeatMapCalendarState (Lcom/kizitonwose/calendar/core/YearMonth;Lcom/kizitonwose/calendar/core/YearMonth;Lcom/kizitonwose/calendar/core/YearMonth;Ljava/time/DayOfWeek;Landroidx/compose/runtime/Composer;II)Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState; +} + +public final class com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeek { + public static final field $stable I + public fun (Ljava/util/List;)V + public final fun component1 ()Ljava/util/List; + public final fun copy (Ljava/util/List;)Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeek; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeek;Ljava/util/List;ILjava/lang/Object;)Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeek; + public fun equals (Ljava/lang/Object;)Z + public final fun getDays ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeekHeaderPosition : java/lang/Enum { + public static final field End Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeekHeaderPosition; + public static final field Start Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeekHeaderPosition; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public static fun valueOf (Ljava/lang/String;)Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeekHeaderPosition; + public static fun values ()[Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeekHeaderPosition; +} + +public final class com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarItemInfo : androidx/compose/foundation/lazy/LazyListItemInfo { + public static final field $stable I + public fun (Landroidx/compose/foundation/lazy/LazyListItemInfo;Lcom/kizitonwose/calendar/core/Week;)V + public fun getContentType ()Ljava/lang/Object; + public fun getIndex ()I + public fun getKey ()Ljava/lang/Object; + public fun getOffset ()I + public fun getSize ()I + public final fun getWeek ()Lcom/kizitonwose/calendar/core/Week; +} + +public final class com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarLayoutInfo : androidx/compose/foundation/lazy/LazyListLayoutInfo { + public static final field $stable I + public fun (Landroidx/compose/foundation/lazy/LazyListLayoutInfo;Lkotlin/jvm/functions/Function1;)V + public fun getAfterContentPadding ()I + public fun getBeforeContentPadding ()I + public fun getMainAxisItemSpacing ()I + public fun getOrientation ()Landroidx/compose/foundation/gestures/Orientation; + public fun getReverseLayout ()Z + public fun getTotalItemsCount ()I + public fun getViewportEndOffset ()I + public fun getViewportSize-YbymL2g ()J + public fun getViewportStartOffset ()I + public fun getVisibleItemsInfo ()Ljava/util/List; + public final fun getVisibleWeeksInfo ()Ljava/util/List; +} + +public final class com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState : androidx/compose/foundation/gestures/ScrollableState { + public static final field $stable I + public static final field Companion Lcom/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState$Companion; + public final fun animateScrollToWeek (Lkotlinx/datetime/LocalDate;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun dispatchRawDelta (F)F + public final fun getEndDate ()Lkotlinx/datetime/LocalDate; + public final fun getFirstDayOfWeek ()Ljava/time/DayOfWeek; + public final fun getFirstVisibleWeek ()Lcom/kizitonwose/calendar/core/Week; + public final fun getInteractionSource ()Landroidx/compose/foundation/interaction/InteractionSource; + public final fun getLastVisibleWeek ()Lcom/kizitonwose/calendar/core/Week; + public final fun getLayoutInfo ()Lcom/kizitonwose/calendar/compose/weekcalendar/WeekCalendarLayoutInfo; + public final fun getStartDate ()Lkotlinx/datetime/LocalDate; + public fun isScrollInProgress ()Z + public fun scroll (Landroidx/compose/foundation/MutatePriority;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun scrollToWeek (Lkotlinx/datetime/LocalDate;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun setEndDate (Lkotlinx/datetime/LocalDate;)V + public final fun setFirstDayOfWeek (Ljava/time/DayOfWeek;)V + public final fun setStartDate (Lkotlinx/datetime/LocalDate;)V +} + +public final class com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState$Companion { + public final fun getSaver ()Landroidx/compose/runtime/saveable/Saver; +} + +public final class com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarStateKt { + public static final fun rememberWeekCalendarState (Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;Ljava/time/DayOfWeek;Landroidx/compose/runtime/Composer;II)Lcom/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState; +} + +public final class com/kizitonwose/calendar/core/CalendarDay { + public static final field $stable I + public fun (Lkotlinx/datetime/LocalDate;Lcom/kizitonwose/calendar/core/DayPosition;)V + public final fun component1 ()Lkotlinx/datetime/LocalDate; + public final fun component2 ()Lcom/kizitonwose/calendar/core/DayPosition; + public final fun copy (Lkotlinx/datetime/LocalDate;Lcom/kizitonwose/calendar/core/DayPosition;)Lcom/kizitonwose/calendar/core/CalendarDay; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/core/CalendarDay;Lkotlinx/datetime/LocalDate;Lcom/kizitonwose/calendar/core/DayPosition;ILjava/lang/Object;)Lcom/kizitonwose/calendar/core/CalendarDay; + public fun equals (Ljava/lang/Object;)Z + public final fun getDate ()Lkotlinx/datetime/LocalDate; + public final fun getPosition ()Lcom/kizitonwose/calendar/core/DayPosition; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/core/CalendarMonth { + public static final field $stable I + public final fun component1 ()Lcom/kizitonwose/calendar/core/YearMonth; + public final fun component2 ()Ljava/util/List; + public final fun copy (Lcom/kizitonwose/calendar/core/YearMonth;Ljava/util/List;)Lcom/kizitonwose/calendar/core/CalendarMonth; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/core/CalendarMonth;Lcom/kizitonwose/calendar/core/YearMonth;Ljava/util/List;ILjava/lang/Object;)Lcom/kizitonwose/calendar/core/CalendarMonth; + public fun equals (Ljava/lang/Object;)Z + public final fun getWeekDays ()Ljava/util/List; + public final fun getYearMonth ()Lcom/kizitonwose/calendar/core/YearMonth; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/core/ConvertersKt { + public static final fun toJavaYearMonth (Lcom/kizitonwose/calendar/core/YearMonth;)Ljava/time/YearMonth; + public static final fun toKotlinYearMonth (Ljava/time/YearMonth;)Lcom/kizitonwose/calendar/core/YearMonth; +} + +public final class com/kizitonwose/calendar/core/DayPosition : java/lang/Enum { + public static final field InDate Lcom/kizitonwose/calendar/core/DayPosition; + public static final field MonthDate Lcom/kizitonwose/calendar/core/DayPosition; + public static final field OutDate Lcom/kizitonwose/calendar/core/DayPosition; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public static fun valueOf (Ljava/lang/String;)Lcom/kizitonwose/calendar/core/DayPosition; + public static fun values ()[Lcom/kizitonwose/calendar/core/DayPosition; +} + +public final class com/kizitonwose/calendar/core/ExtensionsKt { + public static final fun atDay (Lcom/kizitonwose/calendar/core/YearMonth;I)Lkotlinx/datetime/LocalDate; + public static final fun atEndOfMonth (Lcom/kizitonwose/calendar/core/YearMonth;)Lkotlinx/datetime/LocalDate; + public static final fun atStartOfMonth (Lcom/kizitonwose/calendar/core/YearMonth;)Lkotlinx/datetime/LocalDate; + public static final fun daysOfWeek (Ljava/time/DayOfWeek;)Ljava/util/List; + public static synthetic fun daysOfWeek$default (Ljava/time/DayOfWeek;ILjava/lang/Object;)Ljava/util/List; + public static final fun getNextMonth (Lcom/kizitonwose/calendar/core/YearMonth;)Lcom/kizitonwose/calendar/core/YearMonth; + public static final fun getPreviousMonth (Lcom/kizitonwose/calendar/core/YearMonth;)Lcom/kizitonwose/calendar/core/YearMonth; + public static final fun getYearMonth (Lkotlinx/datetime/LocalDate;)Lcom/kizitonwose/calendar/core/YearMonth; + public static final fun minusMonths (Lcom/kizitonwose/calendar/core/YearMonth;I)Lcom/kizitonwose/calendar/core/YearMonth; + public static final fun now (Lcom/kizitonwose/calendar/core/YearMonth$Companion;)Lcom/kizitonwose/calendar/core/YearMonth; + public static final fun now (Lkotlinx/datetime/LocalDate$Companion;)Lkotlinx/datetime/LocalDate; + public static final fun plusMonths (Lcom/kizitonwose/calendar/core/YearMonth;I)Lcom/kizitonwose/calendar/core/YearMonth; +} + +public final class com/kizitonwose/calendar/core/Extensions_jvmKt { + public static final fun firstDayOfWeekFromLocale (Landroidx/compose/ui/text/intl/Locale;)Ljava/time/DayOfWeek; + public static synthetic fun firstDayOfWeekFromLocale$default (Landroidx/compose/ui/text/intl/Locale;ILjava/lang/Object;)Ljava/time/DayOfWeek; +} + +public final class com/kizitonwose/calendar/core/OutDateStyle : java/lang/Enum { + public static final field EndOfGrid Lcom/kizitonwose/calendar/core/OutDateStyle; + public static final field EndOfRow Lcom/kizitonwose/calendar/core/OutDateStyle; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public static fun valueOf (Ljava/lang/String;)Lcom/kizitonwose/calendar/core/OutDateStyle; + public static fun values ()[Lcom/kizitonwose/calendar/core/OutDateStyle; +} + +public final class com/kizitonwose/calendar/core/Week { + public static final field $stable I + public final fun component1 ()Ljava/util/List; + public final fun copy (Ljava/util/List;)Lcom/kizitonwose/calendar/core/Week; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/core/Week;Ljava/util/List;ILjava/lang/Object;)Lcom/kizitonwose/calendar/core/Week; + public fun equals (Ljava/lang/Object;)Z + public final fun getDays ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/core/WeekDay { + public static final field $stable I + public fun (Lkotlinx/datetime/LocalDate;Lcom/kizitonwose/calendar/core/WeekDayPosition;)V + public final fun component1 ()Lkotlinx/datetime/LocalDate; + public final fun component2 ()Lcom/kizitonwose/calendar/core/WeekDayPosition; + public final fun copy (Lkotlinx/datetime/LocalDate;Lcom/kizitonwose/calendar/core/WeekDayPosition;)Lcom/kizitonwose/calendar/core/WeekDay; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/core/WeekDay;Lkotlinx/datetime/LocalDate;Lcom/kizitonwose/calendar/core/WeekDayPosition;ILjava/lang/Object;)Lcom/kizitonwose/calendar/core/WeekDay; + public fun equals (Ljava/lang/Object;)Z + public final fun getDate ()Lkotlinx/datetime/LocalDate; + public final fun getPosition ()Lcom/kizitonwose/calendar/core/WeekDayPosition; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/core/WeekDayPosition : java/lang/Enum { + public static final field InDate Lcom/kizitonwose/calendar/core/WeekDayPosition; + public static final field OutDate Lcom/kizitonwose/calendar/core/WeekDayPosition; + public static final field RangeDate Lcom/kizitonwose/calendar/core/WeekDayPosition; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public static fun valueOf (Ljava/lang/String;)Lcom/kizitonwose/calendar/core/WeekDayPosition; + public static fun values ()[Lcom/kizitonwose/calendar/core/WeekDayPosition; +} + +public final class com/kizitonwose/calendar/core/YearMonth : java/io/Serializable, java/lang/Comparable { + public static final field $stable I + public static final field Companion Lcom/kizitonwose/calendar/core/YearMonth$Companion; + public fun (II)V + public fun (ILjava/time/Month;)V + public fun compareTo (Lcom/kizitonwose/calendar/core/YearMonth;)I + public synthetic fun compareTo (Ljava/lang/Object;)I + public final fun component1 ()I + public final fun component2 ()Ljava/time/Month; + public final fun copy (ILjava/time/Month;)Lcom/kizitonwose/calendar/core/YearMonth; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/core/YearMonth;ILjava/time/Month;ILjava/lang/Object;)Lcom/kizitonwose/calendar/core/YearMonth; + public fun equals (Ljava/lang/Object;)Z + public final fun getMonth ()Ljava/time/Month; + public final fun getYear ()I + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/core/YearMonth$Companion { +} + +public final class com/kizitonwose/calendar/data/WeekData { + public static final field $stable I + public final fun copy (Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;)Lcom/kizitonwose/calendar/data/WeekData; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/data/WeekData;Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;ILjava/lang/Object;)Lcom/kizitonwose/calendar/data/WeekData; + public fun equals (Ljava/lang/Object;)Z + public final fun getWeek ()Lcom/kizitonwose/calendar/core/Week; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/data/WeekDataKt { + public static final fun getWeekCalendarAdjustedRange (Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;Ljava/time/DayOfWeek;)Lcom/kizitonwose/calendar/data/WeekDateRange; + public static final fun getWeekCalendarData (Lkotlinx/datetime/LocalDate;ILkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;)Lcom/kizitonwose/calendar/data/WeekData; + public static final fun getWeekIndex (Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;)I + public static final fun getWeekIndicesCount (Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;)I +} + +public final class com/kizitonwose/calendar/data/WeekDateRange { + public static final field $stable I + public fun (Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;)V + public final fun component1 ()Lkotlinx/datetime/LocalDate; + public final fun component2 ()Lkotlinx/datetime/LocalDate; + public final fun copy (Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;)Lcom/kizitonwose/calendar/data/WeekDateRange; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/data/WeekDateRange;Lkotlinx/datetime/LocalDate;Lkotlinx/datetime/LocalDate;ILjava/lang/Object;)Lcom/kizitonwose/calendar/data/WeekDateRange; + public fun equals (Ljava/lang/Object;)Z + public final fun getEndDateAdjusted ()Lkotlinx/datetime/LocalDate; + public final fun getStartDateAdjusted ()Lkotlinx/datetime/LocalDate; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + diff --git a/compose/api/compose.api b/compose/api/compose.api new file mode 100644 index 00000000..336cfe9a --- /dev/null +++ b/compose/api/compose.api @@ -0,0 +1,182 @@ +public final class com/kizitonwose/calendar/compose/CalendarItemInfo : androidx/compose/foundation/lazy/LazyListItemInfo { + public static final field $stable I + public fun (Landroidx/compose/foundation/lazy/LazyListItemInfo;Lcom/kizitonwose/calendar/core/CalendarMonth;)V + public fun getContentType ()Ljava/lang/Object; + public fun getIndex ()I + public fun getKey ()Ljava/lang/Object; + public final fun getMonth ()Lcom/kizitonwose/calendar/core/CalendarMonth; + public fun getOffset ()I + public fun getSize ()I +} + +public final class com/kizitonwose/calendar/compose/CalendarKt { + public static final fun HeatMapCalendar (Landroidx/compose/ui/Modifier;Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState;Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeekHeaderPosition;ZLandroidx/compose/foundation/layout/PaddingValues;Lkotlin/jvm/functions/Function5;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V + public static final fun HorizontalCalendar (Landroidx/compose/ui/Modifier;Lcom/kizitonwose/calendar/compose/CalendarState;ZZZLandroidx/compose/foundation/layout/PaddingValues;Lcom/kizitonwose/calendar/compose/ContentHeightMode;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function5;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function5;Landroidx/compose/runtime/Composer;III)V + public static final fun VerticalCalendar (Landroidx/compose/ui/Modifier;Lcom/kizitonwose/calendar/compose/CalendarState;ZZZLandroidx/compose/foundation/layout/PaddingValues;Lcom/kizitonwose/calendar/compose/ContentHeightMode;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function5;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function5;Landroidx/compose/runtime/Composer;III)V + public static final fun WeekCalendar (Landroidx/compose/ui/Modifier;Lcom/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState;ZZZLandroidx/compose/foundation/layout/PaddingValues;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V +} + +public final class com/kizitonwose/calendar/compose/CalendarLayoutInfo : androidx/compose/foundation/lazy/LazyListLayoutInfo { + public static final field $stable I + public fun (Landroidx/compose/foundation/lazy/LazyListLayoutInfo;Lkotlin/jvm/functions/Function1;)V + public fun getAfterContentPadding ()I + public fun getBeforeContentPadding ()I + public fun getMainAxisItemSpacing ()I + public fun getOrientation ()Landroidx/compose/foundation/gestures/Orientation; + public fun getReverseLayout ()Z + public fun getTotalItemsCount ()I + public fun getViewportEndOffset ()I + public fun getViewportSize-YbymL2g ()J + public fun getViewportStartOffset ()I + public fun getVisibleItemsInfo ()Ljava/util/List; + public final fun getVisibleMonthsInfo ()Ljava/util/List; +} + +public final class com/kizitonwose/calendar/compose/CalendarState : androidx/compose/foundation/gestures/ScrollableState { + public static final field $stable I + public static final field Companion Lcom/kizitonwose/calendar/compose/CalendarState$Companion; + public final fun animateScrollToMonth (Ljava/time/YearMonth;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun dispatchRawDelta (F)F + public final fun getEndMonth ()Ljava/time/YearMonth; + public final fun getFirstDayOfWeek ()Ljava/time/DayOfWeek; + public final fun getFirstVisibleMonth ()Lcom/kizitonwose/calendar/core/CalendarMonth; + public final fun getInteractionSource ()Landroidx/compose/foundation/interaction/InteractionSource; + public final fun getLastVisibleMonth ()Lcom/kizitonwose/calendar/core/CalendarMonth; + public final fun getLayoutInfo ()Lcom/kizitonwose/calendar/compose/CalendarLayoutInfo; + public final fun getOutDateStyle ()Lcom/kizitonwose/calendar/core/OutDateStyle; + public final fun getStartMonth ()Ljava/time/YearMonth; + public fun isScrollInProgress ()Z + public fun scroll (Landroidx/compose/foundation/MutatePriority;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun scrollToMonth (Ljava/time/YearMonth;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun setEndMonth (Ljava/time/YearMonth;)V + public final fun setFirstDayOfWeek (Ljava/time/DayOfWeek;)V + public final fun setOutDateStyle (Lcom/kizitonwose/calendar/core/OutDateStyle;)V + public final fun setStartMonth (Ljava/time/YearMonth;)V +} + +public final class com/kizitonwose/calendar/compose/CalendarState$Companion { +} + +public final class com/kizitonwose/calendar/compose/CalendarStateKt { + public static final fun rememberCalendarState (Ljava/time/YearMonth;Ljava/time/YearMonth;Ljava/time/YearMonth;Ljava/time/DayOfWeek;Lcom/kizitonwose/calendar/core/OutDateStyle;Landroidx/compose/runtime/Composer;II)Lcom/kizitonwose/calendar/compose/CalendarState; +} + +public final class com/kizitonwose/calendar/compose/ComposableSingletons$CalendarMonthsKt { + public static final field INSTANCE Lcom/kizitonwose/calendar/compose/ComposableSingletons$CalendarMonthsKt; + public static field lambda-1 Lkotlin/jvm/functions/Function5; + public static field lambda-2 Lkotlin/jvm/functions/Function5; + public fun ()V + public final fun getLambda-1$compose_release ()Lkotlin/jvm/functions/Function5; + public final fun getLambda-2$compose_release ()Lkotlin/jvm/functions/Function5; +} + +public final class com/kizitonwose/calendar/compose/ContentHeightMode : java/lang/Enum { + public static final field Fill Lcom/kizitonwose/calendar/compose/ContentHeightMode; + public static final field Wrap Lcom/kizitonwose/calendar/compose/ContentHeightMode; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public static fun valueOf (Ljava/lang/String;)Lcom/kizitonwose/calendar/compose/ContentHeightMode; + public static fun values ()[Lcom/kizitonwose/calendar/compose/ContentHeightMode; +} + +public final class com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState : androidx/compose/foundation/gestures/ScrollableState { + public static final field $stable I + public static final field Companion Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState$Companion; + public final fun animateScrollToMonth (Ljava/time/YearMonth;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun dispatchRawDelta (F)F + public final fun getEndMonth ()Ljava/time/YearMonth; + public final fun getFirstDayOfWeek ()Ljava/time/DayOfWeek; + public final fun getFirstVisibleMonth ()Lcom/kizitonwose/calendar/core/CalendarMonth; + public final fun getInteractionSource ()Landroidx/compose/foundation/interaction/InteractionSource; + public final fun getLastVisibleMonth ()Lcom/kizitonwose/calendar/core/CalendarMonth; + public final fun getLayoutInfo ()Lcom/kizitonwose/calendar/compose/CalendarLayoutInfo; + public final fun getStartMonth ()Ljava/time/YearMonth; + public fun isScrollInProgress ()Z + public fun scroll (Landroidx/compose/foundation/MutatePriority;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun scrollToMonth (Ljava/time/YearMonth;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun setEndMonth (Ljava/time/YearMonth;)V + public final fun setFirstDayOfWeek (Ljava/time/DayOfWeek;)V + public final fun setStartMonth (Ljava/time/YearMonth;)V +} + +public final class com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState$Companion { +} + +public final class com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarStateKt { + public static final fun rememberHeatMapCalendarState (Ljava/time/YearMonth;Ljava/time/YearMonth;Ljava/time/YearMonth;Ljava/time/DayOfWeek;Landroidx/compose/runtime/Composer;II)Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState; +} + +public final class com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeek : java/io/Serializable { + public static final field $stable I + public fun (Ljava/util/List;)V + public final fun component1 ()Ljava/util/List; + public final fun copy (Ljava/util/List;)Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeek; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeek;Ljava/util/List;ILjava/lang/Object;)Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeek; + public fun equals (Ljava/lang/Object;)Z + public final fun getDays ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeekHeaderPosition : java/lang/Enum { + public static final field End Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeekHeaderPosition; + public static final field Start Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeekHeaderPosition; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public static fun valueOf (Ljava/lang/String;)Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeekHeaderPosition; + public static fun values ()[Lcom/kizitonwose/calendar/compose/heatmapcalendar/HeatMapWeekHeaderPosition; +} + +public final class com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarItemInfo : androidx/compose/foundation/lazy/LazyListItemInfo { + public static final field $stable I + public fun (Landroidx/compose/foundation/lazy/LazyListItemInfo;Lcom/kizitonwose/calendar/core/Week;)V + public fun getContentType ()Ljava/lang/Object; + public fun getIndex ()I + public fun getKey ()Ljava/lang/Object; + public fun getOffset ()I + public fun getSize ()I + public final fun getWeek ()Lcom/kizitonwose/calendar/core/Week; +} + +public final class com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarLayoutInfo : androidx/compose/foundation/lazy/LazyListLayoutInfo { + public static final field $stable I + public fun (Landroidx/compose/foundation/lazy/LazyListLayoutInfo;Lkotlin/jvm/functions/Function1;)V + public fun getAfterContentPadding ()I + public fun getBeforeContentPadding ()I + public fun getMainAxisItemSpacing ()I + public fun getOrientation ()Landroidx/compose/foundation/gestures/Orientation; + public fun getReverseLayout ()Z + public fun getTotalItemsCount ()I + public fun getViewportEndOffset ()I + public fun getViewportSize-YbymL2g ()J + public fun getViewportStartOffset ()I + public fun getVisibleItemsInfo ()Ljava/util/List; + public final fun getVisibleWeeksInfo ()Ljava/util/List; +} + +public final class com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState : androidx/compose/foundation/gestures/ScrollableState { + public static final field $stable I + public static final field Companion Lcom/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState$Companion; + public final fun animateScrollToWeek (Ljava/time/LocalDate;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun dispatchRawDelta (F)F + public final fun getEndDate ()Ljava/time/LocalDate; + public final fun getFirstDayOfWeek ()Ljava/time/DayOfWeek; + public final fun getFirstVisibleWeek ()Lcom/kizitonwose/calendar/core/Week; + public final fun getInteractionSource ()Landroidx/compose/foundation/interaction/InteractionSource; + public final fun getLastVisibleWeek ()Lcom/kizitonwose/calendar/core/Week; + public final fun getLayoutInfo ()Lcom/kizitonwose/calendar/compose/weekcalendar/WeekCalendarLayoutInfo; + public final fun getStartDate ()Ljava/time/LocalDate; + public fun isScrollInProgress ()Z + public fun scroll (Landroidx/compose/foundation/MutatePriority;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun scrollToWeek (Ljava/time/LocalDate;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun setEndDate (Ljava/time/LocalDate;)V + public final fun setFirstDayOfWeek (Ljava/time/DayOfWeek;)V + public final fun setStartDate (Ljava/time/LocalDate;)V +} + +public final class com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState$Companion { + public final fun getSaver ()Landroidx/compose/runtime/saveable/Saver; +} + +public final class com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarStateKt { + public static final fun rememberWeekCalendarState (Ljava/time/LocalDate;Ljava/time/LocalDate;Ljava/time/LocalDate;Ljava/time/DayOfWeek;Landroidx/compose/runtime/Composer;II)Lcom/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState; +} + diff --git a/core/api/core.api b/core/api/core.api new file mode 100644 index 00000000..dca5da5f --- /dev/null +++ b/core/api/core.api @@ -0,0 +1,89 @@ +public final class com/kizitonwose/calendar/core/CalendarDay : java/io/Serializable { + public fun (Ljava/time/LocalDate;Lcom/kizitonwose/calendar/core/DayPosition;)V + public final fun component1 ()Ljava/time/LocalDate; + public final fun component2 ()Lcom/kizitonwose/calendar/core/DayPosition; + public final fun copy (Ljava/time/LocalDate;Lcom/kizitonwose/calendar/core/DayPosition;)Lcom/kizitonwose/calendar/core/CalendarDay; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/core/CalendarDay;Ljava/time/LocalDate;Lcom/kizitonwose/calendar/core/DayPosition;ILjava/lang/Object;)Lcom/kizitonwose/calendar/core/CalendarDay; + public fun equals (Ljava/lang/Object;)Z + public final fun getDate ()Ljava/time/LocalDate; + public final fun getPosition ()Lcom/kizitonwose/calendar/core/DayPosition; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/core/CalendarMonth : java/io/Serializable { + public fun (Ljava/time/YearMonth;Ljava/util/List;)V + public final fun component1 ()Ljava/time/YearMonth; + public final fun component2 ()Ljava/util/List; + public final fun copy (Ljava/time/YearMonth;Ljava/util/List;)Lcom/kizitonwose/calendar/core/CalendarMonth; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/core/CalendarMonth;Ljava/time/YearMonth;Ljava/util/List;ILjava/lang/Object;)Lcom/kizitonwose/calendar/core/CalendarMonth; + public fun equals (Ljava/lang/Object;)Z + public final fun getWeekDays ()Ljava/util/List; + public final fun getYearMonth ()Ljava/time/YearMonth; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/core/DayPosition : java/lang/Enum { + public static final field InDate Lcom/kizitonwose/calendar/core/DayPosition; + public static final field MonthDate Lcom/kizitonwose/calendar/core/DayPosition; + public static final field OutDate Lcom/kizitonwose/calendar/core/DayPosition; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public static fun valueOf (Ljava/lang/String;)Lcom/kizitonwose/calendar/core/DayPosition; + public static fun values ()[Lcom/kizitonwose/calendar/core/DayPosition; +} + +public final class com/kizitonwose/calendar/core/ExtensionsKt { + public static final fun atStartOfMonth (Ljava/time/YearMonth;)Ljava/time/LocalDate; + public static final fun daysOfWeek ()Ljava/util/List; + public static final fun daysOfWeek (Ljava/time/DayOfWeek;)Ljava/util/List; + public static synthetic fun daysOfWeek$default (Ljava/time/DayOfWeek;ILjava/lang/Object;)Ljava/util/List; + public static final fun firstDayOfWeekFromLocale ()Ljava/time/DayOfWeek; + public static final fun firstDayOfWeekFromLocale (Ljava/util/Locale;)Ljava/time/DayOfWeek; + public static synthetic fun firstDayOfWeekFromLocale$default (Ljava/util/Locale;ILjava/lang/Object;)Ljava/time/DayOfWeek; + public static final fun getNextMonth (Ljava/time/YearMonth;)Ljava/time/YearMonth; + public static final fun getPreviousMonth (Ljava/time/YearMonth;)Ljava/time/YearMonth; + public static final fun getYearMonth (Ljava/time/LocalDate;)Ljava/time/YearMonth; +} + +public final class com/kizitonwose/calendar/core/OutDateStyle : java/lang/Enum { + public static final field EndOfGrid Lcom/kizitonwose/calendar/core/OutDateStyle; + public static final field EndOfRow Lcom/kizitonwose/calendar/core/OutDateStyle; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public static fun valueOf (Ljava/lang/String;)Lcom/kizitonwose/calendar/core/OutDateStyle; + public static fun values ()[Lcom/kizitonwose/calendar/core/OutDateStyle; +} + +public final class com/kizitonwose/calendar/core/Week : java/io/Serializable { + public fun (Ljava/util/List;)V + public final fun component1 ()Ljava/util/List; + public final fun copy (Ljava/util/List;)Lcom/kizitonwose/calendar/core/Week; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/core/Week;Ljava/util/List;ILjava/lang/Object;)Lcom/kizitonwose/calendar/core/Week; + public fun equals (Ljava/lang/Object;)Z + public final fun getDays ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/core/WeekDay : java/io/Serializable { + public fun (Ljava/time/LocalDate;Lcom/kizitonwose/calendar/core/WeekDayPosition;)V + public final fun component1 ()Ljava/time/LocalDate; + public final fun component2 ()Lcom/kizitonwose/calendar/core/WeekDayPosition; + public final fun copy (Ljava/time/LocalDate;Lcom/kizitonwose/calendar/core/WeekDayPosition;)Lcom/kizitonwose/calendar/core/WeekDay; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/core/WeekDay;Ljava/time/LocalDate;Lcom/kizitonwose/calendar/core/WeekDayPosition;ILjava/lang/Object;)Lcom/kizitonwose/calendar/core/WeekDay; + public fun equals (Ljava/lang/Object;)Z + public final fun getDate ()Ljava/time/LocalDate; + public final fun getPosition ()Lcom/kizitonwose/calendar/core/WeekDayPosition; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/core/WeekDayPosition : java/lang/Enum { + public static final field InDate Lcom/kizitonwose/calendar/core/WeekDayPosition; + public static final field OutDate Lcom/kizitonwose/calendar/core/WeekDayPosition; + public static final field RangeDate Lcom/kizitonwose/calendar/core/WeekDayPosition; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public static fun valueOf (Ljava/lang/String;)Lcom/kizitonwose/calendar/core/WeekDayPosition; + public static fun values ()[Lcom/kizitonwose/calendar/core/WeekDayPosition; +} + diff --git a/data/api/data.api b/data/api/data.api new file mode 100644 index 00000000..8c53e103 --- /dev/null +++ b/data/api/data.api @@ -0,0 +1,79 @@ +public final class com/kizitonwose/calendar/data/DataStore : java/util/Map, kotlin/jvm/internal/markers/KMutableMap { + public fun (Ljava/util/Map;Lkotlin/jvm/functions/Function1;)V + public synthetic fun (Ljava/util/Map;Lkotlin/jvm/functions/Function1;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun clear ()V + public fun containsKey (I)Z + public final fun containsKey (Ljava/lang/Object;)Z + public fun containsValue (Ljava/lang/Object;)Z + public final fun entrySet ()Ljava/util/Set; + public fun get (I)Ljava/lang/Object; + public final fun get (Ljava/lang/Object;)Ljava/lang/Object; + public fun getEntries ()Ljava/util/Set; + public fun getKeys ()Ljava/util/Set; + public fun getSize ()I + public fun getValues ()Ljava/util/Collection; + public fun isEmpty ()Z + public final fun keySet ()Ljava/util/Set; + public fun put (ILjava/lang/Object;)Ljava/lang/Object; + public synthetic fun put (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; + public fun putAll (Ljava/util/Map;)V + public fun remove (I)Ljava/lang/Object; + public final fun remove (Ljava/lang/Object;)Ljava/lang/Object; + public final fun size ()I + public final fun values ()Ljava/util/Collection; +} + +public final class com/kizitonwose/calendar/data/ExtensionsKt { + public static final fun daysUntil (Ljava/time/DayOfWeek;Ljava/time/DayOfWeek;)I +} + +public final class com/kizitonwose/calendar/data/MonthData { + public final fun copy (Ljava/time/YearMonth;II)Lcom/kizitonwose/calendar/data/MonthData; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/data/MonthData;Ljava/time/YearMonth;IIILjava/lang/Object;)Lcom/kizitonwose/calendar/data/MonthData; + public fun equals (Ljava/lang/Object;)Z + public final fun getCalendarMonth ()Lcom/kizitonwose/calendar/core/CalendarMonth; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/data/MonthDataKt { + public static final fun getCalendarMonthData (Ljava/time/YearMonth;ILjava/time/DayOfWeek;Lcom/kizitonwose/calendar/core/OutDateStyle;)Lcom/kizitonwose/calendar/data/MonthData; + public static final fun getHeatMapCalendarMonthData (Ljava/time/YearMonth;ILjava/time/DayOfWeek;)Lcom/kizitonwose/calendar/data/MonthData; + public static final fun getMonthIndex (Ljava/time/YearMonth;Ljava/time/YearMonth;)I + public static final fun getMonthIndicesCount (Ljava/time/YearMonth;Ljava/time/YearMonth;)I +} + +public final class com/kizitonwose/calendar/data/UtilsKt { + public static final fun checkDateRange (Ljava/time/LocalDate;Ljava/time/LocalDate;)V + public static final fun checkDateRange (Ljava/time/YearMonth;Ljava/time/YearMonth;)V +} + +public final class com/kizitonwose/calendar/data/WeekData { + public final fun copy (Ljava/time/LocalDate;Ljava/time/LocalDate;Ljava/time/LocalDate;)Lcom/kizitonwose/calendar/data/WeekData; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/data/WeekData;Ljava/time/LocalDate;Ljava/time/LocalDate;Ljava/time/LocalDate;ILjava/lang/Object;)Lcom/kizitonwose/calendar/data/WeekData; + public fun equals (Ljava/lang/Object;)Z + public final fun getWeek ()Lcom/kizitonwose/calendar/core/Week; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class com/kizitonwose/calendar/data/WeekDataKt { + public static final fun getWeekCalendarAdjustedRange (Ljava/time/LocalDate;Ljava/time/LocalDate;Ljava/time/DayOfWeek;)Lcom/kizitonwose/calendar/data/WeekDateRange; + public static final fun getWeekCalendarData (Ljava/time/LocalDate;ILjava/time/LocalDate;Ljava/time/LocalDate;)Lcom/kizitonwose/calendar/data/WeekData; + public static final fun getWeekIndex (Ljava/time/LocalDate;Ljava/time/LocalDate;)I + public static final fun getWeekIndicesCount (Ljava/time/LocalDate;Ljava/time/LocalDate;)I +} + +public final class com/kizitonwose/calendar/data/WeekDateRange { + public fun (Ljava/time/LocalDate;Ljava/time/LocalDate;)V + public final fun component1 ()Ljava/time/LocalDate; + public final fun component2 ()Ljava/time/LocalDate; + public final fun copy (Ljava/time/LocalDate;Ljava/time/LocalDate;)Lcom/kizitonwose/calendar/data/WeekDateRange; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/data/WeekDateRange;Ljava/time/LocalDate;Ljava/time/LocalDate;ILjava/lang/Object;)Lcom/kizitonwose/calendar/data/WeekDateRange; + public fun equals (Ljava/lang/Object;)Z + public final fun getEndDateAdjusted ()Ljava/time/LocalDate; + public final fun getStartDateAdjusted ()Ljava/time/LocalDate; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 1ca08a8b..75d3da56 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -45,6 +45,7 @@ kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } kotlinter = { id = "org.jmailen.kotlinter", version = "4.3.0" } mavenPublish = { id = "com.vanniktech.maven.publish", version = "0.28.0" } versionCheck = { id = "com.github.ben-manes.versions", version = "0.51.0" } +bcv = "org.jetbrains.kotlinx.binary-compatibility-validator:0.15.1" # KMM kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" } diff --git a/view/api/view.api b/view/api/view.api new file mode 100644 index 00000000..fdc70dcb --- /dev/null +++ b/view/api/view.api @@ -0,0 +1,161 @@ +public abstract interface class com/kizitonwose/calendar/view/Binder { + public abstract fun bind (Lcom/kizitonwose/calendar/view/ViewContainer;Ljava/lang/Object;)V + public abstract fun create (Landroid/view/View;)Lcom/kizitonwose/calendar/view/ViewContainer; +} + +public class com/kizitonwose/calendar/view/CalendarView : androidx/recyclerview/widget/RecyclerView { + public fun (Landroid/content/Context;)V + public fun (Landroid/content/Context;Landroid/util/AttributeSet;)V + public fun (Landroid/content/Context;Landroid/util/AttributeSet;I)V + public final fun findFirstVisibleDay ()Lcom/kizitonwose/calendar/core/CalendarDay; + public final fun findFirstVisibleMonth ()Lcom/kizitonwose/calendar/core/CalendarMonth; + public final fun findLastVisibleDay ()Lcom/kizitonwose/calendar/core/CalendarDay; + public final fun findLastVisibleMonth ()Lcom/kizitonwose/calendar/core/CalendarMonth; + public final fun getDayBinder ()Lcom/kizitonwose/calendar/view/MonthDayBinder; + public final fun getDaySize ()Lcom/kizitonwose/calendar/view/DaySize; + public final fun getDayViewResource ()I + public final fun getMonthFooterBinder ()Lcom/kizitonwose/calendar/view/MonthHeaderFooterBinder; + public final fun getMonthFooterResource ()I + public final fun getMonthHeaderBinder ()Lcom/kizitonwose/calendar/view/MonthHeaderFooterBinder; + public final fun getMonthHeaderResource ()I + public final fun getMonthMargins ()Lcom/kizitonwose/calendar/view/MarginValues; + public final fun getMonthScrollListener ()Lkotlin/jvm/functions/Function1; + public final fun getMonthViewClass ()Ljava/lang/String; + public final fun getOrientation ()I + public final fun getOutDateStyle ()Lcom/kizitonwose/calendar/core/OutDateStyle; + public final fun getScrollPaged ()Z + public final fun notifyCalendarChanged ()V + public final fun notifyDateChanged (Ljava/time/LocalDate;)V + public final fun notifyDateChanged (Ljava/time/LocalDate;Lcom/kizitonwose/calendar/core/DayPosition;)V + public final fun notifyDateChanged (Ljava/time/LocalDate;[Lcom/kizitonwose/calendar/core/DayPosition;)V + public static synthetic fun notifyDateChanged$default (Lcom/kizitonwose/calendar/view/CalendarView;Ljava/time/LocalDate;Lcom/kizitonwose/calendar/core/DayPosition;ILjava/lang/Object;)V + public final fun notifyDayChanged (Lcom/kizitonwose/calendar/core/CalendarDay;)V + public final fun notifyMonthChanged (Ljava/time/YearMonth;)V + public final fun scrollToDate (Ljava/time/LocalDate;)V + public final fun scrollToDate (Ljava/time/LocalDate;Lcom/kizitonwose/calendar/core/DayPosition;)V + public static synthetic fun scrollToDate$default (Lcom/kizitonwose/calendar/view/CalendarView;Ljava/time/LocalDate;Lcom/kizitonwose/calendar/core/DayPosition;ILjava/lang/Object;)V + public final fun scrollToDay (Lcom/kizitonwose/calendar/core/CalendarDay;)V + public final fun scrollToMonth (Ljava/time/YearMonth;)V + public final fun setDayBinder (Lcom/kizitonwose/calendar/view/MonthDayBinder;)V + public final fun setDaySize (Lcom/kizitonwose/calendar/view/DaySize;)V + public final fun setDayViewResource (I)V + public final fun setMonthFooterBinder (Lcom/kizitonwose/calendar/view/MonthHeaderFooterBinder;)V + public final fun setMonthFooterResource (I)V + public final fun setMonthHeaderBinder (Lcom/kizitonwose/calendar/view/MonthHeaderFooterBinder;)V + public final fun setMonthHeaderResource (I)V + public final fun setMonthMargins (Lcom/kizitonwose/calendar/view/MarginValues;)V + public final fun setMonthScrollListener (Lkotlin/jvm/functions/Function1;)V + public final fun setMonthViewClass (Ljava/lang/String;)V + public final fun setOrientation (I)V + public final fun setOutDateStyle (Lcom/kizitonwose/calendar/core/OutDateStyle;)V + public final fun setScrollPaged (Z)V + public final fun setup (Ljava/time/YearMonth;Ljava/time/YearMonth;Ljava/time/DayOfWeek;)V + public final fun smoothScrollToDate (Ljava/time/LocalDate;)V + public final fun smoothScrollToDate (Ljava/time/LocalDate;Lcom/kizitonwose/calendar/core/DayPosition;)V + public static synthetic fun smoothScrollToDate$default (Lcom/kizitonwose/calendar/view/CalendarView;Ljava/time/LocalDate;Lcom/kizitonwose/calendar/core/DayPosition;ILjava/lang/Object;)V + public final fun smoothScrollToDay (Lcom/kizitonwose/calendar/core/CalendarDay;)V + public final fun smoothScrollToMonth (Ljava/time/YearMonth;)V + public final fun updateMonthData ()V + public final fun updateMonthData (Ljava/time/YearMonth;)V + public final fun updateMonthData (Ljava/time/YearMonth;Ljava/time/YearMonth;)V + public final fun updateMonthData (Ljava/time/YearMonth;Ljava/time/YearMonth;Ljava/time/DayOfWeek;)V + public static synthetic fun updateMonthData$default (Lcom/kizitonwose/calendar/view/CalendarView;Ljava/time/YearMonth;Ljava/time/YearMonth;Ljava/time/DayOfWeek;ILjava/lang/Object;)V +} + +public final class com/kizitonwose/calendar/view/DaySize : java/lang/Enum { + public static final field FreeForm Lcom/kizitonwose/calendar/view/DaySize; + public static final field Rectangle Lcom/kizitonwose/calendar/view/DaySize; + public static final field SeventhWidth Lcom/kizitonwose/calendar/view/DaySize; + public static final field Square Lcom/kizitonwose/calendar/view/DaySize; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public static fun valueOf (Ljava/lang/String;)Lcom/kizitonwose/calendar/view/DaySize; + public static fun values ()[Lcom/kizitonwose/calendar/view/DaySize; +} + +public final class com/kizitonwose/calendar/view/MarginValues { + public fun ()V + public fun (IIII)V + public synthetic fun (IIIIILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1 ()I + public final fun component2 ()I + public final fun component3 ()I + public final fun component4 ()I + public final fun copy (IIII)Lcom/kizitonwose/calendar/view/MarginValues; + public static synthetic fun copy$default (Lcom/kizitonwose/calendar/view/MarginValues;IIIIILjava/lang/Object;)Lcom/kizitonwose/calendar/view/MarginValues; + public fun equals (Ljava/lang/Object;)Z + public final fun getBottom ()I + public final fun getEnd ()I + public final fun getStart ()I + public final fun getTop ()I + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public abstract interface class com/kizitonwose/calendar/view/MonthDayBinder : com/kizitonwose/calendar/view/Binder { +} + +public abstract interface class com/kizitonwose/calendar/view/MonthHeaderFooterBinder : com/kizitonwose/calendar/view/Binder { +} + +public class com/kizitonwose/calendar/view/ViewContainer { + public fun (Landroid/view/View;)V + public final fun getView ()Landroid/view/View; +} + +public class com/kizitonwose/calendar/view/WeekCalendarView : androidx/recyclerview/widget/RecyclerView { + public fun (Landroid/content/Context;)V + public fun (Landroid/content/Context;Landroid/util/AttributeSet;)V + public fun (Landroid/content/Context;Landroid/util/AttributeSet;I)V + public final fun findFirstVisibleDay ()Lcom/kizitonwose/calendar/core/WeekDay; + public final fun findFirstVisibleWeek ()Lcom/kizitonwose/calendar/core/Week; + public final fun findLastVisibleDay ()Lcom/kizitonwose/calendar/core/WeekDay; + public final fun findLastVisibleWeek ()Lcom/kizitonwose/calendar/core/Week; + public final fun getDayBinder ()Lcom/kizitonwose/calendar/view/WeekDayBinder; + public final fun getDaySize ()Lcom/kizitonwose/calendar/view/DaySize; + public final fun getDayViewResource ()I + public final fun getScrollPaged ()Z + public final fun getWeekFooterBinder ()Lcom/kizitonwose/calendar/view/WeekHeaderFooterBinder; + public final fun getWeekFooterResource ()I + public final fun getWeekHeaderBinder ()Lcom/kizitonwose/calendar/view/WeekHeaderFooterBinder; + public final fun getWeekHeaderResource ()I + public final fun getWeekMargins ()Lcom/kizitonwose/calendar/view/MarginValues; + public final fun getWeekScrollListener ()Lkotlin/jvm/functions/Function1; + public final fun getWeekViewClass ()Ljava/lang/String; + public final fun notifyCalendarChanged ()V + public final fun notifyDateChanged (Ljava/time/LocalDate;)V + public final fun notifyDayChanged (Lcom/kizitonwose/calendar/core/WeekDay;)V + public final fun notifyWeekChanged (Lcom/kizitonwose/calendar/core/WeekDay;)V + public final fun notifyWeekChanged (Ljava/time/LocalDate;)V + public final fun scrollToDate (Ljava/time/LocalDate;)V + public final fun scrollToDay (Lcom/kizitonwose/calendar/core/WeekDay;)V + public final fun scrollToWeek (Lcom/kizitonwose/calendar/core/WeekDay;)V + public final fun scrollToWeek (Ljava/time/LocalDate;)V + public final fun setDayBinder (Lcom/kizitonwose/calendar/view/WeekDayBinder;)V + public final fun setDaySize (Lcom/kizitonwose/calendar/view/DaySize;)V + public final fun setDayViewResource (I)V + public final fun setScrollPaged (Z)V + public final fun setWeekFooterBinder (Lcom/kizitonwose/calendar/view/WeekHeaderFooterBinder;)V + public final fun setWeekFooterResource (I)V + public final fun setWeekHeaderBinder (Lcom/kizitonwose/calendar/view/WeekHeaderFooterBinder;)V + public final fun setWeekHeaderResource (I)V + public final fun setWeekMargins (Lcom/kizitonwose/calendar/view/MarginValues;)V + public final fun setWeekScrollListener (Lkotlin/jvm/functions/Function1;)V + public final fun setWeekViewClass (Ljava/lang/String;)V + public final fun setup (Ljava/time/LocalDate;Ljava/time/LocalDate;Ljava/time/DayOfWeek;)V + public final fun smoothScrollToDate (Ljava/time/LocalDate;)V + public final fun smoothScrollToDay (Lcom/kizitonwose/calendar/core/WeekDay;)V + public final fun smoothScrollToWeek (Lcom/kizitonwose/calendar/core/WeekDay;)V + public final fun smoothScrollToWeek (Ljava/time/LocalDate;)V + public final fun updateWeekData ()V + public final fun updateWeekData (Ljava/time/LocalDate;)V + public final fun updateWeekData (Ljava/time/LocalDate;Ljava/time/LocalDate;)V + public final fun updateWeekData (Ljava/time/LocalDate;Ljava/time/LocalDate;Ljava/time/DayOfWeek;)V + public static synthetic fun updateWeekData$default (Lcom/kizitonwose/calendar/view/WeekCalendarView;Ljava/time/LocalDate;Ljava/time/LocalDate;Ljava/time/DayOfWeek;ILjava/lang/Object;)V +} + +public abstract interface class com/kizitonwose/calendar/view/WeekDayBinder : com/kizitonwose/calendar/view/Binder { +} + +public abstract interface class com/kizitonwose/calendar/view/WeekHeaderFooterBinder : com/kizitonwose/calendar/view/Binder { +} +