Skip to content

Commit 81408ba

Browse files
committed
dependencies updated.
1 parent 9e0a9f4 commit 81408ba

File tree

3 files changed

+13
-28
lines changed

3 files changed

+13
-28
lines changed

gradle/libs.versions.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[versions]
22
android_gradle_plugin = '8.3.2'
3-
material_design = '1.11.0'
3+
material_design = '1.12.0'
44
junit = '4.13.2'
55
kotlin = '1.9.23'
66
kotlin_compiler_extension = '1.5.11'
7-
androidx_compose_bom = '2024.04.00'
8-
androidx_compose_uitest = '1.6.5'
9-
androidx_core = '1.12.0'
7+
androidx_compose_bom = '2024.05.00'
8+
androidx_compose_uitest = '1.6.7'
9+
androidx_core = '1.13.1'
1010
androidx_appcompat = '1.6.1'
1111
androidx_navigation = '2.7.7'
1212
androidx_preference = '1.2.1'
@@ -50,3 +50,7 @@ androidx_espresso_web = { module = "androidx.test.espresso:espress
5050
# androidx_espresso_contrib = { module = "androidx.test.espresso:espresso-contrib", version.ref = "androidx_test_espresso" }
5151
# androidx_espresso_intents = { module = "androidx.test.espresso:espresso-intents", version.ref = "androidx_test_espresso" }
5252
# androidx_espresso_accessibility = { module = "androidx.test.espresso:espresso-accessibility", version.ref = "androidx_test_espresso" }
53+
54+
[bundles]
55+
androidx_test = ["androidx_test_junit", "androidx_test_core", "androidx_test_rules", "androidx_test_runner", "androidx_test_uiautomator"]
56+
androidx_espresso = ["androidx_espresso_core", "androidx_espresso_web"]

mobile/build.gradle

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -103,27 +103,11 @@ dependencies {
103103
// https://mvnrepository.com/artifact/androidx.test/monitor
104104
debugImplementation libs.androidx.test.monitor
105105

106-
// Required for connected tests (ActivityInvoker).
107106
// https://mvnrepository.com/artifact/androidx.test.ext
108-
debugImplementation libs.androidx.test.junit
109-
110-
// https://mvnrepository.com/artifact/androidx.test
111-
// https://developer.android.com/jetpack/androidx/releases/test
112-
androidTestImplementation libs.androidx.test.core
113-
androidTestImplementation libs.androidx.test.runner
114-
androidTestImplementation libs.androidx.test.rules
115-
116-
// https://mvnrepository.com/artifact/androidx.test.uiautomator/uiautomator
117-
androidTestImplementation libs.androidx.test.uiautomator
118-
119-
// Espresso
120-
androidTestImplementation libs.androidx.espresso.core
121-
androidTestImplementation libs.androidx.espresso.web
122-
// androidTestImplementation libs.androidx.espresso.idling.concurrent
123-
// androidTestImplementation libs.androidx.espresso.accessibility
124-
// androidTestImplementation libs.androidx.espresso.contrib
125-
// androidTestImplementation libs.androidx.espresso.intents
107+
androidTestImplementation libs.bundles.androidx.test
126108

109+
// https://mvnrepository.com/artifact/androidx.test.espresso
110+
androidTestImplementation libs.bundles.androidx.espresso
127111
// The following dependency can be either "implementation" or "androidTestImplementation",
128112
// depending on whether you want it to appear on your APK's compile classpath or the test APK classpath.
129113
// androidTestImplementation libs.androidx.espresso.idling.resource

mobile/src/androidTest/java/io/syslogic/demo/colorpicker/TestSuite.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,7 @@ void randomlyClick(@NonNull UiObject2 view) {
127127
}
128128

129129
void sleep(int ms) {
130-
try {
131-
Thread.sleep(ms);
132-
} catch (InterruptedException e) {
133-
e.printStackTrace();
134-
}
130+
try {Thread.sleep(ms);}
131+
catch (InterruptedException ignore) {}
135132
}
136133
}

0 commit comments

Comments
 (0)