Skip to content

Commit 2a11b41

Browse files
authored
Set compile SDK to 37 (#6871)
1 parent d6c83c1 commit 2a11b41

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

app/src/test/kotlin/io/homeassistant/companion/android/frontend/haptic/HapticFeedbackPerformerTest.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class HapticFeedbackPerformerTest {
3232

3333
@Test
3434
fun `Given success type on API 30 when perform then calls CONFIRM`() {
35-
every { view.performHapticFeedback(any()) } returns true
35+
every { view.performHapticFeedback(any<Int>()) } returns true
3636

3737
HapticFeedbackPerformer.perform(view, HapticType.Success)
3838

@@ -41,7 +41,7 @@ class HapticFeedbackPerformerTest {
4141

4242
@Test
4343
fun `Given failure type on API 30 when perform then calls REJECT`() {
44-
every { view.performHapticFeedback(any()) } returns true
44+
every { view.performHapticFeedback(any<Int>()) } returns true
4545

4646
HapticFeedbackPerformer.perform(view, HapticType.Failure)
4747

@@ -50,7 +50,7 @@ class HapticFeedbackPerformerTest {
5050

5151
@Test
5252
fun `Given light type when perform then calls KEYBOARD_TAP`() {
53-
every { view.performHapticFeedback(any()) } returns true
53+
every { view.performHapticFeedback(any<Int>()) } returns true
5454

5555
HapticFeedbackPerformer.perform(view, HapticType.Light)
5656

@@ -59,7 +59,7 @@ class HapticFeedbackPerformerTest {
5959

6060
@Test
6161
fun `Given medium type when perform then calls VIRTUAL_KEY`() {
62-
every { view.performHapticFeedback(any()) } returns true
62+
every { view.performHapticFeedback(any<Int>()) } returns true
6363

6464
HapticFeedbackPerformer.perform(view, HapticType.Medium)
6565

@@ -68,7 +68,7 @@ class HapticFeedbackPerformerTest {
6868

6969
@Test
7070
fun `Given heavy type when perform then calls LONG_PRESS`() {
71-
every { view.performHapticFeedback(any()) } returns true
71+
every { view.performHapticFeedback(any<Int>()) } returns true
7272

7373
HapticFeedbackPerformer.perform(view, HapticType.Heavy)
7474

@@ -77,7 +77,7 @@ class HapticFeedbackPerformerTest {
7777

7878
@Test
7979
fun `Given selection type on API 30 when perform then calls GESTURE_START`() {
80-
every { view.performHapticFeedback(any()) } returns true
80+
every { view.performHapticFeedback(any<Int>()) } returns true
8181

8282
HapticFeedbackPerformer.perform(view, HapticType.Selection)
8383

@@ -90,7 +90,7 @@ class HapticFeedbackPerformerTest {
9090

9191
HapticFeedbackPerformer.perform(view, HapticType.Warning)
9292

93-
verify(exactly = 0) { view.performHapticFeedback(any()) }
93+
verify(exactly = 0) { view.performHapticFeedback(any<Int>()) }
9494
verify { vibrator.vibrate(capture(effectSlot)) }
9595
assertEquals(
9696
VibrationEffect.createPredefined(VibrationEffect.EFFECT_HEAVY_CLICK),

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ activity-compose = "1.13.0"
88
androidBeaconLibrary = "2.21.2"
99
androidGradlePlugin = "9.2.1"
1010
androidNdk = "29.0.14206865"
11-
androidSdk-compile = "36"
11+
androidSdk-compile = "37"
1212
androidSdk-min = "23"
1313
androidSdk-target = "36"
1414
androidSdk-automotive-min = "29"

0 commit comments

Comments
 (0)