-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
122 lines (102 loc) · 3.14 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
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
}
}
apply plugin: 'com.android.application'
sourceCompatibility = 1.8
targetCompatibility = 1.8
allprojects {
repositories {
google()
jcenter()
maven { url "https://maven.geotoolkit.org/" }
}
}
android {
compileSdk 30
// TODO use HttpURLConnection in the future
// See https://developer.android.com/about/versions/marshmallow/android-6.0-changes#behavior-apache-http-client
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "de.bladenight_muenchen.bladenightapp.android.dev"
buildConfigField "long", "BUILD_TIMESTAMP", System.currentTimeMillis() + "L"
minSdkVersion 19
targetSdkVersion 30
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
debug {
minifyEnabled false
}
}
packagingOptions {
exclude 'META-INF/ASL2.0'
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs += ['src']
resources.srcDirs += ['resources']
res.srcDirs = ['res']
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
}
lintOptions {
abortOnError false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
repositories {
mavenCentral()
}
implementation project(':android-actionbar')
implementation project(':bladenightapp-common')
implementation project(':wampoc')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.google.code.gson:gson:2.2.2'
implementation 'joda-time:joda-time:2.1'
implementation 'org.apache.commons:commons-lang3:3.1'
implementation 'commons-io:commons-io:2.11.0'
implementation files('libs/jackson-core-asl-1.9.12.jar')
implementation files('libs/jackson-mapper-asl-1.9.12.jar')
implementation 'org.mapsforge:mapsforge-map-android:0.10.0'
implementation 'org.mapsforge:mapsforge-themes:0.10.0'
implementation 'com.intentfilter:android-permissions:0.1.8'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:multidex:1.0.3'
}
configurations {
all {
// Provided the Android runtime:
exclude module: 'commons-logging'
}
}
task copyMapFile(type: Copy) {
from file("$projectDir/../bladenightapp-map/munich.map")
into file("$projectDir/resources/map")
}
preBuild.dependsOn copyMapFile