Skip to content

Instantly share code, notes, and snippets.

@xmanemran
Created November 20, 2018 20:03
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 xmanemran/3e6a3ade896cc629730616cb022d6789 to your computer and use it in GitHub Desktop.
Save xmanemran/3e6a3ade896cc629730616cb022d6789 to your computer and use it in GitHub Desktop.
subprojects {
ext {
compileSdk = 28
buildTools = "28.0.0"
minSdk = 16
targetSdk = 26
}
afterEvaluate { project ->
if (!project.name.equalsIgnoreCase("app")
&& project.hasProperty("android")) {
android {
compileSdkVersion compileSdk
buildToolsVersion buildTools
defaultConfig {
minSdkVersion minSdk
targetSdkVersion targetSdk
}
configurations.all {
resolutionStrategy {
force 'com.android.support:support-v4:27.1.0'
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment