Skip to content

Commit 19bfbc4

Browse files
authored
Merge pull request #1 from tjleing/liveness-integration-tests
Liveness integration tests
2 parents b81dce1 + 108191a commit 19bfbc4

File tree

6 files changed

+490
-3
lines changed

6 files changed

+490
-3
lines changed

gradle/libs.versions.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,20 @@ tensorflow-support = "org.tensorflow:tensorflow-lite-support:0.3.0"
4141

4242
# Testing libraries
4343
test-androidx-junit = "androidx.test.ext:junit:1.1.4"
44+
test-androidx-monitor = "androidx.test:monitor:1.5.0"
45+
test-androidx-rules = "androidx.test:rules:1.5.0"
4446
test-compose-junit = { module = "androidx.compose.ui:ui-test-junit4", version.ref = "compose" }
4547
test-compose-manifest = { module = "androidx.compose.ui:ui-test-manifest", version.ref = "compose" }
4648
test-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines" }
4749
test-espresso = "androidx.test.espresso:espresso-core:3.5.1"
4850
test-junit = "junit:junit:4.13.2"
4951
test-kotest-assertions = { module = "io.kotest:kotest-assertions-core", version.ref = "kotest" }
50-
test-mockk = "io.mockk:mockk:1.13.4"
52+
# downgrading mockk due to https://github.com/mockk/mockk/issues/1035
53+
test-mockk = "io.mockk:mockk:1.13.2"
54+
test-mockk-android = "io.mockk:mockk-android:1.13.2"
5155
test-robolectric = "org.robolectric:robolectric:4.9.2"
5256
test-turbine = { module = "app.cash.turbine:turbine", version.ref = "turbine" }
57+
debug-ui-test-manifest = "androidx.compose.ui:ui-test-manifest:1.5.0-beta01"
5358

5459
# Dependencies for convention plugins
5560
plugin-android-gradle = { module = "com.android.tools.build:gradle", version.ref = "agp" }

liveness/build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ android {
3333
androidResources {
3434
noCompress += "tflite"
3535
}
36+
37+
packagingOptions {
38+
resources.excludes.add("META-INF/LICENSE.md")
39+
resources.excludes.add("META-INF/LICENSE-notice.md")
40+
}
3641
}
3742

3843
dependencies {
@@ -52,4 +57,11 @@ dependencies {
5257
implementation(libs.tensorflow.support)
5358

5459
testImplementation(projects.testing)
60+
androidTestImplementation(libs.amplify.auth)
61+
androidTestImplementation(libs.test.compose.junit)
62+
androidTestImplementation(libs.test.androidx.monitor)
63+
androidTestImplementation(libs.test.androidx.rules)
64+
androidTestImplementation(libs.test.junit)
65+
androidTestImplementation(libs.test.mockk.android)
66+
debugImplementation(libs.debug.ui.test.manifest)
5567
}

0 commit comments

Comments
 (0)