In my Android project, there are several product flavors:
buildTypes {
release {}
debug {}
staging {}
}
productFlavors {
freeVersion {}
I misread the question initially. To exclude the free version you would use proVersionCompile and partnerVersionCompile with the desired dependency to exclude the freeVersion.
dependencies {
proVersionCompile 'com.google.android.gms:play-services-analytics:8.4.0'
partnerVersionCompile 'com.google.android.gms:play-services-analytics:8.4.0'
}