-
Notifications
You must be signed in to change notification settings - Fork 2
/
versions.gradle
164 lines (148 loc) · 7.27 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
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
/**
* Shared file between builds so that they can all use the same dependencies and
* maven repositories.
**/
ext.deps = [:]
def versions = [:]
versions.arch_core = "1.1.1"
versions.room = "1.1.0-beta2"
versions.lifecycle = "1.1.1"
versions.support = "27.1.0"
versions.play_services = "12.0.1"
versions.dagger = "2.15"
versions.junit = "4.12"
versions.espresso = "3.0.1"
versions.retrofit = "2.4.0"
versions.moshi = "1.5.0"
versions.okhttp_logging_interceptor = "3.9.0"
versions.mockwebserver = "3.8.1"
versions.apache_commons = "2.5"
versions.mockito = "2.18.0"
versions.mockito_all = "1.10.19"
versions.dexmaker = "2.2.0"
versions.constraint_layout = "1.1.0"
versions.glide = "3.8.0"
versions.timber = "4.7.0"
versions.android_gradle_plugin = "3.2.0-alpha11"
versions.google_services_plugin = "3.2.1"
versions.firebase_plugin = "1.1.5"
versions.fabric_plugin = "1.25.3"
versions.rxjava2 = "2.1.12"
versions.rx_android = "2.0.1"
versions.atsl_runner = "1.0.1"
versions.atsl_rules = "1.0.1"
versions.hamcrest = "1.3"
versions.kotlin = "1.2.30"
versions.paging = "1.0.0-alpha5"
versions.things = "0.8-devpreview"
versions.mqtt = "1.1.2-SNAPSHOT"
def deps = [:]
def support = [:]
support.annotations = "com.android.support:support-annotations:$versions.support"
support.app_compat = "com.android.support:appcompat-v7:$versions.support"
support.recyclerview = "com.android.support:recyclerview-v7:$versions.support"
support.cardview = "com.android.support:cardview-v7:$versions.support"
support.design = "com.android.support:design:$versions.support"
support.v4 = "com.android.support:support-v4:$versions.support"
support.core_utils = "com.android.support:support-core-utils:$versions.support"
deps.support = support
def play_services = [:]
play_services.crashlytics = "com.crashlytics.sdk.android:crashlytics:2.9.1@aar"
play_services.location = "com.google.android.gms:play-services-location:$versions.play_services"
play_services.maps = "com.google.android.gms:play-services-maps:$versions.play_services"
play_services.nearby = "com.google.android.gms:play-services-nearby:$versions.play_services"
play_services.firebase = "com.google.firebase:firebase-core:$versions.play_services"
play_services.auth = "com.google.firebase:firebase-auth:$versions.play_services"
play_services.database = "com.google.firebase:firebase-database:$versions.play_services"
play_services.perf = "com.google.firebase:firebase-perf:$versions.play_services"
deps.play_services = play_services
def room = [:]
room.runtime = "android.arch.persistence.room:runtime:$versions.room"
room.compiler = "android.arch.persistence.room:compiler:$versions.room"
room.rxjava2 = "android.arch.persistence.room:rxjava2:$versions.room"
room.testing = "android.arch.persistence.room:testing:$versions.room"
deps.room = room
def lifecycle = [:]
lifecycle.runtime = "android.arch.lifecycle:runtime:$versions.lifecycle"
lifecycle.livedata = "android.arch.lifecycle:livedata:$versions.lifecycle"
lifecycle.viewmodel = "android.arch.lifecycle:viewmodel:$versions.lifecycle"
lifecycle.extensions = "android.arch.lifecycle:extensions:$versions.lifecycle"
lifecycle.java8 = "android.arch.lifecycle:common-java8:$versions.lifecycle"
lifecycle.compiler = "android.arch.lifecycle:compiler:$versions.lifecycle"
deps.lifecycle = lifecycle
def arch_core = [:]
arch_core.testing = "android.arch.core:core-testing:$versions.arch_core"
deps.arch_core = arch_core
def retrofit = [:]
retrofit.runtime = "com.squareup.retrofit2:retrofit:$versions.retrofit"
retrofit.gson = "com.squareup.retrofit2:converter-gson:$versions.retrofit"
retrofit.moshi = "com.squareup.retrofit2:converter-moshi:$versions.retrofit"
retrofit.mock = "com.squareup.retrofit2:retrofit-mock:$versions.retrofit"
deps.retrofit = retrofit
deps.moshi = "com.squareup.moshi:moshi:$versions.moshi"
deps.okhttp_logging_interceptor = "com.squareup.okhttp3:logging-interceptor:${versions.okhttp_logging_interceptor}"
def dagger = [:]
dagger.runtime = "com.google.dagger:dagger:$versions.dagger"
dagger.android = "com.google.dagger:dagger-android:$versions.dagger"
dagger.android_support = "com.google.dagger:dagger-android-support:$versions.dagger"
dagger.compiler = "com.google.dagger:dagger-compiler:$versions.dagger"
dagger.android_support_compiler = "com.google.dagger:dagger-android-processor:$versions.dagger"
deps.dagger = dagger
def espresso = [:]
espresso.core = "com.android.support.test.espresso:espresso-core:$versions.espresso"
espresso.contrib = "com.android.support.test.espresso:espresso-contrib:$versions.espresso"
espresso.intents = "com.android.support.test.espresso:espresso-intents:$versions.espresso"
deps.espresso = espresso
def atsl = [:]
atsl.runner = "com.android.support.test:runner:$versions.atsl_runner"
atsl.rules = "com.android.support.test:rules:$versions.atsl_runner"
deps.atsl = atsl
def mockito = [:]
mockito.core = "org.mockito:mockito-core:$versions.mockito"
mockito.all = "org.mockito:mockito-all:$versions.mockito_all"
mockito.android = "org.mockito:mockito-android:$versions.mockito"
deps.mockito = mockito
def hamcrest = [:]
hamcrest.all = "org.hamcrest:hamcrest-all:$versions.hamcrest"
hamcrest.library = "org.hamcrest:hamcrest-library:$versions.hamcrest"
deps.hamcrest = hamcrest
def kotlin = [:]
kotlin.stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jre7:$versions.kotlin"
kotlin.test = "org.jetbrains.kotlin:kotlin-test-junit:$versions.kotlin"
kotlin.plugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
deps.kotlin = kotlin
def things = [:]
things.core = "com.google.android.things:androidthings:$versions.things"
things.bme680 = "com.knobtviker.android.things.contrib.community.driver:bme680:1.1.0"
things.bme280 = "com.google.android.things.contrib:driver-bmx280:0.5"
deps.things = things
deps.paging = "android.arch.paging:runtime:$versions.paging"
deps.glide = "com.github.bumptech.glide:glide:$versions.glide"
deps.dexmaker = "com.linkedin.dexmaker:dexmaker-mockito:$versions.dexmaker"
deps.constraint_layout = "com.android.support.constraint:constraint-layout:$versions.constraint_layout"
deps.timber = "com.jakewharton.timber:timber:$versions.timber"
deps.junit = "junit:junit:$versions.junit"
deps.mock_web_server = "com.squareup.okhttp3:mockwebserver:$versions.mockwebserver"
deps.rxjava2 = "io.reactivex.rxjava2:rxjava:$versions.rxjava2"
deps.rx_android = "io.reactivex.rxjava2:rxandroid:$versions.rx_android"
deps.android_gradle_plugin = "com.android.tools.build:gradle:$versions.android_gradle_plugin"
deps.google_services_plugin = "com.google.gms:google-services:$versions.google_services_plugin"
deps.firebase_plugin = "com.google.firebase:firebase-plugins:$versions.firebase_plugin"
deps.fabric_plugin = "io.fabric.tools:gradle:$versions.fabric_plugin"
deps.nearby_service_id = "com.rosterloh.andriot.service"
deps.mqttv3 = "org.eclipse.paho:org.eclipse.paho.client.mqttv3:$versions.mqtt"
deps.mqtt_android = "org.eclipse.paho:org.eclipse.paho.android.service:$versions.mqtt"
ext.deps = deps
def build_versions = [:]
build_versions.min_sdk = 27
build_versions.target_sdk = 27
ext.build_versions = build_versions
def addRepos(RepositoryHandler handler) {
handler.google()
handler.jcenter()
handler.mavenLocal()
handler.maven { url 'https://maven.fabric.io/public' }
handler.maven { url "https://jitpack.io" }
//handler.maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
ext.addRepos = this.&addRepos