Skip to content

Instantly share code, notes, and snippets.

@mgtitimoli
Created March 28, 2018 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgtitimoli/f382653b945fb33ef1c27cd5d744af6d to your computer and use it in GitHub Desktop.
Save mgtitimoli/f382653b945fb33ef1c27cd5d744af6d to your computer and use it in GitHub Desktop.
allprojects {
ext {
buildTools = "27.0.3"
compileSdk = 27
googlePlayServicesVersion = "11.8.0"
minSdk = 16
targetSdk = 23
}
configurations.all {
resolutionStrategy {
eachDependency { details ->
if (details.requested.group == "com.google.android.gms") {
details.useVersion googlePlayServicesVersion
}
}
}
}
afterEvaluate { project ->
if (project.hasProperty("android")) {
android {
buildToolsVersion buildTools
compileSdkVersion compileSdk
defaultConfig {
minSdkVersion minSdk
targetSdkVersion targetSdk
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment