This repository has been archived by the owner on Jun 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy pathbuild.gradle
156 lines (132 loc) · 5.43 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
buildscript {
ext {
AAVersion = '4.2.0'
GMSVersion = '9.2.0'
supportVersion = '23.2.1'
//supportVersion = '24.0.0'
}
repositories {
jcenter()
//mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
//apply plugin: 'maven'
apply plugin: 'com.android.application'
apply plugin: 'android-apt'
/*group = 'com.opentaxi.android'
version = '1.0.0.BUILD-SNAPSHOT'
description = """taxi-android-open"""
*/
repositories {
mavenCentral()
jcenter()
//mavenLocal()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url "https://repo.spring.io/milestone" }
maven { url "https://jitpack.io" }
//maven { url "http://repo.maven.apache.org/maven2" }
}
dependencies {
compile 'com.taxi-bulgaria.rest:open-rest-client-a:1.0.7-SNAPSHOT'
compile "com.google.android.gms:play-services-location:$GMSVersion"
compile "com.google.android.gms:play-services-gcm:$GMSVersion"
compile "com.android.support:support-v4:$supportVersion"
compile "com.android.support:appcompat-v7:$supportVersion"
compile "com.android.support:design:$supportVersion"
compile 'pl.charmas.android:android-reactive-location:0.9@aar'
compile 'io.reactivex:rxjava:1.1.5'
compile(group: 'com.taxi-bulgaria.map', name: 'mapsforge', version: '0.6.1-SNAPSHOT') {
exclude(module: 'compatibility-v4')
exclude(group: 'com.android.support', module: 'support-v4')
/*changing = true*/
}
/*compile 'com.mobsandgeeks:android-saripaar:1.0.7-SNAPSHOT'*/
compile 'com.mobsandgeeks:android-saripaar:2.0.3'
compile 'com.github.hotchemi:permissionsdispatcher:2.1.3'
apt 'com.github.hotchemi:permissionsdispatcher-processor:2.1.3'
apt "org.androidannotations:androidannotations:$AAVersion"
compile "org.androidannotations:androidannotations-api:$AAVersion"
apt 'com.github.AleksanderMielczarek:AndroidAnnotationsPermissionsDispatcherPlugin:0.1.0'
compile group: 'ch.acra', name: 'acra', version: '4.7.0'
/*compile 'org.greenrobot:eventbus:3.0.0'*/
compile group: 'de.greenrobot', name: 'eventbus', version: '2.4.1'
//compile group: 'com.getbase', name: 'floatingactionbutton', version: '1.10.1'
compile 'net.i2p.android.ext:floatingactionbutton:1.10.1'
/*compile 'com.facebook.android:facebook-android-sdk:4.5.0'*/
compile(group: 'com.facebook.android', name: 'facebook-android-sdk', version: '4.5.0') {
exclude(module: 'support-v4')
exclude(module: 'multidex')
}
compile group: 'com.github.nicolasjafelle', name: 'paginglistview', version: '1.3'
compile(group: 'it.sephiroth.android.library.targettooltip', name: 'target-tooltip-library', version: '1.3.11') {
exclude(module: 'appcompat-v7')
}
compile(group: 'com.joanzapata.iconify', name: 'android-iconify', version: '2.2.2') {
exclude(module: 'support-v4')
}
compile 'com.joanzapata.iconify:android-iconify-material:2.2.2'
//debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1'
//releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'
}
apt {
arguments {
androidManifestFile variant.outputs[0]?.processResources?.manifestFile
// if you have multiple outputs (when using splits), you may want to have other index than 0
// you should set your package name here if you are using different application IDs
// resourcePackageName "your.package.name"
// You can set optional annotation processing options here, like these commented options:
// logLevel 'INFO'
// logFile '/var/log/aa.log'
}
}
android {
compileSdkVersion 23
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.opentaxi.android"
minSdkVersion 14
targetSdkVersion 23
versionCode 47
versionName "1.0.47"
vectorDrawables.useSupportLibrary = true
/*jackOptions {
enabled true
}*/
}
buildTypes {
debug {
debuggable true
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg', 'proguard-rx-java.pro', 'proguard-jackson-2.pro', 'proguard-acra.pro', 'proguard-eventbus.pro'
}
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg', 'proguard-rx-java.pro', 'proguard-jackson-2.pro', 'proguard-acra.pro', 'proguard-eventbus.pro'
//'proguard-google-play-services.pro', 'proguard-support-v7-appcompat.pro', 'proguard-support_design.pro',
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
lintOptions {
abortOnError false
warning 'MissingTranslation'
warning 'InvalidPackage'
}
packagingOptions {
exclude 'META-INF/LICENSE.txt' //Workaround for https://code.google.com/p/android/issues/detail?id=61573
exclude 'META-INF/LICENSE'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/notice.txt'
exclude 'META-INF/maven/com.google.guava/guava/pom.properties'
exclude 'META-INF/maven/com.google.guava/guava/pom.xml'
}
}