forked from duckduckgo/Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
71 lines (63 loc) · 1.94 KB
/
build.gradle
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlin_version = '1.6.21'
spotless = "6.1.2"
anvil_version = "2.4.0"
gradle_plugin = "7.0.4"
min_sdk = 23
target_sdk = 30
compile_sdk = 31
fladle_version = "0.17.4"
}
repositories {
google()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "com.android.tools.build:gradle:$gradle_plugin"
classpath "com.diffplug.spotless:spotless-plugin-gradle:$spotless"
classpath "com.squareup.anvil:gradle-plugin:$anvil_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id 'com.osacky.fulladle' version "$fladle_version"
}
allprojects {
repositories {
google()
mavenCentral()
}
configurations.all {
resolutionStrategy.force 'org.objenesis:objenesis:2.6'
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
fladle {
configs {
serviceAccountCredentials.set(project.layout.projectDirectory.file("flank.json"))
androidTests {
async.set(false)
flankVersion.set("21.+")
testShards.set(2)
useOrchestrator.set(false)
recordVideo.set(false)
testTargets.set([
"notAnnotation com.duckduckgo.espresso.PrivacyTest",
"notAnnotation com.duckduckgo.espresso.UserJourney",
])
devices.set([
["model": "Pixel3", "version": "30"],
["model": "Nexus6", "version": "23"]
])
localResultsDir.set("fladleResults")
}
}
}
apply plugin: 'android-reporting'