I have two flavor groups: "api" (froyo and gingerbread flavors) and
"variant" (free and pro flavors).
How to add dependency only to one build variant, ie only for froyo-free
version? 'froyoFreeCompile' is not recognized by gradle (both freeCompile
and froyoCompile are working as expected). If this is not possible
directly, may I add such dependency using customized task?
My build.gradle:
...
flavorGroups "variant", "api"
productFlavors {
free {
flavorGroup "variant"
packageName "..."
}
pro {
flavorGroup "variant"
packageName "..."
}
froyo {
flavorGroup "api"
minSdkVersion 8
}
gingerbread {
flavorGroup "api"
minSdkVersion 9
}
}
}
dependencies {
freeFroyoCompile files(getSdkDir() +
'/extras/google/admob_ads_sdk/GoogleAdMobAdsSdk-6.4.1.jar')
freeGingerbreadCompile 'com.google.android.gms:play-services:+'
}
...
--
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.