2022-05-31 09:38:02 -07:00
|
|
|
plugins {
|
|
|
|
id("com.android.library")
|
|
|
|
kotlin("android")
|
2022-06-13 11:06:23 -07:00
|
|
|
id("secant.android-build-conventions")
|
2022-05-31 09:38:02 -07:00
|
|
|
id("wtf.emulator.gradle")
|
2022-06-13 11:06:23 -07:00
|
|
|
id("secant.emulator-wtf-conventions")
|
2023-02-13 05:10:32 -08:00
|
|
|
id("secant.jacoco-conventions")
|
2022-05-31 09:38:02 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// Note that we force enable test orchestrator for this module, because some of the test cases require it.
|
|
|
|
// Specifically this is needed due to checks on the UncaughtExceptionHandler tests
|
|
|
|
|
|
|
|
android {
|
2022-09-19 05:24:19 -07:00
|
|
|
namespace = "co.electriccoin.zcash.crash.android"
|
|
|
|
testNamespace = "co.electriccoin.zcash.crash.test"
|
|
|
|
|
2022-05-31 09:38:02 -07:00
|
|
|
defaultConfig {
|
|
|
|
testInstrumentationRunnerArguments["clearPackageData"] = "true"
|
|
|
|
}
|
|
|
|
|
|
|
|
testOptions {
|
|
|
|
execution = "ANDROIDX_TEST_ORCHESTRATOR"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
api(libs.androidx.annotation)
|
2023-01-26 11:12:44 -08:00
|
|
|
api(projects.crashLib)
|
|
|
|
|
|
|
|
implementation(platform(libs.firebase.bom))
|
|
|
|
|
|
|
|
implementation(libs.firebase.crashlytics)
|
|
|
|
implementation(libs.firebase.crashlytics.ndk)
|
|
|
|
implementation(libs.firebase.installations)
|
2022-05-31 09:38:02 -07:00
|
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
|
|
implementation(libs.kotlinx.datetime)
|
|
|
|
implementation(projects.spackleAndroidLib)
|
|
|
|
|
|
|
|
androidTestImplementation(libs.bundles.androidx.test)
|
|
|
|
androidTestImplementation(libs.kotlinx.coroutines.test)
|
|
|
|
|
2023-01-17 11:54:40 -08:00
|
|
|
androidTestUtil(libs.androidx.test.services) {
|
|
|
|
artifact {
|
|
|
|
type = "apk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-31 09:38:02 -07:00
|
|
|
androidTestUtil(libs.androidx.test.orchestrator) {
|
|
|
|
artifact {
|
|
|
|
type = "apk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|