-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
105 lines (86 loc) · 2.56 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.+'
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.10.+'
classpath 'dk.au.cs.thor.gradle:instrumentation:1.0.0'
}
}
allprojects {
task wrapper(type: Wrapper) {
gradleVersion = "1.12"
}
}
repositories {
mavenLocal()
mavenCentral()
}
apply plugin: 'android-sdk-manager'
apply plugin: 'com.android.application'
apply plugin: 'instrumentation'
dependencies {
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile 'com.android.support:support-v4:19.1.0'
compile fileTree(dir: 'Paintroid/libs', include: '*.jar')
compile fileTree(dir: 'PaintroidTest/libs', include: '*.jar')
compile ('dk.au.cs.thor.robotium2espresso:robotium2espresso:1.0.0') {
exclude module: 'hamcrest-core'
exclude module: 'guava'
}
}
android {
compileSdkVersion 19
buildToolsVersion '19.1.0'
defaultConfig {
minSdkVersion 10
targetSdkVersion 19
applicationId 'org.catrobat.paintroid'
testApplicationId "org.catrobat.paintroid.test"
testInstrumentationRunner 'com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner'
}
packagingOptions {
exclude 'LICENSE.txt'
}
buildTypes {
// Enable code coverage
debug {
testCoverageEnabled = true
}
}
sourceSets {
main {
manifest.srcFile 'Paintroid/AndroidManifest.xml'
java.srcDirs = ['Paintroid/src']
resources.srcDirs = ['Paintroid/src']
aidl.srcDirs = ['Paintroid/src']
renderscript.srcDirs = ['Paintroid/src']
res.srcDirs = ['Paintroid/res']
assets.srcDirs = ['Paintroid/assets']
}
androidTest {
java.srcDirs = ['PaintroidTest/src']
resources.srcDirs = ['PaintroidTest/src']
aidl.srcDirs = ['PaintroidTest/src']
renderscript.srcDirs = ['PaintroidTest/src']
res.srcDirs = ['PaintroidTest/res']
assets.srcDirs = ['PaintroidTest/assets']
}
}
}
/*********************/
/*** CODE COVERAGE ***/
/*********************/
allprojects {
// Avoid VerifyError
tasks.withType(JavaCompile) {
sourceCompatibility = 1.5
targetCompatibility = 1.5
}
}
task jacoco(dependsOn: "createDebugCoverageReport") {
group = "Reporting"
description = "Generate Jacoco coverage reports"
}