-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathbuild.gradle
130 lines (107 loc) · 4.23 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
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'me.tatarka.retrolambda'
def cfg = rootProject.ext.configuration
def libs = rootProject.ext.libraries
android {
compileSdkVersion cfg.compileVersion
buildToolsVersion cfg.buildToolsVersion
defaultConfig {
applicationId cfg.package
minSdkVersion cfg.minSdk
targetSdkVersion cfg.targetSdk
versionCode cfg.version_code
versionName cfg.version_name
}
def propsFile = rootProject.file('release.properties')
def props = new Properties()
if (propsFile.exists()) {
props.load(new FileInputStream(propsFile))
}
signingConfigs {
release {
if (propsFile.exists()) {
storeFile file(props['RELEASE_STORE_FILE'])
storePassword props['RELEASE_STORE_PASSWORD']
keyAlias props['RELEASE_KEY_ALIAS']
keyPassword props['RELEASE_KEY_PASSWORD']
}
}
}
buildTypes {
debug {
buildConfigField "boolean", "USE_ANALYTICS", "false"
}
staging {
buildConfigField "boolean", "USE_ANALYTICS", "false"
}
release {
buildConfigField "boolean", "USE_ANALYTICS", "true"
signingConfig signingConfigs.release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
//<div>Icons made by <a href="http://www.flaticon.com/authors/gregor-cresnar" title="Gregor Cresnar">Gregor Cresnar</a> from <a href="http://www.flaticon.com" title="Flaticon">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a></div>
exclude 'META-INF/services/javax.annotation.processing.Processor'
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/license.txt'
exclude 'META-INF/LGPL2.1'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/notice.txt'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':domain')
//Google
apt "com.google.dagger:dagger-compiler:${libs.dagger}"
//Support
compile "com.android.support:support-v13:${libs.supportVersion}"
compile "com.android.support:appcompat-v7:${libs.supportVersion}"
compile "com.android.support:design:${libs.supportVersion}"
compile "com.android.support:cardview-v7:${libs.supportVersion}"
compile "com.android.support:recyclerview-v7:${libs.supportVersion}"
//Rx
compile "io.reactivex:rxjava:${libs.rxjava}"
compile "io.reactivex:rxandroid:${libs.rxandroid}"
//UI
compile('com.mikepenz:materialdrawer:5.8.1@aar') {
transitive = true
}
compile 'com.mikepenz:material-design-iconic-typeface:+@aar'
compile 'com.jakewharton:butterknife:7.0.1'
compile "com.github.johnkil.print:print:1.3.1"
compile(group: 'uz.shift', name: 'colorpicker', version: '0.5', ext: 'aar')
compile 'com.github.PhilJay:MPAndroidChart:v3.0.1'
compile 'com.rengwuxian.materialedittext:library:2.1.4'
compile 'com.github.castorflex.smoothprogressbar:library-circular:1.2.0'
compile 'com.hannesdorfmann.mosby:mvp:2.0.1'
compile "com.google.firebase:firebase-core:${libs.firebase}"
compile "com.google.firebase:firebase-auth:${libs.firebase}"
compile "com.google.firebase:firebase-database:${libs.firebase}"
releaseCompile "com.google.firebase:firebase-crash:${libs.firebase}"
stagingCompile "com.google.firebase:firebase-crash:${libs.firebase}"
}
apply plugin: 'com.google.gms.google-services'