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 ?