forked from JakeWharton/RxBinding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
84 lines (73 loc) · 2.53 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
72
73
74
75
76
77
78
79
80
81
82
83
84
buildscript {
ext.buildConfig = [
'minSdkVersion': 14,
'compileSdkVersion': 29,
]
ext.versions = [
'kotlin': '1.3.72',
]
ext.deps = [
'kotlinStdlib': "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}",
'androidXAnnotations': 'androidx.annotation:annotation:1.0.0',
'androidXAppCompat': 'androidx.appcompat:appcompat:1.0.0',
'androidXCore': 'androidx.core:core:1.0.0',
'androidXDrawerLayout': 'androidx.drawerlayout:drawerlayout:1.0.0',
'androidXLeanback': 'androidx.leanback:leanback:1.0.0',
'androidXRecyclerView': 'androidx.recyclerview:recyclerview:1.0.0',
'androidXSlidingPaneLayout': 'androidx.slidingpanelayout:slidingpanelayout:1.0.0',
'androidXSwipeRefreshLayout': 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0',
'androidXViewPager': 'androidx.viewpager:viewpager:1.0.0',
'androidXViewPager2': 'androidx.viewpager2:viewpager2:1.0.0',
'androidXTestCore': 'androidx.test:core:1.1.0',
'androidXTestRunner': 'androidx.test:runner:1.1.1',
'androidXTestRules': 'androidx.test:rules:1.1.1',
'androidXTestEspresso': 'androidx.test.espresso:espresso-core:3.1.1',
'androidXTestEspressoContrib': 'androidx.test.espresso:espresso-contrib:3.1.1',
'googleMaterial': 'com.google.android.material:material:1.0.0',
'rxJava': 'io.reactivex.rxjava3:rxjava:3.0.3',
'rxAndroid': 'io.reactivex.rxjava3:rxandroid:3.0.0',
'junit': 'junit:junit:4.12',
]
dependencies {
classpath 'com.android.tools.build:gradle:3.6.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
}
repositories {
mavenCentral()
google()
jcenter()
}
}
subprojects {
repositories {
mavenCentral()
google()
jcenter()
}
group = GROUP
version = VERSION_NAME
afterEvaluate {
// The default 'assemble' task only applies to normal variants. Add test variants as well.
def assembleProvider = tasks.named('assemble')
android.testVariants.all { variant ->
assembleProvider.configure {
it.dependsOn(variant.assembleProvider)
}
}
// Disable BuildConfig generation.
// TODO replace with https://issuetracker.google.com/issues/72050365 once released.
android.libraryVariants.all {
it.generateBuildConfigProvider.configure {
enabled = false
}
}
tasks.withType(com.android.build.gradle.internal.tasks.AndroidTestTask) { task ->
task.doFirst {
logging.level = LogLevel.INFO
}
task.doLast {
logging.level = LogLevel.LIFECYCLE
}
}
}
}