-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·143 lines (115 loc) · 4.93 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
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
buildscript {
ext.kotlin_version = '1.2.61'
repositories {
jcenter()
google()
maven {url 'https://oss.jfrog.org/libs-snapshot'}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.15.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
repositories {
jcenter()
google()
maven {url 'https://oss.jfrog.org/libs-snapshot'}
maven {url 'https://jitpack.io'}
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.github.ben-manes.versions'
// Use `com.nerdery.umbrella.darkskyapikey` in gradle.properties or as a command line
// parameter or `DARK_SKY_API_KEY` as a System Environment variable to provide dark
// sky api key to this project
ext.darkSkyApiKey = project.hasProperty('com.nerdery.umbrella.darkskyapikey') ?
project.getProperty('com.nerdery.umbrella.darkskyapikey') : System.getenv('DARK_SKY_API_KEY') ?: ''
android {
compileSdkVersion 27
buildToolsVersion '28.0.3'
signingConfigs {
umbrella {
storeFile file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}
defaultConfig {
applicationId "com.nerdery.umbrella"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName '1.0'
buildConfigField "String", "API_KEY", "\"$project.darkSkyApiKey\""
signingConfig signingConfigs.umbrella
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
}
buildTypes {
debug {
applicationIdSuffix '.debug'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
ext {
SUPPORT_LIB_VERSION = "27.1.1"
RETROFIT_VERSION = "2.3.0"
OKHTTP_VERSION = "3.9.0"
ROOM_VERSION = "1.1.1"
PICASSO_VERSION = "2.71828"
FACEBOOK_VERSION = "1.5.0"
}
kapt {
generateStubs = true
}
dependencies {
implementation "com.android.support:support-v4:$SUPPORT_LIB_VERSION"
implementation "com.android.support:support-annotations:$SUPPORT_LIB_VERSION"
implementation "com.android.support:appcompat-v7:$SUPPORT_LIB_VERSION"
implementation "com.android.support:recyclerview-v7:$SUPPORT_LIB_VERSION"
implementation "com.android.support:design:$SUPPORT_LIB_VERSION"
implementation "com.android.support:cardview-v7:$SUPPORT_LIB_VERSION"
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation "com.squareup.okhttp3:okhttp:$OKHTTP_VERSION"
implementation "com.squareup.okhttp3:logging-interceptor:$OKHTTP_VERSION"
implementation "com.squareup.picasso:picasso:$PICASSO_VERSION"
implementation "com.squareup.retrofit2:retrofit:$RETROFIT_VERSION"
implementation "com.squareup.retrofit2:converter-moshi:$RETROFIT_VERSION"
implementation "com.squareup.retrofit2:converter-gson:$RETROFIT_VERSION"
implementation "com.squareup.retrofit2:adapter-rxjava2:$RETROFIT_VERSION"
implementation "io.reactivex.rxjava2:rxjava:2.2.0"
implementation "io.reactivex.rxjava2:rxandroid:2.1.0"
implementation "com.jakewharton.byteunits:byteunits:0.9.1"
implementation "com.jakewharton.threetenabp:threetenabp:1.1.0"
implementation "com.jakewharton.timber:timber:4.7.1"
implementation "com.jakewharton.picasso:picasso2-okhttp3-downloader:1.1.0"
implementation 'org.greenrobot:eventbus:3.1.1'
implementation 'com.google.dagger:dagger:2.14.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:support-vector-drawable:27.1.1'
kapt 'com.google.dagger:dagger-compiler:2.14.1'
implementation "com.f2prateek.rx.preferences:rx-preferences:1.0.2"
implementation 'com.github.MatteoBattilana:WeatherView:2.0.3'
implementation 'io.nlopez.smartlocation:library:3.3.3'
implementation 'com.karumi:dexter:5.0.0'
implementation 'com.facebook.shimmer:shimmer:0.2.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.26.1"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:0.26.1"
implementation 'com.github.ybq:Android-SpinKit:1.1.0'
implementation "android.arch.persistence.room:runtime:$ROOM_VERSION"
annotationProcessor "android.arch.persistence.room:compiler:$ROOM_VERSION"
kapt "android.arch.persistence.room:compiler:$ROOM_VERSION"
debugImplementation "com.facebook.stetho:stetho:$FACEBOOK_VERSION"
debugImplementation "com.facebook.stetho:stetho-okhttp3:$FACEBOOK_VERSION"
debugImplementation "com.facebook.stetho:stetho-timber:$FACEBOOK_VERSION@aar"
implementation 'com.android.support:multidex:1.0.3'
}