57 lines
1.3 KiB
Kotlin
57 lines
1.3 KiB
Kotlin
plugins {
|
|
id("com.android.library")
|
|
kotlin("android")
|
|
alias(libs.plugins.compose.compiler)
|
|
}
|
|
|
|
apply(from = "${rootProject.projectDir}/publish.gradle")
|
|
|
|
android {
|
|
|
|
namespace = "com.ramcosta.composedestinations.bottomsheet"
|
|
compileSdk = libs.versions.compileSdk.get().toIntOrNull()
|
|
|
|
defaultConfig {
|
|
minSdk = libs.versions.minSdk.get().toIntOrNull()
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles.add(File("consumer-rules.pro"))
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
freeCompilerArgs.addAll(
|
|
"-opt-in=kotlin.RequiresOptIn",
|
|
"-opt-in=com.ramcosta.composedestinations.annotation.internal.InternalDestinationsApi"
|
|
)
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation(project(mapOf("path" to ":compose-destinations")))
|
|
|
|
api(libs.compose.material.navigation)
|
|
}
|