Skip to content

Commit

Permalink
v1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ozcanalasalvar committed Oct 12, 2023
1 parent b242692 commit ff46524
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ publishing {
release(MavenPublication) {
groupId 'com.ozcanalasalvar'
artifactId 'datepicker'
version '1.1.1-alpha01'
version '1.1.3'
artifact("$buildDir/outputs/aar/library-release.aar")
}
}
Expand All @@ -64,5 +64,5 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation 'com.google.android.material:material:1.9.0'

implementation ("com.github.ozcanalasalvar:wheelview:1.0.6")
implementation ("com.github.ozcanalasalvar:wheelview:1.0.8")
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import androidx.compose.ui.unit.DpSize
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.ozcanalasalvar.library.compose.InfiniteWheelView
import com.ozcanalasalvar.library.compose.SelectorOptions
import com.ozcanalasalvar.library.compose.component.SelectorView
import com.ozcanalasalvar.library.utils.daysOfDate
import com.ozcanalasalvar.library.utils.monthsOfDate
Expand Down Expand Up @@ -96,7 +95,8 @@ fun WheelDatePicker(
selection = maxOf(days.indexOf(selectedDate.day), 0),
itemCount = days.size,
rowOffset = offset,
selectorOption = SelectorOptions().copy(selectEffectEnabled = selectorEffectEnabled, enabled = false),
selectEffectEnabled = selectorEffectEnabled,
selectorEnabled = false,
onFocusItem = {
selectedDate = selectedDate.withDay(days[it])
},
Expand All @@ -116,7 +116,8 @@ fun WheelDatePicker(
selection = maxOf(months.indexOf(selectedDate.month), 0),
itemCount = months.size,
rowOffset = offset,
selectorOption = SelectorOptions().copy(selectEffectEnabled = selectorEffectEnabled, enabled = false),
selectEffectEnabled = selectorEffectEnabled,
selectorEnabled = false,
onFocusItem = {
selectedDate = selectedDate.withMonth(months[it])
},
Expand All @@ -137,7 +138,8 @@ fun WheelDatePicker(
itemCount = years.size,
rowOffset = offset,
isEndless = years.size > offset * 2,
selectorOption = SelectorOptions().copy(selectEffectEnabled = selectorEffectEnabled, enabled = false),
selectEffectEnabled = selectorEffectEnabled,
selectorEnabled = false,
onFocusItem = {
selectedDate = selectedDate.withYear(years[it])
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.google.android.material.timepicker.TimeFormat
import com.ozcanalasalvar.library.compose.InfiniteWheelView
import com.ozcanalasalvar.library.compose.SelectorOptions
import com.ozcanalasalvar.library.compose.component.SelectorView
import com.ozcanalasalvar.library.model.Time
import com.ozcanalasalvar.library.ui.theme.PickerTheme
Expand Down Expand Up @@ -91,7 +90,8 @@ fun WheelTimePicker(
selection = 0,
itemCount = hours.size,
rowOffset = offset,
selectorOption = SelectorOptions().copy(selectEffectEnabled = selectorEffectEnabled, enabled = false),
selectEffectEnabled = selectorEffectEnabled,
selectorEnabled = false,
onFocusItem = {
selectedTime = selectedTime.copy(hour = hours[it])
},
Expand All @@ -111,7 +111,8 @@ fun WheelTimePicker(
selection = 0,
itemCount = minutes.size,
rowOffset = offset,
selectorOption = SelectorOptions().copy(selectEffectEnabled = selectorEffectEnabled, enabled = false),
selectEffectEnabled = selectorEffectEnabled,
selectorEnabled = false,
onFocusItem = {
selectedTime = selectedTime.copy(minute = minutes[it])
},
Expand All @@ -132,7 +133,8 @@ fun WheelTimePicker(
itemCount = formats.size,
rowOffset = offset,
isEndless = false,
selectorOption = SelectorOptions().copy(selectEffectEnabled = selectorEffectEnabled, enabled = false),
selectEffectEnabled = selectorEffectEnabled,
selectorEnabled = false,
onFocusItem = {
selectedTime = selectedTime.copy(format = formats[it])
},
Expand Down

0 comments on commit ff46524

Please sign in to comment.