-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
88 lines (71 loc) · 2.81 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
apply plugin: 'com.android.application'
apply plugin: 'realm-android'
android {
compileSdkVersion 28
defaultConfig {
applicationId "hootor.com.loftcoin"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
ext {
butterknife_version = "8.8.1"
support_version = "28.0.0"
retrofit_ver = "2.4.0"
okhttp_ver = "3.10.0"
room_ver = "1.1.1"
rx_java_ver = "2.2.2"
rx_android_ver = "2.1.0"
rx_binding_ver = "2.1.1"
lifecycle_ver = "1.1.1"
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "com.android.support:appcompat-v7:$support_version"
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation "com.android.support:support-v4:$support_version"
implementation "com.android.support:design:$support_version"
// Для точек в pager
implementation 'com.romandanylyk:pageindicatorview:1.0.2'
//ButterKnife
implementation "com.jakewharton:butterknife:$butterknife_version"
annotationProcessor "com.jakewharton:butterknife-compiler:$butterknife_version"
// Retrofit
implementation "com.squareup.retrofit2:retrofit:$retrofit_ver"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_ver"
implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit_ver"
// OkHttp
implementation "com.squareup.okhttp3:okhttp:$okhttp_ver"
implementation "com.squareup.okhttp3:logging-interceptor:$okhttp_ver"
// Room
implementation "android.arch.persistence.room:runtime:$room_ver"
annotationProcessor "android.arch.persistence.room:compiler:$room_ver"
implementation "android.arch.persistence.room:rxjava2:$room_ver"
// RxJava
implementation "io.reactivex.rxjava2:rxjava:$rx_java_ver"
implementation "io.reactivex.rxjava2:rxandroid:$rx_android_ver"
implementation "com.jakewharton.rxbinding2:rxbinding:$rx_binding_ver"
// ViewModel and LiveData
implementation "android.arch.lifecycle:extensions:$lifecycle_ver"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}