DEV Community

Dimitrios Desyllas
Dimitrios Desyllas

Posted on

How I can have multiple debug variants with different arguments?

Is there a way to have multiple build variants?

I have the following variants in my build.gradle:

    buildTypes {
        release {
            //debuggable true
            minifyEnabled false
            signingConfig signingConfigs.config
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            buildConfigField "String", "API_URL", "\"https://api.example.com\""
        }
        debug {
            minifyEnabled false
            buildConfigField "String", "BASE_URL_PRODUCTION_V4", "\"https://localhost\""
        }

        staging {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            buildConfigField "String", "API_URL", "\"https://api.example.com\""
        }
    }

But…

Top comments (0)