Created
May 27, 2023 18:14
-
-
Save uteke/1e8fb6da02e3e373ecc85681620a5a77 to your computer and use it in GitHub Desktop.
Kotlin Android library convention plugin
This file contains 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