-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
112 lines (97 loc) · 5.5 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
buildscript {
ext.buildConfig = [
"compileSdk" : 29,
"minSdk" : 15,
"targetSdk" : 29,
"kotlin" : "1.3.72",
"agp" : "3.6.3",
"versionCode": 13,
"versionName": "0.6.2"
]
ext.versions = [
"coroutines" : "1.3.6",
"appCompat" : "1.1.0",
"lifecycle" : "2.2.0",
"coreTest" : "2.0.0",
"vmSavedState" : "2.2.0",
"coreKtx" : "1.2.0",
"recyclerView" : "1.1.0",
"materialComponents": "1.1.0",
"fragment" : "1.2.0",
"constraintLayout" : "1.1.3",
"navigation" : "2.2.1",
"sqldelight" : "1.2.0",
"junit" : "4.12",
"androidxTestCore" : "1.2.0",
"androidxTestExt" : "1.1.1",
"androidxTestRunner": "1.2.0",
"espressoCore" : "3.2.0",
"mockk" : "1.9.2",
"dagger" : "2.25.2",
"assistedInject" : "0.5.2",
"robolectric" : "4.3.1",
"dokka" : "0.9.18"
]
ext.libs = [
"kotlinStdLib" : "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${buildConfig.kotlin}",
"kotlinReflect" : "org.jetbrains.kotlin:kotlin-reflect:${buildConfig.kotlin}",
"coroutinesCore" : "org.jetbrains.kotlinx:kotlinx-coroutines-core:${versions.coroutines}",
"coroutinesAndroid" : "org.jetbrains.kotlinx:kotlinx-coroutines-android:${versions.coroutines}",
"coroutinesTest" : "org.jetbrains.kotlinx:kotlinx-coroutines-test:${versions.coroutines}",
"appCompat" : "androidx.appcompat:appcompat:${versions.appCompat}",
"viewModel" : "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.lifecycle}",
"liveData" : "androidx.lifecycle:lifecycle-livedata:${versions.lifecycle}",
"lifecycle" : "androidx.lifecycle:lifecycle-extensions:${versions.lifecycle}",
"coreTest" : "androidx.arch.core:core-testing:${versions.coreTest}",
"lifecycleRuntime" : "androidx.lifecycle:lifecycle-runtime-ktx:${versions.lifecycle}",
"vmSavedState" : "androidx.lifecycle:lifecycle-viewmodel-savedstate:${versions.vmSavedState}",
"coreKtx" : "androidx.core:core-ktx:${versions.coreKtx}",
"recyclerView" : "androidx.recyclerview:recyclerview:${versions.recyclerView}",
"materialComponents": "com.google.android.material:material:${versions.materialComponents}",
"navigation" : "androidx.navigation:navigation-fragment-ktx:${versions.navigation}",
"navigationUi" : "androidx.navigation:navigation-ui-ktx:${versions.navigation}",
"sqldelightDriver" : "com.squareup.sqldelight:android-driver:${versions.sqldelight}",
"constraintLayout" : "androidx.constraintlayout:constraintlayout:${versions.constraintLayout}",
"fragmentKtx" : "androidx.fragment:fragment-ktx:${versions.fragment}",
"junit" : "junit:junit:${versions.junit}",
"androidxTestCore" : "androidx.test:core:${versions.androidxTestCore}",
"androidxTestExt" : "androidx.test.ext:junit:${versions.androidxTestExt}",
"androidxTestRunner": "androidx.test:runner:${versions.androidxTestRunner}",
"espressoCore" : "androidx.test.espresso:espresso-core:${versions.espressoCore}",
"mockk" : "io.mockk:mockk:${versions.mockk}",
"dagger" : [
"dagger" : "com.google.dagger:dagger:${versions.dagger}",
"daggerAndroid" : "com.google.dagger:dagger-android:${versions.dagger}",
"daggerAndroidSupport" : "com.google.dagger:dagger-android-support:${versions.dagger}",
"compiler" : "com.google.dagger:dagger-compiler:${versions.dagger}",
"androidCompiler" : "com.google.dagger:dagger-android-processor:${versions.dagger}",
"assistedInject" : "com.squareup.inject:assisted-inject-annotations-dagger2:${versions.assistedInject}",
"assistedInjectCompiler" : "com.squareup.inject:assisted-inject-processor-dagger2:${versions.assistedInject}"
],
"robolectric" : "org.robolectric:robolectric:${versions.robolectric}",
"fragmentTest" : "androidx.fragment:fragment-testing:${versions.fragment}"
]
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:${buildConfig.agp}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${buildConfig.kotlin}"
classpath "com.squareup.sqldelight:gradle-plugin:${versions.sqldelight}"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:${versions.navigation}"
classpath 'androidx.benchmark:benchmark-gradle-plugin:1.0.0'
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:${versions.dokka}"
}
}
allprojects {
repositories {
google()
jcenter()
}
apply from: "$rootDir/ktlint.gradle"
}
task clean(type: Delete) {
delete rootProject.buildDir
}