Skip to content

android modules and product falvors #2780

Closed Answered by dam-ease
hsynkunduz asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @hsynkunduz
I am currently working on generating a sample project and updating the docs to include building selected modules and product flavors in Android - #2784. I would like to keep you in the loop so you can as well try on your end.
Firstly, creating the flavors in the build.gradle.kts file using the code snippet below

Code Snippet (build.gradle.kts file)

android {
    ...
    defaultConfig {...}
    buildTypes {
        getByName("debug"){...}
        getByName("release"){...}
    }
    // Specifies one flavor dimension.
    [flavorDimensions](https://developer.android.com/reference/tools/gradle-api/current/com/android/build/api/dsl/ProductFlavor#dimension) += "version"
    p…

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@dam-ease
Comment options

Answer selected by dam-ease
@hsynkunduz
Comment options

@dam-ease
Comment options

@hsynkunduz
Comment options

@dam-ease
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants