mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 11:07:10 +00:00
refactor(sidecar): route ios platform off the iOS backend
This commit is contained in:
1 parent
7c0f9a0c95
commit
848304e302
1 file changed
-4
@@ -66,13 +66,9 @@ fun main(arguments: Array<String>) {
|
||||
val serial = arguments.indexOf("--serial").let { index ->
|
||||
if (index >= 0 && index + 1 < arguments.size) arguments[index + 1] else null
|
||||
}
|
||||
val udid = arguments.indexOf("--udid").let { index ->
|
||||
if (index >= 0 && index + 1 < arguments.size) arguments[index + 1] else null
|
||||
}
|
||||
|
||||
val backend: DriverBackend = when (platform) {
|
||||
"android" -> MaestroDriverBackend(serial)
|
||||
"ios" -> IosDriverBackend(udid ?: error("--udid required for ios platform"))
|
||||
else -> StubDriverBackend(platform)
|
||||
}
|
||||
val service = DriverService(platform = platform, backend = backend)
|
||||
|
||||
Reference in new issue
Block a user