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 {
|
2021-10-18 11:27:16 -07:00
|
|
|
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()
|
2022-01-04 05:41:05 -08:00
|
|
|
allWarningsAsErrors = project.property("ZCASH_IS_TREAT_WARNINGS_AS_ERRORS").toString().toBoolean()
|
2021-10-31 10:36:51 -07:00
|
|
|
freeCompilerArgs = freeCompilerArgs.plus("-Xopt-in=kotlin.RequiresOptIn")
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
getByName("main").apply {
|
|
|
|
res.setSrcDirs(
|
|
|
|
setOf(
|
2021-12-29 11:38:14 -08:00
|
|
|
"src/main/res/ui/backup",
|
2021-10-31 10:36:51 -07:00
|
|
|
"src/main/res/ui/common",
|
2021-12-29 11:38:14 -08:00
|
|
|
"src/main/res/ui/home",
|
2021-11-17 12:19:49 -08:00
|
|
|
"src/main/res/ui/onboarding",
|
2022-01-13 09:49:08 -08:00
|
|
|
"src/main/res/ui/profile",
|
2021-12-31 05:28:16 -08:00
|
|
|
"src/main/res/ui/restore",
|
2022-01-26 13:33:02 -08:00
|
|
|
"src/main/res/ui/seed",
|
|
|
|
"src/main/res/ui/settings",
|
2021-12-31 05:28:16 -08:00
|
|
|
"src/main/res/ui/wallet_address"
|
2021-10-31 10:36:51 -07:00
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
2021-10-09 07:36:58 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.androidx.activity)
|
|
|
|
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)
|
2021-10-09 07:36:58 -07:00
|
|
|
implementation(libs.bundles.androidx.compose)
|
|
|
|
implementation(libs.google.material)
|
2021-11-12 04:09:30 -08:00
|
|
|
implementation(libs.kotlin.stdlib)
|
2021-10-09 07:36:58 -07:00
|
|
|
implementation(libs.kotlinx.coroutines.android)
|
|
|
|
implementation(libs.kotlinx.coroutines.core)
|
2021-11-12 04:09:30 -08:00
|
|
|
implementation(libs.zcash.sdk)
|
|
|
|
implementation(libs.zcash.bip39)
|
2022-01-13 09:49:08 -08:00
|
|
|
implementation(libs.zxing)
|
2021-11-12 04:09:30 -08:00
|
|
|
|
|
|
|
implementation(projects.preferenceApiLib)
|
|
|
|
implementation(projects.preferenceImplAndroidLib)
|
|
|
|
implementation(projects.sdkExtLib)
|
2021-10-09 07:36:58 -07:00
|
|
|
|
|
|
|
androidTestImplementation(libs.bundles.androidx.test)
|
2021-10-09 07:37:03 -07:00
|
|
|
androidTestImplementation(libs.androidx.compose.test.junit)
|
|
|
|
androidTestImplementation(libs.androidx.compose.test.manifest)
|
2021-11-12 04:09:30 -08:00
|
|
|
androidTestImplementation(libs.kotlin.reflect)
|
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
|
|
|
}
|