secant-android-wallet/ui-lib/build.gradle.kts

84 lines
2.8 KiB
Plaintext
Raw Normal View History

2021-10-09 07:36:58 -07:00
plugins {
id("com.android.library")
kotlin("android")
id("kotlin-parcelize")
id("zcash.android-build-conventions")
}
android {
buildFeatures {
viewBinding = true
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = libs.androidx.compose.compiler.get().versionConstraint.displayName
2021-10-09 07:36:58 -07:00
}
// TODO [#6]: Figure out how to move this into the build-conventions
kotlinOptions {
jvmTarget = libs.versions.java.get()
allWarningsAsErrors = project.property("ZCASH_IS_TREAT_WARNINGS_AS_ERRORS").toString().toBoolean()
freeCompilerArgs = freeCompilerArgs.plus("-Xopt-in=kotlin.RequiresOptIn")
}
sourceSets {
getByName("main").apply {
res.setSrcDirs(
setOf(
"src/main/res/ui/backup",
"src/main/res/ui/common",
"src/main/res/ui/home",
"src/main/res/ui/onboarding",
2022-01-13 09:49:08 -08:00
"src/main/res/ui/profile",
"src/main/res/ui/restore",
2022-02-17 05:08:06 -08:00
"src/main/res/ui/request",
"src/main/res/ui/seed",
"src/main/res/ui/send",
"src/main/res/ui/settings",
"src/main/res/ui/wallet_address"
)
)
}
2021-10-09 07:36:58 -07:00
}
}
dependencies {
implementation(libs.androidx.activity)
2022-02-21 06:33:40 -08:00
implementation(libs.androidx.appcompat)
2021-10-09 07:36:58 -07:00
implementation(libs.androidx.annotation)
implementation(libs.androidx.core)
implementation(libs.androidx.lifecycle.livedata)
2021-12-03 05:19:15 -08:00
implementation(libs.androidx.splash)
implementation(libs.androidx.workmanager)
implementation(libs.bundles.androidx.compose.core)
implementation(libs.bundles.androidx.compose.extended)
implementation(libs.kotlin.stdlib)
2021-10-09 07:36:58 -07:00
implementation(libs.kotlinx.coroutines.android)
implementation(libs.kotlinx.coroutines.core)
implementation(libs.zcash.sdk)
implementation(libs.zcash.bip39)
2022-01-13 09:49:08 -08:00
implementation(libs.zxing)
implementation(projects.preferenceApiLib)
implementation(projects.preferenceImplAndroidLib)
implementation(projects.sdkExtLib)
implementation(projects.sdkExtUiLib)
implementation(projects.spackleLib)
implementation(projects.uiDesignLib)
2021-10-09 07:36:58 -07:00
androidTestImplementation(libs.bundles.androidx.test)
androidTestImplementation(libs.androidx.compose.test.junit)
androidTestImplementation(libs.androidx.compose.test.manifest)
androidTestImplementation(libs.kotlin.reflect)
2022-02-17 05:08:06 -08:00
androidTestImplementation(libs.kotlin.test)
2021-10-11 12:52:24 -07:00
if (project.property("IS_USE_TEST_ORCHESTRATOR").toString().toBoolean()) {
androidTestUtil(libs.androidx.test.orchestrator) {
artifact {
type = "apk"
}
}
}
2021-10-09 07:36:58 -07:00
}