Ignore unknown keys in idb's json output that lists targets
This commit is contained in:
committed by
Pavel Punegov
parent
a4328b9215
commit
f48f86093f
@@ -425,7 +425,7 @@ private fun deviceLauncher(project: Project) = object : ExecutorService {
|
||||
data class DeviceTarget(val name: String, val udid: String, val state: String, val type: String)
|
||||
split("\n")
|
||||
.filter { it.isNotEmpty() }
|
||||
.map { Json(JsonConfiguration.Stable.copy(ignoreUnknownKeys = false))
|
||||
.map { Json(JsonConfiguration.Stable.copy(ignoreUnknownKeys = true))
|
||||
.parse(DeviceTarget.serializer(), it)
|
||||
}
|
||||
.first {
|
||||
|
||||
Reference in New Issue
Block a user