Skip to content

Instantly share code, notes, and snippets.

@mattrob33
Created March 5, 2022 14:45
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 mattrob33/650233c32bf3f300a02e643a1f11f5f7 to your computer and use it in GitHub Desktop.
Save mattrob33/650233c32bf3f300a02e643a1f11f5f7 to your computer and use it in GitHub Desktop.
fun BaseExtension.baseConfig() {
compileSdkVersion(AppConfig.compileSdk)
defaultConfig.apply {
minSdk = AppConfig.minSdk
targetSdk = AppConfig.targetSdk
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions.apply {
sourceCompatibility = AppConfig.CompileOptions.javaSourceCompatibility
targetCompatibility = AppConfig.CompileOptions.javaSourceCompatibility
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = AppConfig.CompileOptions.kotlinJvmTarget
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment