File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed
src/androidTest/kotlin/suite Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ extensions.getByType(LibraryExtension::class.java).apply {
6060 sourceCompatibility = JavaVersion .VERSION_1_8
6161 targetCompatibility = JavaVersion .VERSION_1_8
6262 }
63+ testOptions.unitTests.isIncludeAndroidResources = true
6364}
6465
6566buildConfigKotlin {
Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ object Robolectric : Dependency {
22
33 override val group = " org.robolectric"
44 override val artifact = " robolectric"
5- override val version = " 4.3"
5+ override val version = " 4.3.1 "
66}
Original file line number Diff line number Diff line change 11kotlin.code.style =official
2- org.gradle.parallel =true
2+ org.gradle.parallel =true
3+ android.enableUnitTestBinaryResources =true
Original file line number Diff line number Diff line change 11package suite
22
3+ import android.os.Build
34import androidx.test.ext.junit.runners.AndroidJUnit4
45import clientAdmin1
56import org.junit.runner.RunWith
7+ import org.robolectric.annotation.Config
68import runBlocking
79import kotlin.test.BeforeTest
810import kotlin.test.Test
911
1012
13+ @Config(sdk = [Build .VERSION_CODES .P ])
1114@RunWith(AndroidJUnit4 ::class )
1215internal class TestSecuredAPIKey {
1316
You can’t perform that action at this time.
0 commit comments