Skip to content

Commit

Permalink
update ddmlib version
Browse files Browse the repository at this point in the history
  • Loading branch information
karthyks committed Oct 5, 2023
1 parent 37b48db commit 42c97f7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ kotlinDslPluginOptions {

repositories {
jcenter()
google()
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ object Versions {
val kotlin = "1.3.31"
val coroutines = "1.2.1"

val ddmlib = "26.5.3"
val ddmlib = "31.1.2"
val dexTestParser = "2.3.4"
val kotlinLogging = "1.4.9"
val slf4jAPI = "1.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ class AndroidDeviceTestRunner(private val device: AndroidDevice) {
val androidConfiguration = configuration.vendorConfiguration as AndroidConfiguration
val info = ApkParser().parseInstrumentationInfo(androidConfiguration.testApplicationOutput)
val runner = prepareTestRunner(configuration, androidConfiguration, info, testBatch)
if (configuration.isCodeCoverageEnabled) {
runner.setCoverage(true)
runner.setCoverageReportLocation("/data/data/${info.applicationPackage}/files/")
}
try {
clearData(androidConfiguration, info)
notifyIgnoredTest(ignoredTests, listener)
Expand Down Expand Up @@ -131,6 +127,12 @@ class AndroidDeviceTestRunner(private val device: AndroidDevice) {
androidConfiguration.instrumentationArgs.forEach { (key, value) ->
runner.addInstrumentationArg(key, value)
}

if (configuration.isCodeCoverageEnabled) {
logger.debug { "Coverage is enabled" }
runner.setCoverage(true)
runner.setCoverageReportLocation("/data/data/${info.applicationPackage}/files/")
}
return runner
}
}
Expand Down

0 comments on commit 42c97f7

Please sign in to comment.