Skip to content

Instantly share code, notes, and snippets.

@uteke
Created May 27, 2023 18:14
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 uteke/1e8fb6da02e3e373ecc85681620a5a77 to your computer and use it in GitHub Desktop.
Save uteke/1e8fb6da02e3e373ecc85681620a5a77 to your computer and use it in GitHub Desktop.
Kotlin Android library convention plugin
plugins {
id("com.android.library")
kotlin("android")
}
@Suppress("UnstableApiUsage")
android {
. . .
compileOptions {
isCoreLibraryDesugaringEnabled = true
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
buildFeatures {
viewBinding = true
}
}
dependencies {
. . .
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment