Skip to content

Commit

Permalink
Fix ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bentrengrove committed Dec 8, 2024
1 parent 6891537 commit 51cf60d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions navigation-animation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ plugins {

android {
namespace = "com.google.accompanist.navigation.animation"

packaging {
// Some of the META-INF files conflict with coroutines-test. Exclude them to enable
// our test APK to build (has no effect on our AARs)
resources {
excludes += listOf("/META-INF/AL2.0", "/META-INF/LGPL2.1")
}
}
}

dependencies {
Expand Down
8 changes: 8 additions & 0 deletions navigation-material/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ plugins {

android {
namespace = "com.google.accompanist.navigation.material"

packaging {
// Some of the META-INF files conflict with coroutines-test. Exclude them to enable
// our test APK to build (has no effect on our AARs)
resources {
excludes += listOf("/META-INF/AL2.0", "/META-INF/LGPL2.1")
}
}
}

dependencies {
Expand Down
7 changes: 7 additions & 0 deletions permissions/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ plugins {
android {
namespace = "com.google.accompanist.permissions"

defaultConfig {
// The following argument makes the Android Test Orchestrator run its
// "pm clear" command after each test invocation. This command ensures
// that the app's state is completely cleared between tests.
testInstrumentationRunnerArguments["clearPackageData"] = "true"
}

testOptions {
execution = "ANDROIDX_TEST_ORCHESTRATOR"
}
Expand Down

0 comments on commit 51cf60d

Please sign in to comment.