-
Notifications
You must be signed in to change notification settings - Fork 14
/
versions.gradle
98 lines (95 loc) · 4.74 KB
/
versions.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
/*
* Copyright (C) 2019 Indrit Bashkimi.
*
* 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.
*/
def versions = [
android : [
compileSdk: 30,
buildTools: '30.0.3',
minSdk : 21,
targetSdk : 30
],
androidx: [
appcompat : '1.2.0',
browser : '1.3.0',
cardview : '1.0.0',
core : '1.3.2',
documentfile : '1.0.1',
fragment : '1.3.0',
lifecycle : '2.2.0',
localbroadcastmanager : '1.0.0',
navigation : '2.3.3',
paging : '2.1.2',
preference : '1.1.1',
recyclerview : '1.1.0',
recyclerviewSelection : '1.1.0',
swiperefreshlayout : '1.0.0'
],
google : [
material: '1.3.0'
],
kotlin : '1.4.30',
test : [
runner : '1.1.1',
espresso: '3.2.0'
]
]
def libraries = [
androidx : [
appcompat : "androidx.appcompat:appcompat:${versions.androidx.appcompat}",
browser : "androidx.browser:browser:${versions.androidx.browser}",
cardview : "androidx.cardview:cardview:${versions.androidx.cardview}",
corektx : "androidx.core:core-ktx:${versions.androidx.core}",
documentfile : "androidx.documentfile:documentfile:${versions.androidx.documentfile}",
fragment : "androidx.fragment:fragment-ktx:${versions.androidx.fragment}",
localbroadcastmanager: "androidx.localbroadcastmanager:localbroadcastmanager:${versions.androidx.localbroadcastmanager}",
preference : "androidx.preference:preference:${versions.androidx.preference}",
recyclerview : "androidx.recyclerview:recyclerview:${versions.androidx.recyclerview}",
recyclerviewSelection: "androidx.recyclerview:recyclerview-selection:${versions.androidx.recyclerviewSelection}",
swiperefreshlayout : "androidx.swiperefreshlayout:swiperefreshlayout:${versions.androidx.swiperefreshlayout}",
],
google : [
material: "com.google.android.material:material:${versions.google.material}"
],
kotlin : [
stdlib : "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$versions.kotlin",
test : "org.jetbrains.kotlin:kotlin-test-junit:$versions.kotlin",
plugin : "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin",
coroutines: 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.7'
],
lifecycle : [
common : "androidx.lifecycle:lifecycle-common-java8:${versions.androidx.lifecycle}",
compiler : "androidx.lifecycle:lifecycle-compiler:${versions.androidx.lifecycle}",
extensions: "androidx.lifecycle:lifecycle-extensions:${versions.androidx.lifecycle}",
livedata : "androidx.lifecycle:lifecycle-livedata-ktx:${versions.androidx.lifecycle}",
runtime : "androidx.lifecycle:lifecycle-runtime:${versions.androidx.lifecycle}",
viewmodel : "androidx.lifecycle:lifecycle-viewmodel:${versions.androidx.lifecycle}"
],
navigation: [
fragment : "androidx.navigation:navigation-fragment-ktx:${versions.androidx.navigation}",
safeArgs: [
plugin: "androidx.navigation:navigation-safe-args-gradle-plugin:${versions.androidx.navigation}"
],
ui : "androidx.navigation:navigation-ui-ktx:${versions.androidx.navigation}",
],
test : [
junit : 'junit:junit:4.12',
runner : "androidx.test:runner:${versions.test.runner}",
espresso: [
core: "androidx.test.espresso:espresso-core:${versions.test.espresso}"
]
]
]
ext.versions = versions
ext.deps = libraries