Skip to content

Commit

Permalink
Merge pull request #568 from kizitonwose/year_calendar
Browse files Browse the repository at this point in the history
Year calendar
  • Loading branch information
kizitonwose authored Jul 27, 2024
2 parents 9c25277 + c216935 commit e10c694
Show file tree
Hide file tree
Showing 136 changed files with 6,887 additions and 455 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ ktlint = disabled
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true
ktlint_standard_multiline-expression-wrapping = disabled
ktlint_standard_function-expression-body = disabled
ktlint_standard_chain-method-continuation = disabled
ktlint_standard_class-signature = disabled
# string-template-indent requires multiline-expression-wrapping to be enabled
ktlint_standard_string-template-indent = disabled
ktlint_standard_parameter-list-wrapping = disabled
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
with:
gradle-home-cache-cleanup: true
- name: Unit tests
run: ./gradlew testDebugUnitTest
run: ./gradlew test

instrumentation-tests:
name: Instrumentation tests
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ A highly customizable calendar library for Android and Compose Multiplatform, ba

## Features

- [x] Single, multiple or range selection - Total flexibility to implement the date selection
- [x] Week, month, or year modes - Show a week-based calendar, or the typical month calendar, or a year-based calendar.
- [x] Single, multiple, or range selection - Total flexibility to implement the date selection
whichever way you like.
- [x] Week or month mode - Show a week-based calendar, or the typical month calendar.
- [x] Disable desired dates - Prevent selection of some dates by disabling them.
- [x] Boundary dates - Limit the calendar date range.
- [x] Custom date view/composable - Make your day cells look however you want, with any
Expand All @@ -28,8 +28,8 @@ A highly customizable calendar library for Android and Compose Multiplatform, ba
- [x] Horizontal or vertical scrolling calendar.
- [x] HeatMap calendar - Suitable for showing how data changes over time, like GitHub's contribution
chart.
- [x] Month/Week headers and footers - Add headers/footers of any kind on each month/week.
- [x] Easily scroll to any date/week/month on the calendar via swipe actions or programmatically.
- [x] Year/Month/Week headers and footers - Add headers/footers of any kind on each year/month/week.
- [x] Easily scroll to any date/week/month/year on the calendar via swipe actions or programmatically.
- [x] Use all RecyclerView/LazyRow/LazyColumn customizations since the calendar extends from
RecyclerView for the view system and uses LazyRow/LazyColumn for compose.
- [x] Design your calendar [however you want.](https://github.com/kizitonwose/Calendar/issues/1) The
Expand Down Expand Up @@ -124,12 +124,12 @@ For the compose calendar library, ensure that you are using the library version

| Compose UI | Android Calendar Library | Multiplatform Calendar Library |
|:----------:|:------------------------:|:------------------------------:|
| 1.2.x | 2.0.x | - |
| 1.3.x | 2.1.x - 2.2.x | - |
| 1.4.x | 2.3.x | - |
| 1.5.x | 2.4.x | - |
| 1.6.x | 2.5.x | - |
| 1.7.x | 2.6.x | 2.6.x |
| 1.2.x | 2.0.x | - |
| 1.3.x | 2.1.x - 2.2.x | - |
| 1.4.x | 2.3.x | - |
| 1.5.x | 2.4.x | - |
| 1.6.x | 2.5.x | 2.5.x |
| 1.7.x | 2.6.x | 2.6.x |

## Usage

Expand Down
7 changes: 4 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,23 @@ plugins {
alias(libs.plugins.mavenPublish) apply false
alias(libs.plugins.kotlinMultiplatform) apply false
alias(libs.plugins.jetbrainsCompose) apply false
alias(libs.plugins.kotlinSerialization) apply false
alias(libs.plugins.versionCheck)
alias(libs.plugins.bcv)
}

allprojects {
apply(plugin = rootProject.libs.plugins.kotlinter.get().pluginId)

plugins.withType<KotlinBasePlugin>().configureEach {
plugins.withType<KotlinBasePlugin> {
extensions.configure<KotlinProjectExtension> {
if ("sample" !in project.name) {
explicitApi()
}
}
}

tasks.withType<Test>().configureEach {
tasks.withType<Test> {
useJUnitPlatform()
// https://docs.gradle.org/8.8/userguide/performance.html#execute_tests_in_parallel
maxParallelForks = (Runtime.getRuntime().availableProcessors() / 2).coerceAtLeast(1)
}
Expand Down
Loading

0 comments on commit e10c694

Please sign in to comment.