Kirill Bubochkin
1 min readApr 24, 2018

You can try something like this:

productFlavors {
dev {
ext.apkName = "dev.apk"
dimension defaultDimension
}

prod {
ext.apkName = "prod.apk"
dimension defaultDimension
}
}
applicationVariants.all { variant ->
variant.outputs.all { output ->
outputFileName = variant.productFlavors.get(0).ext.apkName
}
}

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Kirill Bubochkin
Kirill Bubochkin

No responses yet

Write a response