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

Kotlin DSL guide #42

Closed
mibrahimdev opened this issue Jun 14, 2020 · 1 comment · Fixed by #48
Closed

Kotlin DSL guide #42

mibrahimdev opened this issue Jun 14, 2020 · 1 comment · Fixed by #48

Comments

@mibrahimdev
Copy link

could you please provide a Kotlin build script snippets?

@mibrahimdev
Copy link
Author

so if anyone is interested in using this library for a Kotlin DSL build project, here is an example ..


    nameOptions(closureOf<VersionNameConfig> {

    })

    codeOptions(closureOf<VersionCodeConfig> {
        versionCodeType(VersionCodeType.AUTO_INCREMENT_ONE_STEP)
        dependsOnTasks("debug", "release", "assemble")
    })

    outputOptions(closureOf<FileOutputConfig> {
        renameOutput(true)
        nameFormat("\$appName-\$buildType-\$versionName")
    })

the key here is to use closureOf()

@moallemi moallemi linked a pull request Oct 14, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant