Switch robolectric usages to regular dependency
This commit is contained in:
committed by
Vyacheslav Gerasimov
parent
361d8536ac
commit
12f0f019da
+4
-2
@@ -115,8 +115,10 @@ abstract class AbstractParcelBoxTest : CodegenTestCase() {
|
||||
val kotlinRuntimeJar = PathUtil.kotlinPathsForIdeaPlugin.stdlibPath
|
||||
val layoutLibJars = listOf(File(androidPluginPath, "layoutlib.jar"), File(androidPluginPath, "layoutlib-api.jar"))
|
||||
|
||||
val robolectricJars = File("dependencies/robolectric")
|
||||
.listFiles { f: File -> f.extension == "jar" }
|
||||
val robolectricClasspath = System.getProperty("robolectric.classpath")
|
||||
?: throw RuntimeException("Unable to get a valid classpath from 'robolectric.classpath' property, please set it accordingly")
|
||||
val robolectricJars = robolectricClasspath.split(File.pathSeparator)
|
||||
.map { File(it) }
|
||||
.sortedBy { it.nameWithoutExtension }
|
||||
|
||||
val junitCoreResourceName = JUnitCore::class.java.name.replace('.', '/') + ".class"
|
||||
|
||||
Reference in New Issue
Block a user