forked from vinaygaba/Learn-Jetpack-Compose-By-Example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
89 lines (83 loc) · 3.72 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
85
86
87
88
89
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.versions = [
'cardView': '1.0.0',
'compose': '0.1.0-dev10',
'constraintLayout' : '1.1.3',
'espresso': '3.2.0',
'glide': '4.10.0',
'gradle': '4.1.0-alpha08',
'junit' : '4.12',
'junitImplementation' : '1.1.1',
'kotlin': '1.3.72',
'ktx': '1.1.0',
'lifecycle':'2.2.0',
'picasso': '2.71828',
'rxjava': '2.0.2',
'rxandroid': '2.1.1',
'supportLibrary': '1.1.0',
'testRunner': '1.2.0',
]
ext.deps = [
'cardView': "androidx.cardview:cardview:${versions.cardView}",
'compose': [
'composeComplier': "androidx.compose:compose-compiler:${versions.compose}",
'composeRuntime': "androidx.compose:compose-runtime:${versions.compose}",
'core': "androidx.ui:ui-core:${versions.compose}",
'foundation': "androidx.ui:ui-foundation:${versions.compose}",
'framework': "androidx.ui:ui-framework:${versions.compose}",
'tooling': "androidx.ui:ui-tooling:${versions.compose}",
'layout': "androidx.ui:ui-layout:${versions.compose}",
'material': "androidx.ui:ui-material:${versions.compose}",
'savedInstanceState': "androidx.ui:ui-saved-instance-state:${versions.compose}",
'uiTest': "androidx.ui:ui-test:${versions.compose}",
'uiLiveData': "androidx.ui:ui-livedata:${versions.compose}"
],
'constraintLayout': "androidx.constraintlayout:constraintlayout:${versions.constraintLayout}",
'kotlinStdLib': "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}",
'imageLoading': [
'picasso': "com.squareup.picasso:picasso:${versions.picasso}",
'glideCore': "com.github.bumptech.glide:glide:${versions.glide}",
'glideCompiler': "com.github.bumptech.glide:compiler:${versions.glide}"
],
'rx': [
'core': "io.reactivex.rxjava2:rxjava:${versions.rxjava}",
'android': "io.reactivex.rxjava2:rxandroid:${versions.rxandroid}"
],
'support': [
'appCompat': "androidx.appcompat:appcompat:${versions.supportLibrary}",
'ktx': "androidx.core:core-ktx:${versions.supportLibrary}",
'lifecycleExtensions': "androidx.lifecycle:lifecycle-extensions:${versions.lifecycle}"
],
'test': [
'junit': "junit:junit:${versions.junit}",
'junitImplementation': "androidx.test.ext:junit:${versions.junitImplementation}",
'androidxTestRunner': "androidx.test:runner:${versions.testRunner}"
]
]
repositories {
google()
jcenter()
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
}
dependencies {
classpath "com.android.tools.build:gradle:${versions.gradle}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id "io.gitlab.arturbosch.detekt" version "1.7.4"
}
allprojects {
apply from: "$rootDir/detekt/detekt.gradle"
repositories {
google()
jcenter()
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}