-
-
Notifications
You must be signed in to change notification settings - Fork 368
/
build.gradle
95 lines (89 loc) · 4.38 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.versions = [
'cardView': '1.0.0',
'compose': '1.2.0-rc01',
'composeActivity': '1.4.0',
'composeConstraintLayout': '1.0.1',
'composeNavigation': '2.4.2',
'constraintLayout' : '2.1.4',
'coroutine': '1.6.2',
'espresso': '3.2.0',
'glide': '4.13.2',
'gradle': '7.2.1',
'junit' : '4.12',
'junitImplementation' : '1.1.1',
'kotlin': '1.6.21',
'kotlinCompilerVersion': '1.6.21',
'ktx': '1.8.0',
'ktxSupport': '2.4.1',
'lifecycle':'2.2.0',
'picasso': '2.71828',
'supportLibrary': '1.4.2',
'testRunner': '1.2.0',
]
ext.deps = [
'cardView': "androidx.cardview:cardview:${versions.cardView}",
'compose': [
'activityCompose': "androidx.activity:activity-compose:${versions.composeActivity}",
'composeComplier': "androidx.compose:compose-compiler:${versions.compose}",
'composeNavigation': "androidx.navigation:navigation-compose:${versions.composeNavigation}",
'composeNavigationTest': "androidx.navigation:navigation-testing:${versions.composeNavigation}",
'composeRuntime': "androidx.compose.runtime:runtime:${versions.compose}",
'constraintLayout': "androidx.constraintlayout:constraintlayout-compose:${versions.composeConstraintLayout}",
'core': "androidx.compose.ui:ui:${versions.compose}",
'foundation': "androidx.compose.foundation:foundation:${versions.compose}",
'tooling': "androidx.compose.ui:ui-tooling:${versions.compose}",
'layout': "androidx.compose.foundation:foundation-layout:${versions.compose}",
'material': "androidx.compose.material:material:${versions.compose}",
'savedInstanceState': "androidx.compose.runtime:runtime-saveable:${versions.compose}",
'uiTest': "androidx.compose.ui:ui-test-junit4:${versions.compose}",
'uiLiveData': "androidx.compose.runtime:runtime-livedata:${versions.compose}"
],
'constraintLayout': "androidx.constraintlayout:constraintlayout:${versions.constraintLayout}",
'coroutine': [
'core': "org.jetbrains.kotlinx:kotlinx-coroutines-core:${versions.coroutine}",
],
'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}"
],
'support': [
'appCompat': "androidx.appcompat:appcompat:${versions.supportLibrary}",
'ktx': "androidx.core:core-ktx:${versions.ktx}",
'ktxLiveData': "androidx.lifecycle:lifecycle-livedata-ktx:${versions.ktxSupport}",
'ktxViewModel': "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.ktxSupport}",
'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()
mavenCentral()
}
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.19.0"
}
allprojects {
apply from: "$rootDir/detekt/detekt.gradle"
repositories {
google()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}