We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3eef347 commit 8748797Copy full SHA for 8748797
app/src/test/kotlin/com/fernandocejas/sample/AndroidTest.kt
@@ -39,7 +39,7 @@ abstract class AndroidTest {
39
@Suppress("LeakingThis")
40
@Rule @JvmField val injectMocks = InjectMocksRule.create(this@AndroidTest)
41
42
- fun context(): Context = RuntimeEnvironment.systemContext
+ fun context(): Context = RuntimeEnvironment.getApplication().applicationContext
43
44
internal class ApplicationStub : Application()
45
}
gradle/libs.versions.toml
@@ -1,7 +1,7 @@
1
[versions]
2
# sdk -----------
3
compileSdk = "33"
4
-minSdk = "26"
+minSdk = "27"
5
targetSdk = "33"
6
# kotlin ---------
7
kotlin = "1.8.22"
0 commit comments