-
Notifications
You must be signed in to change notification settings - Fork 16
/
Dependencies.kt
167 lines (118 loc) · 6.41 KB
/
Dependencies.kt
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/*
* Copyright 2020 Paul Rybitskyi, paul.rybitskyi.work@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@file:Suppress("ClassName")
import org.gradle.api.JavaVersion
object appConfig {
const val compileSdkVersion = 29
const val targetSdkVersion = 29
const val minSdkVersion = 23
const val buildToolsVersion = "29.0.3"
const val applicationId = "com.paulrybitskyi.docskanner"
const val versionCode = 1
const val versionName = "1.0.0"
val javaCompatibilityVersion = JavaVersion.VERSION_1_8
val kotlinCompatibilityVersion = JavaVersion.VERSION_1_8
}
object versions {
const val kotlin = "1.4.32" // also in buildSrc build.gradle.kts file
const val navigation = "2.3.5"
const val daggerHilt = "2.34-beta"
const val gradleVersionsPlugin = "0.38.0"
}
object deps {
object plugins {
private const val gradlePluginVersion = "4.1.3" // also in buildSrc build.gradle.kts file
const val androidGradle = "com.android.tools.build:gradle:${gradlePluginVersion}"
const val kotlinGradle = "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
const val navSafeArgs = "androidx.navigation:navigation-safe-args-gradle-plugin:${versions.navigation}"
const val daggerHiltGradle = "com.google.dagger:hilt-android-gradle-plugin:${versions.daggerHilt}"
const val gradleVersions = "com.github.ben-manes:gradle-versions-plugin:${versions.gradleVersionsPlugin}"
}
object local {
const val domain = ":domain"
const val data = ":data"
const val core = ":core"
const val imageLoading = ":image-loading"
const val imageProcessing = ":image-processing"
const val openCv = ":openCVLibrary3413"
}
object kotlin {
private const val kotlinCoroutinesCoreVersion = "1.4.3"
const val stdLib = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}"
const val coroutinesCore = "org.jetbrains.kotlinx:kotlinx-coroutines-core:${kotlinCoroutinesCoreVersion}"
}
object androidX {
private const val appCompatVersion = "1.2.0"
private const val constraintLayoutVersion = "2.0.4"
private const val recyclerViewVersion = "1.2.0"
private const val lifecycleVersion = "2.3.0"
private const val coreKtxVersion = "1.3.2"
private const val fragmentKtxVersion = "1.3.2"
private const val liveDataKtxVersion = "2.3.1"
const val appCompat = "androidx.appcompat:appcompat:${appCompatVersion}"
const val navFragmentKtx = "androidx.navigation:navigation-fragment-ktx:${versions.navigation}"
const val navUiKtx = "androidx.navigation:navigation-ui-ktx:${versions.navigation}"
const val constraintLayout = "androidx.constraintlayout:constraintlayout:${constraintLayoutVersion}"
const val recyclerView = "androidx.recyclerview:recyclerview:${recyclerViewVersion}"
const val lifecycleCommonJava8 = "androidx.lifecycle:lifecycle-common-java8:${lifecycleVersion}"
const val lifecycleViewModel = "androidx.lifecycle:lifecycle-viewmodel:${lifecycleVersion}"
const val coreKtx = "androidx.core:core-ktx:${coreKtxVersion}"
const val fragmentKtx = "androidx.fragment:fragment-ktx:${fragmentKtxVersion}"
const val liveDataKtx = "androidx.lifecycle:lifecycle-livedata-ktx:${liveDataKtxVersion}"
}
object google {
private const val materialComponentsVersion = "1.3.0-alpha02"
const val daggerHilt = "com.google.dagger:hilt-android:${versions.daggerHilt}"
const val daggerHiltCompiler = "com.google.dagger:hilt-android-compiler:${versions.daggerHilt}"
const val materialComponents = "com.google.android.material:material:${materialComponentsVersion}"
}
object square {
private const val picassoVersion = "2.8"
const val picasso = "com.squareup.picasso:picasso:${picassoVersion}"
}
object commons {
private const val commonsCoreVersion = "1.0.2"
private const val commonsKtxVersion = "1.0.2"
private const val commonsNavigationVersion = "1.0.1"
private const val commonsWidgetsVersion = "1.0.1"
private const val commonsRecyclerViewVersion = "1.0.0"
private const val commonsWindowAnimsVersion = "1.0.0"
const val commonsCore = "com.paulrybitskyi.commons:commons-core:${commonsCoreVersion}"
const val commonsKtx = "com.paulrybitskyi.commons:commons-ktx:${commonsKtxVersion}"
const val commonsNavigation = "com.paulrybitskyi.commons:commons-navigation:${commonsNavigationVersion}"
const val commonsWidgets = "com.paulrybitskyi.commons:commons-widgets:${commonsWidgetsVersion}"
const val commonsRecyclerView = "com.paulrybitskyi.commons:commons-recyclerview:${commonsRecyclerViewVersion}"
const val commonsWindowAnims = "com.paulrybitskyi.commons:commons-window-anims:${commonsWindowAnimsVersion}"
}
object misc {
private const val dexterVersion = "6.2.2"
private const val materialDialogsVersion = "3.3.0"
private const val pdfViewerVersion = "2.8.2"
private const val hiltBinderVersion = "1.0.0"
const val dexter = "com.karumi:dexter:${dexterVersion}"
const val materialDialogsCore = "com.afollestad.material-dialogs:core:${materialDialogsVersion}"
const val materialDialogsInput = "com.afollestad.material-dialogs:input:${materialDialogsVersion}"
const val pdfViewer = "com.github.barteksc:android-pdf-viewer:${pdfViewerVersion}"
const val hiltBinder = "com.paulrybitskyi:hilt-binder:$hiltBinderVersion"
const val hiltBinderCompiler = "com.paulrybitskyi:hilt-binder-compiler:$hiltBinderVersion"
}
object testing {
private const val jUnitVersion = "4.13.2"
private const val jUnitExtVersion = "1.1.2"
const val jUnit = "junit:junit:${jUnitVersion}"
const val jUnitExt = "androidx.test.ext:junit:${jUnitExtVersion}"
}
}