File tree Expand file tree Collapse file tree 4 files changed +14
-2
lines changed
sample-app/src/androidTest/java/com/atiurin/sampleapp/tests
ultron-android/src/main/kotlin/com/atiurin/ultron/core/config
ultron-compose/src/commonMain/kotlin/com/atiurin/ultron/core/compose/config Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ kotlin.mpp.enableCInteropCommonization=true
14
14
15
15
GROUP =com.atiurin
16
16
POM_ARTIFACT_ID =ultron
17
- VERSION_NAME =2.5.0-alpha09
17
+ VERSION_NAME =2.5.0-alpha10
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ abstract class BaseTest {
31
31
@JvmStatic
32
32
fun config () {
33
33
UltronConfig .applyRecommended()
34
- UltronAllureConfig .applyRecommended()
35
34
UltronComposeConfig .applyRecommended()
35
+ UltronAllureConfig .applyRecommended()
36
36
UltronAllureConfig .setAllureResultsDirectory(Environment .DIRECTORY_DOWNLOADS )
37
37
}
38
38
}
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ object UltronConfig {
73
73
private fun modify () {
74
74
Espresso .ACTION_TIMEOUT = params.operationTimeoutMs
75
75
Espresso .ASSERTION_TIMEOUT = params.operationTimeoutMs
76
+ UiAutomator .OPERATION_TIMEOUT = params.operationTimeoutMs
76
77
UltronCommonConfig .addListener(LogLifecycleListener ())
77
78
if (params.logToFile) {
78
79
UltronLog .addLogger(UltronLog .fileLogger)
Original file line number Diff line number Diff line change @@ -79,10 +79,21 @@ object UltronComposeConfig {
79
79
80
80
fun applyRecommended () {
81
81
params = UltronComposeConfigParams ()
82
+ modify()
82
83
}
83
84
84
85
fun apply (block : UltronComposeConfigParams .() -> Unit ) {
85
86
params.block()
87
+ modify()
88
+ }
89
+
90
+ private fun modify (){
91
+ UltronCommonConfig .addListener(LogLifecycleListener ())
92
+ if (UltronCommonConfig .logToFile) {
93
+ UltronLog .addLogger(UltronLog .fileLogger)
94
+ } else {
95
+ UltronLog .removeLogger(UltronLog .fileLogger.id)
96
+ }
86
97
UltronLog .info(" UltronComposeConfig applied with params $params }" )
87
98
}
88
99
}
You can’t perform that action at this time.
0 commit comments