Hello,

The project I'm working on requires having a different signature for each 
variant:

- flavor1Debug: default ("~/.android/debug.keystore")
- flavor1Release: signatureA
- flavor2Debug: signatureB
- flavor2Release: null (no signing, will be resigned by a third party)

I realize this is not a common pattern, but would really appreciate some 
help. I was able to find useful information in this forum on how to set 
per-flavor signingConfig, but could not achieve the per-variant 
configuration above.

The code below doesn't work, because the release block overrides the 
settings in the debug block:

    signingConfigs {
        signatureA { 
            ///
        }
        signatureB {
            ///
        }
    }

    productFlavors {
        flavor1 {
            ///
        }

        flavor2 {
            ///
        }
    }

    buildTypes {
        debug {
            signingConfig null
            productFlavors.flavor1.signingConfig signingConfigs.debug
            productFlavors.flavor2.signingConfig signingConfigs.signatureB

            ///
        }

        release {
            productFlavors.flavor1.signingConfig signingConfigs.signatureA
            productFlavors.flavor2.signingConfig null

            ///
        }
    }

Thanks,

Olivier

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to