Skip to content

Commit 6561f99

Browse files
committed
Bump version to 1.1.0
1 parent f42898d commit 6561f99

File tree

4 files changed

+28
-10
lines changed

4 files changed

+28
-10
lines changed

app/sample.apk

58.4 KB
Binary file not shown.

buildSrc/src/main/java/App.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ object App {
66
const val MIN_SDK = 21
77
const val TARGET_SDK = 33
88

9-
const val VERSION_CODE = 4
10-
const val VERSION_NAME = "1.0.4"
9+
const val VERSION_CODE = 10
10+
const val VERSION_NAME = "1.1.0"
1111

1212
const val TEST_INSTRUMENTATION_RUNNER = "androidx.test.runner.AndroidJUnitRunner"
1313
}

clock/src/androidTest/java/com/maxkeppeler/sheets/clock/functional/ClockViewTests.kt

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ import com.maxkeppeker.sheets.core.utils.TestTags
2727
import com.maxkeppeler.sheets.clock.ClockView
2828
import com.maxkeppeler.sheets.clock.models.ClockConfig
2929
import com.maxkeppeler.sheets.clock.models.ClockSelection
30+
import com.maxkeppeler.sheets.clock.utils.Constants
3031
import com.maxkeppeler.sheets.test.utils.onNodeWithTags
3132
import com.maxkeppeler.sheets.test.utils.onPositiveButton
3233
import com.maxkeppeler.sheets.test.utils.setContentAndWaitForIdle
34+
import kotlinx.coroutines.delay
35+
import kotlinx.coroutines.runBlocking
3336
import org.junit.Rule
3437
import org.junit.Test
3538
import org.junit.runner.RunWith
@@ -55,13 +58,16 @@ class ClockViewTests {
5558
)
5659
}
5760
listOf(1, 0, 3, 0).forEach {
58-
rule.onNodeWithTags(TestTags.KEYBOARD_KEY, it).performClick()
61+
runBlocking {
62+
rule.onNodeWithTags(TestTags.KEYBOARD_KEY, it).performClick()
63+
delay(Constants.DEBOUNCE_KEY_CLICK_DURATION)
64+
}
5965
}
6066
rule.onPositiveButton().performClick()
6167
assert(selectedTime == testTime)
6268
}
6369

64-
// @Test
70+
@Test
6571
fun clockView12HourFormatAmSelectionSuccess() {
6672
val testTime = LocalTime.of(10, 30)
6773
var selectedTime: LocalTime? = null
@@ -75,14 +81,20 @@ class ClockViewTests {
7581
)
7682
}
7783
listOf(1, 0, 3, 0).forEach {
78-
rule.onNodeWithTags(TestTags.KEYBOARD_KEY, it).performClick()
84+
runBlocking {
85+
rule.onNodeWithTags(TestTags.KEYBOARD_KEY, it).performClick()
86+
delay(Constants.DEBOUNCE_KEY_CLICK_DURATION)
87+
}
88+
}
89+
runBlocking {
90+
rule.onNodeWithTags(TestTags.CLOCK_12_HOUR_FORMAT, 0).performClick()
91+
delay(Constants.DEBOUNCE_KEY_CLICK_DURATION)
7992
}
80-
rule.onNodeWithTags(TestTags.CLOCK_12_HOUR_FORMAT, 0).performClick()
8193
rule.onPositiveButton().performClick()
8294
assert(selectedTime == testTime)
8395
}
8496

85-
// @Test
97+
@Test
8698
fun clockView12HourFormatPmSelectionSuccess() {
8799
val testTime = LocalTime.of(20, 30)
88100
var selectedTime: LocalTime? = null
@@ -96,9 +108,15 @@ class ClockViewTests {
96108
)
97109
}
98110
listOf(0, 8, 3, 0).forEach {
99-
rule.onNodeWithTags(TestTags.KEYBOARD_KEY, it).performClick()
111+
runBlocking {
112+
rule.onNodeWithTags(TestTags.KEYBOARD_KEY, it).performClick()
113+
delay(Constants.DEBOUNCE_KEY_CLICK_DURATION)
114+
}
115+
}
116+
runBlocking {
117+
rule.onNodeWithTags(TestTags.CLOCK_12_HOUR_FORMAT, 1).performClick()
118+
delay(Constants.DEBOUNCE_KEY_CLICK_DURATION)
100119
}
101-
rule.onNodeWithTags(TestTags.CLOCK_12_HOUR_FORMAT, 1).performClick()
102120
rule.onPositiveButton().performClick()
103121
assert(selectedTime == testTime)
104122
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ android.disableAutomaticComponentCreation=true
2727
# Maven publish information
2828

2929
GROUP=com.maxkeppeler.sheets-compose-dialogs
30-
VERSION_NAME=1.0.4
30+
VERSION_NAME=1.1.0
3131

3232
POM_DESCRIPTION=An Android library that offers dialogs & views for various use-cases - build with Jetpack Compose.
3333
POM_INCEPTION_YEAR=2022

0 commit comments

Comments
 (0)