2023-10-19 06:00:47 -07:00
|
|
|
import com.android.build.api.variant.BuildConfigField
|
|
|
|
|
2022-02-21 06:50:09 -08:00
|
|
|
plugins {
|
|
|
|
id("com.android.library")
|
|
|
|
kotlin("android")
|
2022-06-13 11:06:23 -07:00
|
|
|
id("secant.android-build-conventions")
|
2023-02-13 05:10:32 -08:00
|
|
|
id("secant.jacoco-conventions")
|
2022-02-21 06:50:09 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2022-09-19 05:24:19 -07:00
|
|
|
namespace = "co.electriccoin.zcash.ui.design"
|
|
|
|
|
2022-02-21 06:50:09 -08:00
|
|
|
buildFeatures {
|
|
|
|
compose = true
|
2023-10-19 06:00:47 -07:00
|
|
|
buildConfig = true
|
2022-02-21 06:50:09 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
composeOptions {
|
|
|
|
kotlinCompilerExtensionVersion = libs.androidx.compose.compiler.get().versionConstraint.displayName
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
getByName("main").apply {
|
|
|
|
res.setSrcDirs(
|
|
|
|
setOf(
|
|
|
|
"src/main/res/ui/common",
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-19 06:00:47 -07:00
|
|
|
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"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-21 06:50:09 -08:00
|
|
|
dependencies {
|
|
|
|
implementation(libs.androidx.annotation)
|
2023-03-14 00:00:36 -07:00
|
|
|
implementation(libs.androidx.constraintlayout)
|
2022-02-21 06:50:09 -08:00
|
|
|
implementation(libs.androidx.core)
|
|
|
|
implementation(libs.androidx.splash)
|
|
|
|
implementation(libs.bundles.androidx.compose.core)
|
|
|
|
implementation(libs.kotlin.stdlib)
|
|
|
|
implementation(libs.kotlinx.coroutines.android)
|
|
|
|
implementation(libs.kotlinx.coroutines.core)
|
2023-03-01 04:58:47 -08:00
|
|
|
api(libs.kotlinx.immutable)
|
2023-11-23 01:00:13 -08:00
|
|
|
implementation(libs.zcash.sdk.incubator)
|
2022-05-31 09:38:02 -07:00
|
|
|
implementation(projects.spackleAndroidLib)
|
2022-02-21 06:50:09 -08:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
2023-01-17 11:54:40 -08:00
|
|
|
androidTestUtil(libs.androidx.test.services) {
|
|
|
|
artifact {
|
|
|
|
type = "apk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-21 06:50:09 -08:00
|
|
|
if (project.property("IS_USE_TEST_ORCHESTRATOR").toString().toBoolean()) {
|
|
|
|
androidTestUtil(libs.androidx.test.orchestrator) {
|
|
|
|
artifact {
|
|
|
|
type = "apk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|