0

I have an Android project divided into two projects (an aar and an apk). In the APK module I have something like that :

dependencies {
    ...
    implementation project(':aar')
}

It works but in some context I need to have something like this :

dependencies {
    ...
    implementation files('../libs/myaar.aar')
}

How can I do to avoid having two different gradle files ?

I would like to have a variable (maybe in local.properties) like "development = true". When true module is included, when false .aar file is included.

Is that possible ?

  • Does this answer your question? [How to define different dependencies for different product flavors](https://stackoverflow.com/questions/18196974/how-to-define-different-dependencies-for-different-product-flavors) – Alexander Hoffmann Jun 01 '22 at 20:14

0 Answers0