-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
186 lines (148 loc) · 6.26 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlinx-serialization'
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "io.github.flowboat.flowweather"
minSdkVersion 15
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
java.srcDirs += "src/main/libhw"
}
}
}
dependencies {
//Load libs from libs folder
implementation fileTree(dir: 'libs', include: ['*.jar'])
//Testing
testImplementation 'junit:junit:4.12'
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
//Appcompat
def compat_version = '27.1.1'
implementation "com.android.support:appcompat-v7:$compat_version"
implementation "com.android.support:design:$compat_version"
implementation "com.android.support:cardview-v7:$compat_version"
//ConstraintLayout
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
//Multidex
implementation 'com.android.support:multidex:1.0.3'
//Logging
implementation 'com.jakewharton.timber:timber:4.6.1'
//Kotlin
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
//Serialization
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$serialization_version"
//DI
def kodein_version = '4.1.0'
implementation "com.github.salomonbrys.kodein:kodein:$kodein_version"
implementation "com.github.salomonbrys.kodein:kodein-conf:$kodein_version"
//Shared prefs
implementation 'com.f2prateek.rx.preferences2:rx-preferences:2.0.0-RC3'
//RxJava 2 Android helpers
def autodispose_version = "0.5.1"
implementation "com.uber.autodispose:autodispose:$autodispose_version"
implementation "com.uber.autodispose:autodispose-android:$autodispose_version"
implementation "com.uber.autodispose:autodispose-android-archcomponents:$autodispose_version"
implementation "com.uber.autodispose:autodispose-kotlin:$autodispose_version"
//Coroutines
def kcoroutines_version = "0.19.1"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kcoroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-rx2:$kcoroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kcoroutines_version"
//HTTP
implementation 'com.squareup.okhttp3:okhttp:3.9.1'
//MVP
def nucleus_version = '5.0.0-beta1'
implementation "info.android15.nucleus5:nucleus:$nucleus_version"
implementation "info.android15.nucleus5:nucleus-support-v4:$nucleus_version"
implementation "info.android15.nucleus5:nucleus-support-v7:$nucleus_version"
//Java 8 Time
implementation 'com.jakewharton.threetenabp:threetenabp:1.0.5'
//Step-by-step stuff
implementation 'com.stepstone.stepper:material-stepper:4.3.1'
//Graphs
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
//Better recyclerview
implementation 'eu.davidea:flexible-adapter:5.0.0-rc4'
implementation 'eu.davidea:flexible-adapter-ui:1.0.0-b1'
//Save state in viewpager
implementation 'com.nightlynexus.viewstatepageradapter:viewstatepageradapter:1.0.4'
//Time
implementation 'com.github.kizitonwose.time:time-android:1.0.1'
//Guava
implementation 'com.google.guava:guava:23.6-android'
implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2'
//Weather particles
implementation 'com.github.MatteoBattilana:WeatherView:2.0.3'
//Text animations
def htextview_version = "0.1.2"
implementation "com.hanks:htextview-base:$htextview_version"
implementation "com.hanks:htextview-evaporate:$htextview_version"
//Icons
implementation "com.mikepenz:iconics-core:3.0.3@aar"
implementation "com.mikepenz:iconics-views:3.0.3@aar"
implementation 'com.mikepenz:meteocons-typeface:1.1.0.4@aar'
implementation 'com.mikepenz:weather-icons-typeface:2.0.10.4@aar'
//Recycler view snap
implementation 'com.github.rubensousa:gravitysnaphelper:1.5'
//GSON
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.2'
implementation 'com.github.salomonbrys.kotson:kotson:2.5.0'
//Colors
implementation 'com.dmitrymalkovich.android:material-design-dimens:1.4'
//Dialogs
def material_dialogs_version = "0.9.6.0"
implementation "com.afollestad.material-dialogs:core:$material_dialogs_version"
implementation "com.afollestad.material-dialogs:commons:$material_dialogs_version"
//Better string formatting
implementation 'com.squareup.phrase:phrase:1.1.0'
// Weather API
implementation 'org.openweathermap.java-api:api-core:1.2'
// Read CSV
implementation group: 'org.apache.commons', name: 'commons-csv', version: '1.5'
// Fuzzy string searching for auto-complete
implementation 'me.xdrop:fuzzywuzzy:1.1.10'
// Easy-to-use autocomplete
implementation 'com.otaliastudios:autocomplete:1.0.2'
// DL View builders
implementation "org.jetbrains.anko:anko:$anko_version"
implementation "org.jetbrains.anko:anko-appcompat-v7:$anko_version"
implementation "org.jetbrains.anko:anko-constraint-layout:$anko_version"
implementation "org.jetbrains.anko:anko-appcompat-v7-coroutines:$anko_version"
annotationProcessor 'org.projectlombok:lombok:1.16.20'
}
repositories {
mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" }
maven { url "https://maven.google.com" }
maven { url "https://jitpack.io" }
maven { url "https://dl.bintray.com/xsavikx/openweathermap-java-api" }
google()
}
kotlin {
experimental {
coroutines "enable"
}
}
androidExtensions {
experimental = true
}