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

Support for multiple flavors #4

Open
jhonnen opened this issue Jul 7, 2016 · 0 comments
Open

Support for multiple flavors #4

jhonnen opened this issue Jul 7, 2016 · 0 comments

Comments

@jhonnen
Copy link

jhonnen commented Jul 7, 2016

Is there any way to upload apks for multiple flavors during a single build?

I've tried the following, but only the first apk gets uploaded since the ndUpload task can run only once during the build.

android.applicationVariants.all { variant ->
    def nimbledroidUpload = task "nimbledroidUpload${variant.name.capitalize()}" << {
        nimbledroid.variant = variant.name
        ndUpload.execute()
    }
    variant.assemble.finalizedBy(nimbledroidUpload)
}

It might be enough to have a public NdUploadTask class, so multiple upload tasks can be created that way:

task "nimbledroidUpload${variant.name.capitalize()}" (type: NdUploadTask) << { ... }

That task should have its own variant property instead of the global one.

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

1 participant