Skip to content
This repository was archived by the owner on Dec 7, 2019. It is now read-only.

Add windows compatibility#45

Open
jakob-grabner wants to merge 10 commits into
gojuno:masterfrom
jakob-grabner:feature/windows_compatibility
Open

Add windows compatibility#45
jakob-grabner wants to merge 10 commits into
gojuno:masterfrom
jakob-grabner:feature/windows_compatibility

Conversation

@jakob-grabner

@jakob-grabner jakob-grabner commented Aug 1, 2018

Copy link
Copy Markdown

Make swarmer work on windows.
Fixes #37

}
val emulator = when (os()) {
Os.Linux, Os.Mac -> "$androidHome/emulator/emulator"
Os.Windows -> "$androidHome/emulator/emulator.exe"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.exe! RUN DON'T LOOK BACK

@artem-zinnatullin artem-zinnatullin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

.doOnNext { log("Ports for emulator ${args.emulatorName}: ${it.first}, ${it.second}.") }
.flatMap { ports ->
startEmulatorProcess(
// Unix only, PR welcome.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I knew someone will delete this line haha

private fun connectedEmulators(): Single<Set<AdbDevice>> =
connectedAdbDevices().take(1).toSingle().map { it.filter { it.isEmulator }.toSet() }

private fun os(): Os {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets do it, sounds good

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@artem-zinnatullin

Copy link
Copy Markdown
Contributor

@yunikkk can you PTAL?

@yunikkk

yunikkk commented Aug 6, 2018

Copy link
Copy Markdown
Contributor

@jakob-grabner
I'll expose os() from commander now, lets use it from there.
Then LGTM and thanks for contribution!

rtjag added 2 commits August 25, 2018 10:21
Update commander to 0.1.8 -> 0.1.10
Update jCommander to 1.71 -> 1.72
Update kotlin to 1.2.41 -> 1.2.61
@jakob-grabner

Copy link
Copy Markdown
Author

@yunikkk thanks for exposing os() from commander. I updated the PR to use it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants