-
-
Save johnwatsondev/7cb93c9703e85094d5a71d51ec4245b0 to your computer and use it in GitHub Desktop.
Gradle DependecyResolution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
subprojects { | |
project.configurations.all { | |
resolutionStrategy.eachDependency { details -> | |
boolean isMultidex = details.requested.name.contains('multidex') | |
if (details.requested.group == 'com.android.support' && !isMultidex){ | |
details.useVersion lib_versions.support | |
}else if(isMultidex){ | |
details.useVersion lib_versions.multidex | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment