This post explain how to include different dependencies in different productFlavors of the project.
I did that, but now how can I handle my own code calling code from a jar not included in one flavor of my project ?
example
admob.jar have a Aaa.class
and is only included in the free flavor. When I compile pro flavor, it fails because Aaa.class
is not in the classpath.
I don't wan't use reflection (it's inefficient and time-consuming).
Any suggestion?