Skip to content

Instantly share code, notes, and snippets.

@uteke
Created May 27, 2023 18:14
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