Created
May 27, 2023 18:14
Kotlin Android library convention plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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