-
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(ios): dynamic provider * feat(ios): dynamic provider * feat(ios): dynamic provider fixes * feat(ios): dynamic provider fixes * fix(ios): fix tests * feat(ios): add debug info for simulator count --------- Co-authored-by: eugene_matsyuk <[email protected]>
- Loading branch information
Showing
22 changed files
with
740 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
configuration/src/main/kotlin/com/malinskiy/marathon/config/vendor/apple/DeviceProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.malinskiy.marathon.config.vendor.apple | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty | ||
import com.fasterxml.jackson.annotation.JsonSubTypes | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo | ||
import java.io.File | ||
|
||
@JsonTypeInfo( | ||
use = JsonTypeInfo.Id.NAME, | ||
include = JsonTypeInfo.As.PROPERTY, | ||
property = "type" | ||
) | ||
@JsonSubTypes( | ||
JsonSubTypes.Type(value = DeviceProvider.Static::class, names = arrayOf("static", "marathondevices")), | ||
JsonSubTypes.Type(value = DeviceProvider.Dynamic::class, name = "dynamic"), | ||
) | ||
sealed class DeviceProvider { | ||
data class Static( | ||
@JsonProperty("path") val path: File? = null | ||
) : DeviceProvider() | ||
|
||
data class Dynamic( | ||
@JsonProperty("host") val host: String = "127.0.0.1", | ||
@JsonProperty("port") val port: Int = 5037, | ||
) : DeviceProvider() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.