-
Notifications
You must be signed in to change notification settings - Fork 52
/
versions.gradle
54 lines (44 loc) · 1.46 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
//App
def app_version = [:]
app_version.versionCode = 11 //androidx 12
app_version.versionName = "3.2.1"
ext.app_version = app_version
//build version
def build_versions = [:]
build_versions.minSdk = 15
build_versions.targetSdk = 28
build_versions.compileSdk = 28
build_versions.buildTools = "28.0.3"
ext.build_versions = build_versions
ext.deps = [:]
// App dependencies
def versions = [:]
//support
versions.supportLibrary = "28.0.0"
versions.constraintLayout = "1.1.3"
//test
versions.junit = "4.12"
versions.runner = "1.0.2"
versions.espresso = "3.0.2"
//support
def support = [:]
support.design = "com.android.support:design:$versions.supportLibrary"
support.appcompat = "com.android.support:appcompat-v7:$versions.supportLibrary"
support.recyclerview = "com.android.support:recyclerview-v7:$versions.supportLibrary"
support.constraintlayout = "com.android.support.constraint:constraint-layout:$versions.constraintLayout"
deps.support = support
//test
def test = [:]
test.junit = "junit:junit:$versions.junit"
test.runner = "com.android.support.test:runner:$versions.runner"
test.espresso = "com.android.support.test.espresso:espresso-core:$versions.espresso"
deps.test = test
//superswiperefreshlayout
deps.superswiperefreshlayout = "com.king.view:superswiperefreshlayout:1.1.0"
ext.deps = deps
def addRepos(RepositoryHandler handler) {
handler.google()
handler.jcenter()
handler.maven { url 'https://dl.bintray.com/jenly/maven' }
}
ext.addRepos = this.&addRepos