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

Allow installApk to install a testOnly APK #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fun AdbDevice.log(message: String) = com.gojuno.commander.os.log("[$id] $message
fun AdbDevice.installApk(pathToApk: String, timeout: Pair<Int, TimeUnit> = 2 to MINUTES): Observable<Unit> {
val adbDevice = this
val installApk = process(
commandAndArgs = listOf(adb, "-s", adbDevice.id, "install", "-r", pathToApk),
commandAndArgs = listOf(adb, "-s", adbDevice.id, "install", "-t", "-r", pathToApk),
unbufferedOutput = true,
timeout = timeout
)
Expand Down