Skip to content

Commit

Permalink
Bump version to 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkeppeler committed Feb 19, 2023
1 parent f42898d commit 6561f99
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 10 deletions.
Binary file modified app/sample.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions buildSrc/src/main/java/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ object App {
const val MIN_SDK = 21
const val TARGET_SDK = 33

const val VERSION_CODE = 4
const val VERSION_NAME = "1.0.4"
const val VERSION_CODE = 10
const val VERSION_NAME = "1.1.0"

const val TEST_INSTRUMENTATION_RUNNER = "androidx.test.runner.AndroidJUnitRunner"
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ import com.maxkeppeker.sheets.core.utils.TestTags
import com.maxkeppeler.sheets.clock.ClockView
import com.maxkeppeler.sheets.clock.models.ClockConfig
import com.maxkeppeler.sheets.clock.models.ClockSelection
import com.maxkeppeler.sheets.clock.utils.Constants
import com.maxkeppeler.sheets.test.utils.onNodeWithTags
import com.maxkeppeler.sheets.test.utils.onPositiveButton
import com.maxkeppeler.sheets.test.utils.setContentAndWaitForIdle
import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
Expand All @@ -55,13 +58,16 @@ class ClockViewTests {
)
}
listOf(1, 0, 3, 0).forEach {
rule.onNodeWithTags(TestTags.KEYBOARD_KEY, it).performClick()
runBlocking {
rule.onNodeWithTags(TestTags.KEYBOARD_KEY, it).performClick()
delay(Constants.DEBOUNCE_KEY_CLICK_DURATION)
}
}
rule.onPositiveButton().performClick()
assert(selectedTime == testTime)
}

// @Test
@Test
fun clockView12HourFormatAmSelectionSuccess() {
val testTime = LocalTime.of(10, 30)
var selectedTime: LocalTime? = null
Expand All @@ -75,14 +81,20 @@ class ClockViewTests {
)
}
listOf(1, 0, 3, 0).forEach {
rule.onNodeWithTags(TestTags.KEYBOARD_KEY, it).performClick()
runBlocking {
rule.onNodeWithTags(TestTags.KEYBOARD_KEY, it).performClick()
delay(Constants.DEBOUNCE_KEY_CLICK_DURATION)
}
}
runBlocking {
rule.onNodeWithTags(TestTags.CLOCK_12_HOUR_FORMAT, 0).performClick()
delay(Constants.DEBOUNCE_KEY_CLICK_DURATION)
}
rule.onNodeWithTags(TestTags.CLOCK_12_HOUR_FORMAT, 0).performClick()
rule.onPositiveButton().performClick()
assert(selectedTime == testTime)
}

// @Test
@Test
fun clockView12HourFormatPmSelectionSuccess() {
val testTime = LocalTime.of(20, 30)
var selectedTime: LocalTime? = null
Expand All @@ -96,9 +108,15 @@ class ClockViewTests {
)
}
listOf(0, 8, 3, 0).forEach {
rule.onNodeWithTags(TestTags.KEYBOARD_KEY, it).performClick()
runBlocking {
rule.onNodeWithTags(TestTags.KEYBOARD_KEY, it).performClick()
delay(Constants.DEBOUNCE_KEY_CLICK_DURATION)
}
}
runBlocking {
rule.onNodeWithTags(TestTags.CLOCK_12_HOUR_FORMAT, 1).performClick()
delay(Constants.DEBOUNCE_KEY_CLICK_DURATION)
}
rule.onNodeWithTags(TestTags.CLOCK_12_HOUR_FORMAT, 1).performClick()
rule.onPositiveButton().performClick()
assert(selectedTime == testTime)
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ android.disableAutomaticComponentCreation=true
# Maven publish information

GROUP=com.maxkeppeler.sheets-compose-dialogs
VERSION_NAME=1.0.4
VERSION_NAME=1.1.0

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

0 comments on commit 6561f99

Please sign in to comment.