File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
baseBenchmarks/src/main/java/com/example/benchmark/macro/base/util Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ android {
28
28
applicationId = " com.example.macrobenchmark.target"
29
29
versionCode = 1
30
30
versionName = " 1.0"
31
+ minSdk = 21 // Minimum SDK for target application can be lower than for benchmarks.
31
32
targetSdk = 34
32
- minSdk = 21
33
33
testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
34
34
}
35
35
@@ -68,11 +68,11 @@ android {
68
68
// [END macrobenchmark_setup_app_build_type]
69
69
70
70
compileOptions {
71
- sourceCompatibility = JavaVersion .VERSION_11
72
- targetCompatibility = JavaVersion .VERSION_11
71
+ sourceCompatibility = JavaVersion .VERSION_17
72
+ targetCompatibility = JavaVersion .VERSION_17
73
73
}
74
74
kotlinOptions {
75
- jvmTarget = JavaVersion .VERSION_11 .toString()
75
+ jvmTarget = JavaVersion .VERSION_17 .toString()
76
76
freeCompilerArgs = freeCompilerArgs + listOf (
77
77
" -opt-in=kotlin.RequiresOptIn"
78
78
)
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ package com.example.benchmark.macro.base.util
19
19
import android.util.Log
20
20
import androidx.test.uiautomator.BySelector
21
21
import androidx.test.uiautomator.SearchCondition
22
- import androidx.test.uiautomator.Tracer
23
22
import androidx.test.uiautomator.UiDevice
24
23
import androidx.test.uiautomator.UiObject2
25
24
import androidx.test.uiautomator.Until
@@ -36,7 +35,6 @@ fun UiDevice.findOrFail(
36
35
selector : BySelector ,
37
36
message : String? = null,
38
37
): UiObject2 {
39
- Tracer .trace(selector)
40
38
val element = findObject(selector)
41
39
if (element == null ) {
42
40
val hierarchy = getWindowHierarchy()
@@ -72,7 +70,6 @@ fun UiDevice.waitAndFind(
72
70
timeout : Long = 5_000,
73
71
message : String? = null,
74
72
): UiObject2 {
75
- Tracer .trace(selector)
76
73
waitOrFail(Until .hasObject(selector), timeout, message)
77
74
return findOrFail(selector, message)
78
75
}
You can’t perform that action at this time.
0 commit comments