generated from ali/HarmonyTemplate
40 lines
971 B
Kotlin
40 lines
971 B
Kotlin
plugins {
|
|
alias(libs.plugins.android.library)
|
|
alias(libs.plugins.kotlin.compose)
|
|
}
|
|
|
|
android {
|
|
namespace = "sh.haven.core.toolbar"
|
|
compileSdk = 37
|
|
|
|
defaultConfig {
|
|
minSdk = 26
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
// MotionEvent's action constants are compile-time ints, but the stubbed
|
|
// android.jar still needs unmocked calls to return rather than throw.
|
|
testOptions {
|
|
unitTests.isReturnDefaultValues = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":core:ui"))
|
|
implementation(project(":core:data"))
|
|
implementation(libs.termlib) // for optional SelectionController parameter
|
|
implementation(libs.core.ktx)
|
|
implementation(libs.activity.compose)
|
|
testImplementation(libs.junit)
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
|
|
}
|
|
}
|