build-time-tracker-plugin icon indicating copy to clipboard operation
build-time-tracker-plugin copied to clipboard

add sample code in Kotlin

Open LiYing2010 opened this issue 4 years ago • 2 comments

currently, sample code in README are all groovy code, can we add some new sample code in Kotlin ?

LiYing2010 avatar Jul 28 '20 09:07 LiYing2010

Here's a sample using the Kotlin DSL:

plugins {
    id("net.rdrei.android.buildtimetracker") version "0.11.0"
}

// ...

buildtimetracker {
    reporters {
        register("csv") {
            options["output"] = "build/times.csv"
            options["append"] = "true"
            options["header"] = "false"
        }

        register("summary") {
            options["ordered"] = "false"
            options["threshold"] = "50"
            options["barstyle"] = "unicode"
        }

        register("csvSummary") {
            options["csv"] = "build/times.csv"
        }
    }
}

oscarnylander avatar Nov 23 '20 09:11 oscarnylander

kts .kts .kt //adding for appearing is search results

AbhijithMogaveera avatar Apr 22 '24 13:04 AbhijithMogaveera