81 lines
2.2 KiB
Plaintext
81 lines
2.2 KiB
Plaintext
import com.android.build.api.variant.BuildConfigField
|
|
|
|
plugins {
|
|
id("com.android.library")
|
|
kotlin("android")
|
|
id("secant.android-build-conventions")
|
|
id("secant.jacoco-conventions")
|
|
}
|
|
|
|
android {
|
|
namespace = "co.electriccoin.zcash.ui.design"
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
buildConfig = true
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion = libs.androidx.compose.compiler.get().versionConstraint.displayName
|
|
}
|
|
|
|
sourceSets {
|
|
getByName("main").apply {
|
|
res.setSrcDirs(
|
|
setOf(
|
|
"src/main/res/ui/common",
|
|
)
|
|
)
|
|
}
|
|
}
|
|
}
|
|
|
|
androidComponents {
|
|
onVariants { variant ->
|
|
// Configure dark mode support for the app runtime
|
|
variant.buildConfigFields.put(
|
|
"IS_APP_DARK_MODE_ENABLED",
|
|
BuildConfigField(
|
|
type = "boolean",
|
|
value = project.property("IS_DARK_MODE_ENABLED").toString(),
|
|
comment = "Whether is the app dark mode supported"
|
|
)
|
|
)
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.androidx.annotation)
|
|
implementation(libs.androidx.constraintlayout)
|
|
implementation(libs.androidx.core)
|
|
implementation(libs.androidx.splash)
|
|
implementation(libs.bundles.androidx.compose.core)
|
|
implementation(libs.bundles.androidx.compose.extended)
|
|
implementation(libs.kotlin.stdlib)
|
|
implementation(libs.kotlinx.coroutines.android)
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
api(libs.kotlinx.immutable)
|
|
implementation(libs.zcash.sdk.incubator)
|
|
implementation(projects.spackleAndroidLib)
|
|
|
|
androidTestImplementation(libs.bundles.androidx.test)
|
|
androidTestImplementation(libs.androidx.compose.test.junit)
|
|
androidTestImplementation(libs.androidx.compose.test.manifest)
|
|
androidTestImplementation(libs.kotlin.reflect)
|
|
androidTestImplementation(libs.kotlin.test)
|
|
|
|
androidTestUtil(libs.androidx.test.services) {
|
|
artifact {
|
|
type = "apk"
|
|
}
|
|
}
|
|
|
|
if (project.property("IS_USE_TEST_ORCHESTRATOR").toString().toBoolean()) {
|
|
androidTestUtil(libs.androidx.test.orchestrator) {
|
|
artifact {
|
|
type = "apk"
|
|
}
|
|
}
|
|
}
|
|
}
|