Skip to content

Instantly share code, notes, and snippets.

@AlexGladkov
Created May 15, 2021 12:34
Show Gist options
  • Save AlexGladkov/b438e66f4d5fa2750d3046ed9c9e563d to your computer and use it in GitHub Desktop.
Save AlexGladkov/b438e66f4d5fa2750d3046ed9c9e563d to your computer and use it in GitHub Desktop.
Android KMP gradle.kts
plugins {
id("com.android.application")
kotlin("android")
kotlin("kapt")
id("org.jetbrains.compose")
}
android {
compileSdkVersion(30)
buildToolsVersion("30.0.2")
defaultConfig {
applicationId = "ru.agladkov.questgo"
minSdkVersion(21)
targetSdkVersion(30)
versionCode = 11
versionName = "1.1"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
dependencies {
implementation(project(":common:common-root"))
implementation(project(":common:common-ui"))
implementation(project(":common:common-main"))
implementation(compose.material)
implementation(Dependencies.AndroidX.AppCompat.appCompat)
implementation(Dependencies.AndroidX.Activity.activityCompose)
// Room
val roomVersion = "2.2.6"
implementation("androidx.room:room-runtime:$roomVersion")
implementation("androidx.room:room-rxjava2:$roomVersion")
kapt("androidx.room:room-compiler:$roomVersion")
// optional - Kotlin Extensions and Coroutines support for Room
implementation("androidx.room:room-ktx:$roomVersion")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment