|
|
@ -11,52 +11,52 @@ import kotlinx.serialization.Serializable |
|
|
|
|
|
|
|
|
|
|
|
@Serializable |
|
|
|
@Serializable |
|
|
|
internal class SimctlListData( |
|
|
|
internal class SimctlListData( |
|
|
|
val devicetypes: List<DeviceTypeData>, |
|
|
|
val devicetypes: List<DeviceTypeData> = emptyList(), |
|
|
|
val runtimes: List<RuntimeData>, |
|
|
|
val runtimes: List<RuntimeData>, |
|
|
|
val devices: Map<String, List<DeviceData>>, |
|
|
|
val devices: Map<String, List<DeviceData>>, |
|
|
|
val pairs: Map<String, WatchAndPhonePairData>, |
|
|
|
val pairs: Map<String, WatchAndPhonePairData> = emptyMap(), |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
@Serializable |
|
|
|
@Serializable |
|
|
|
internal class DeviceTypeData( |
|
|
|
internal class DeviceTypeData( |
|
|
|
val name: String, |
|
|
|
val name: String? = null, |
|
|
|
val minRuntimeVersion: Long, |
|
|
|
val minRuntimeVersion: Long? = null, |
|
|
|
val bundlePath: String, |
|
|
|
val bundlePath: String? = null, |
|
|
|
val maxRuntimeVersion: Long, |
|
|
|
val maxRuntimeVersion: Long? = null, |
|
|
|
val identifier: String, |
|
|
|
val identifier: String? = null, |
|
|
|
val productFamily: String |
|
|
|
val productFamily: String? = null |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
@Serializable |
|
|
|
@Serializable |
|
|
|
internal class RuntimeData( |
|
|
|
internal class RuntimeData( |
|
|
|
val name: String, |
|
|
|
val name: String? = null, |
|
|
|
val bundlePath: String, |
|
|
|
val bundlePath: String? = null, |
|
|
|
val buildversion: String, |
|
|
|
val buildversion: String? = null, |
|
|
|
val runtimeRoot: String, |
|
|
|
val runtimeRoot: String? = null, |
|
|
|
val identifier: String, |
|
|
|
val identifier: String, |
|
|
|
val version: String, |
|
|
|
val version: String, |
|
|
|
val isAvailable: Boolean, |
|
|
|
val isAvailable: Boolean? = null, |
|
|
|
val supportedDeviceTypes: List<SupportedDeviceTypeData> |
|
|
|
val supportedDeviceTypes: List<SupportedDeviceTypeData> |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
@Serializable |
|
|
|
@Serializable |
|
|
|
internal class SupportedDeviceTypeData( |
|
|
|
internal class SupportedDeviceTypeData( |
|
|
|
val bundlePath: String, |
|
|
|
val bundlePath: String? = null, |
|
|
|
val name: String, |
|
|
|
val name: String? = null, |
|
|
|
val identifier: String, |
|
|
|
val identifier: String, |
|
|
|
val productFamily: String |
|
|
|
val productFamily: String? = null |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
@Serializable |
|
|
|
@Serializable |
|
|
|
internal class DeviceData( |
|
|
|
internal class DeviceData( |
|
|
|
val name: String, |
|
|
|
val name: String, |
|
|
|
val availabilityError: String? = null, |
|
|
|
val availabilityError: String? = null, |
|
|
|
val dataPath: String, |
|
|
|
val dataPath: String? = null, |
|
|
|
val dataPathSize: Long, |
|
|
|
val dataPathSize: Long? = null, |
|
|
|
val logPath: String, |
|
|
|
val logPath: String? = null, |
|
|
|
val udid: String, |
|
|
|
val udid: String, |
|
|
|
val isAvailable: Boolean, |
|
|
|
val isAvailable: Boolean? = null, |
|
|
|
val deviceTypeIdentifier: String, |
|
|
|
val deviceTypeIdentifier: String? = null, |
|
|
|
val state: String, |
|
|
|
val state: String, |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -65,13 +65,13 @@ internal val DeviceData.booted: Boolean |
|
|
|
|
|
|
|
|
|
|
|
@Serializable |
|
|
|
@Serializable |
|
|
|
internal class WatchAndPhonePairData( |
|
|
|
internal class WatchAndPhonePairData( |
|
|
|
val watch: DeviceInPairData, |
|
|
|
val watch: DeviceInPairData? = null, |
|
|
|
val phone: DeviceInPairData |
|
|
|
val phone: DeviceInPairData? = null |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
@Serializable |
|
|
|
@Serializable |
|
|
|
internal class DeviceInPairData( |
|
|
|
internal class DeviceInPairData( |
|
|
|
val name: String, |
|
|
|
val name: String? = null, |
|
|
|
val udid: String, |
|
|
|
val udid: String? = null, |
|
|
|
val state: String, |
|
|
|
val state: String? = null, |
|
|
|
) |
|
|
|
) |
|
|
|