Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sample code in Kotlin #101

Open
LiYing2010 opened this issue Jul 28, 2020 · 2 comments
Open

add sample code in Kotlin #101

LiYing2010 opened this issue Jul 28, 2020 · 2 comments

Comments

@LiYing2010
Copy link
Contributor

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

@oscarnylander
Copy link

oscarnylander commented Nov 23, 2020

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"
        }
    }
}

@AbhijithMogaveera
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants