This repository was archived by the owner on Jan 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Expand file tree
/
Copy pathbuild.gradle
More file actions
51 lines (44 loc) · 1.31 KB
/
Copy pathbuild.gradle
File metadata and controls
51 lines (44 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
plugins {
id 'com.android.test'
id 'kotlin-android'
}
android {
compileSdkVersion Versions.COMPILE_SDK
defaultConfig {
minSdkVersion 23 // Macrobenchmark doesn't work on lower API
targetSdkVersion Versions.TARGET_SDK
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildTypes {
// declare a build type to match the target app's build type
benchmark {
debuggable = true
signingConfig = debug.signingConfig
}
}
targetProjectPath = ":mobile"
experimentalProperties["android.experimental.self-instrumenting"] = true
}
androidComponents {
beforeVariants(selector().all()) {
// enable only the release buildType, since we only want to measure
// release build performance
enabled = buildType == 'benchmark'
}
}
dependencies {
api platform(project(":depconstraints"))
implementation Libs.BENCHMARK_MACRO
implementation Libs.ESPRESSO_CORE
implementation Libs.EXT_JUNIT
implementation Libs.KOTLIN_STDLIB
implementation Libs.TIMBER
implementation Libs.UI_AUTOMATOR
}