Skip to content

Commit

Permalink
Merge pull request #152 from vanpra/0.8.0-beta
Browse files Browse the repository at this point in the history
Library Version 0.8.0-beta
  • Loading branch information
PranavMaganti authored May 24, 2022
2 parents 79957cb + d61f144 commit b1ce376
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 0.8.0-beta - 2022-05-25

- Update compose to 1.2.0-beta02 ([#149](https://github.com/vanpra/compose-material-dialogs/pull/149))

### 0.7.2 - 2022-05-25

- Fix input import and documentation ([#148](https://github.com/vanpra/compose-material-dialogs/pull/148))
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

**Latest Stable Library Version: 0.7.2 (Supports Compose 1.1.1)**

**Latest Beta Library Version: 0.8.0-beta (Supports Compose 1.2.0-beta02)**

### [See Releases and Changelog](https://github.com/vanpra/compose-material-dialogs/blob/main/CHANGELOG.md)

## Core
Expand Down
6 changes: 3 additions & 3 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ object Dependencies {
}

object Accompanist {
private const val version = "0.23.1"
private const val version = "0.24.9-beta"
const val pager = "com.google.accompanist:accompanist-pager:$version"
}

object Kotlin {
private const val version = "1.6.10"
private const val version = "1.6.21"
const val gradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$version"
}

Expand All @@ -44,7 +44,7 @@ object Dependencies {
}

object Compose {
const val version = "1.1.1"
const val version = "1.2.0-beta02"

const val ui = "androidx.compose.ui:ui:$version"
const val material = "androidx.compose.material:material:$version"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ import androidx.compose.foundation.layout.paddingFromBaseline
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.foundation.lazy.GridCells
import androidx.compose.foundation.lazy.LazyVerticalGrid
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.itemsIndexed
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import androidx.compose.foundation.lazy.grid.items
import androidx.compose.foundation.lazy.grid.itemsIndexed
import androidx.compose.foundation.lazy.grid.rememberLazyGridState
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.ContentAlpha
Expand Down Expand Up @@ -158,11 +158,11 @@ private fun YearPicker(
state: DatePickerState,
pagerState: PagerState,
) {
val gridState = rememberLazyListState((viewDate.year - state.yearRange.first) / 3)
val gridState = rememberLazyGridState((viewDate.year - state.yearRange.first) / 3)
val coroutineScope = rememberCoroutineScope()

LazyVerticalGrid(
cells = GridCells.Fixed(3),
columns = GridCells.Fixed(3),
state = gridState,
modifier = Modifier.background(state.dialogBackground)
) {
Expand Down Expand Up @@ -322,7 +322,7 @@ private fun CalendarView(
viewDate.year == state.selected.year && viewDate.month == state.selected.month
}

LazyVerticalGrid(cells = GridCells.Fixed(7), modifier = Modifier.height(240.dp)) {
LazyVerticalGrid(columns = GridCells.Fixed(7), modifier = Modifier.height(240.dp)) {
for (x in 0 until calendarDatesData.first) {
item { Box(Modifier.size(40.dp)) }
}
Expand Down Expand Up @@ -392,7 +392,7 @@ private fun DayOfWeekHeader(state: DatePickerState, locale: Locale) {
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.SpaceEvenly
) {
LazyVerticalGrid(cells = GridCells.Fixed(7)) {
LazyVerticalGrid(columns = GridCells.Fixed(7)) {
dayHeaders.forEach { it ->
item {
Box(Modifier.size(40.dp)) {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android.enableJetifier=false
kotlin.code.style=official

GROUP=io.github.vanpra.compose-material-dialogs
VERSION_NAME=0.7.2
VERSION_NAME=0.8.0-beta

POM_DESCRIPTION=A Material Dialog Builder for Jetpack Compose
POM_INCEPTION_YEAR=2020
Expand Down

0 comments on commit b1ce376

Please sign in to comment.