I was working with an aar released on a local maven repository.
Since I wanted to include the transitive dependencies, I added the transitive
attribute to my dependencies:
compile ('com.mycompany.domain:artifact:1.0.0@aar') {
transitive = true
}
Now, let's say that this project add a dependency on the cardView support library v23:
compile "com.android.support:cardview-v7:23.4.0"
What does it happens to my apk release file if I also add a dependency on the v24 cardView library:
compile "com.android.support:cardview-v7:24.0.0"
Does Gradle is able to manage this double dependecy and take the latest one without generating conflict? Or is it safer to specify depedencies manually without using the transitive
attribute.
Also, does the transitive
attribute also import the proGuard rules that the aar could have set?
Thank you for your help,