-
Notifications
You must be signed in to change notification settings - Fork 555
/
build.gradle
74 lines (62 loc) · 2.21 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
apply plugin: 'com.android.application'
repositories {
mavenCentral()
}
dependencies {
compile 'com.android.support:support-v4:20.+'
compile files('libs/droneapi-java.jar')
compile 'com.google.android.gms:play-services:5.+'
compile 'com.google.guava:guava:17.0'
compile 'org.slf4j:slf4j-api:1.7.7'
compile 'org.slf4j:slf4j-nop:1.7.7'
compile 'org.osmdroid:osmdroid-android:4.1'
compile files('libs/usbseriallibrary.jar')
compile files('libs/j2xx.jar')
compile files('libs/protobuf-java-2.5.0.jar')
compile files('libs/osmbonuspack_v4.4.jar')
compile files('libs/jeromq-0.3.4.jar')
compile project(':Core')
compile project(':Mavlink')
compile project(':Libraries:HorizontalVariableListView:HorizontalVariableListView')
compile project(':Libraries:PebbleKit')
compile project(':Libraries:usb-serial-for-android:UsbSerialLibrary')
}
android {
compileSdkVersion 19
buildToolsVersion '19.1.0'
defaultConfig {
minSdkVersion 14
targetSdkVersion 19
versionName getGitVersion()
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
// Move the tests to tests/java, tests/res, etc...
androidTest.setRoot('tests')
// Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under src/<type>/... which would
// conflict with src/ being used by the main source set.
// Adding new build types or product flavors should be accompanied
// by a similar customization.
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
//FIXME: remove this after lint errors have been taken care of
lintOptions {
abortOnError false
}
}
def getGitVersion(){
def cmd = "git describe --tag --dirty"
def proc = cmd.execute()
return proc.text.trim()
}