forked from samuelclay/NewsBlur
/
build.gradle.kts
49 lines (41 loc) · 1.32 KB
/
build.gradle.kts
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
plugins {
id(Plugins.androidTest)
kotlin(Plugins.kotlinAndroid)
}
android {
namespace = Const.namespaceBenchmark
compileSdk = Config.compileSdk
compileOptions {
sourceCompatibility = Config.javaVersion
targetCompatibility = Config.javaVersion
}
defaultConfig {
minSdk = Config.minSdk
targetSdk = Config.targetSdk
testInstrumentationRunner = Config.androidTestInstrumentation
}
buildTypes {
// This benchmark buildType is used for benchmarking, and should function like your
// release build (for example, with minification on). It's signed with a debug key
// for easy local/CI testing.
maybeCreate(Const.benchmark)
getByName(Const.benchmark) {
isDebuggable = true
signingConfig = signingConfigs.getByName(Const.debug)
matchingFallbacks += listOf(Const.release)
}
}
targetProjectPath = ":app"
experimentalProperties[Const.selfInstrumenting] = true
}
dependencies {
implementation(Dependencies.junitExt)
implementation(Dependencies.espressoCore)
implementation(Dependencies.uiAutomator)
implementation(Dependencies.benchmarkMacroJunit4)
}
androidComponents {
beforeVariants(selector().all()) {
it.enabled = it.buildType == Const.benchmark
}
}