72 lines
1.9 KiB
Kotlin
72 lines
1.9 KiB
Kotlin
plugins {
|
|
id("com.android.application")
|
|
kotlin("android")
|
|
id("com.google.devtools.ksp") version libs.versions.ksp.get()
|
|
alias(libs.plugins.compose.compiler)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.ramcosta.destinations.sample"
|
|
compileSdk = libs.versions.compileSdk.get().toIntOrNull()
|
|
|
|
defaultConfig {
|
|
applicationId = "com.ramcosta.destinations.sample"
|
|
minSdk = libs.versions.minSdk.get().toIntOrNull()
|
|
targetSdk = libs.versions.targetSdk.get().toIntOrNull()
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables {
|
|
useSupportLibrary = true
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
|
|
packaging {
|
|
resources.excludes.add("/META-INF/{AL2.0,LGPL2.1}")
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(11)
|
|
compilerOptions {
|
|
freeCompilerArgs.addAll("-opt-in=kotlin.RequiresOptIn")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(mapOf("path" to ":compose-destinations")))
|
|
implementation(project(mapOf("path" to ":compose-destinations-bottom-sheet")))
|
|
ksp(project(":compose-destinations-ksp"))
|
|
|
|
implementation(libs.androidMaterial)
|
|
|
|
implementation(libs.compose.ui)
|
|
implementation(libs.compose.material)
|
|
implementation(libs.compose.material.icons)
|
|
implementation(libs.compose.viewModel)
|
|
|
|
implementation(libs.androidx.lifecycleRuntimeKtx)
|
|
implementation(libs.androidx.activityCompose)
|
|
}
|