Use stable json configuration with non strict mode
This commit is contained in:
committed by
Pavel Punegov
parent
851ef95672
commit
76d4561520
@@ -424,8 +424,10 @@ private fun deviceLauncher(project: Project) = object : ExecutorService {
|
|||||||
data class DeviceTarget(val name: String, val udid: String, val state: String, val type: String)
|
data class DeviceTarget(val name: String, val udid: String, val state: String, val type: String)
|
||||||
split("\n")
|
split("\n")
|
||||||
.filter { it.isNotEmpty() }
|
.filter { it.isNotEmpty() }
|
||||||
.map { Json(JsonConfiguration.Default).parse(DeviceTarget.serializer(), it) }
|
.map {
|
||||||
.first {
|
Json(JsonConfiguration.Stable.copy(strictMode = false))
|
||||||
|
.parse(DeviceTarget.serializer(), it)
|
||||||
|
}.first {
|
||||||
it.type == "device" && deviceName?.run { this == it.name } ?: true
|
it.type == "device" && deviceName?.run { this == it.name } ?: true
|
||||||
}
|
}
|
||||||
.udid
|
.udid
|
||||||
|
|||||||
Reference in New Issue
Block a user