The android project I'm working on has 3 build types - debug
, qa
and release
:
buildTypes {
release {
...
}
qa {
...
}
debug {
...
}
}
I would like to have a dependency (crash reporting library) only apply to debug
and qa
but not release
.
I guess it could be done by duplicating build-type specific compile lines like this:
dependencies {
...
debugCompile 'com.mindscapehq.android:raygun4android:1.3.0:sources'
qaCompile 'com.mindscapehq.android:raygun4android:1.3.0:sources'
}
Is there a way to do this without duplication?