Skip to content

Commit 8748797

Browse files
committed
ref: bump android sdk min version and fix robolectric deprecated context method
1 parent 3eef347 commit 8748797

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/test/kotlin/com/fernandocejas/sample/AndroidTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ abstract class AndroidTest {
3939
@Suppress("LeakingThis")
4040
@Rule @JvmField val injectMocks = InjectMocksRule.create(this@AndroidTest)
4141

42-
fun context(): Context = RuntimeEnvironment.systemContext
42+
fun context(): Context = RuntimeEnvironment.getApplication().applicationContext
4343

4444
internal class ApplicationStub : Application()
4545
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
# sdk -----------
33
compileSdk = "33"
4-
minSdk = "26"
4+
minSdk = "27"
55
targetSdk = "33"
66
# kotlin ---------
77
kotlin = "1.8.22"

0 commit comments

Comments
 (0)