-
Notifications
You must be signed in to change notification settings - Fork 23
/
build.gradle
91 lines (76 loc) · 2.5 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
buildscript {scriptHandler->
apply from: '../repositories.gradle', to: scriptHandler
apply from: '../dependencies.gradle'
dependencies {
classpath(project.ext.build.xtend_android_gradle)
classpath(project.ext.build.xtext_gradle)
}
}
apply plugin: 'com.android.application'
apply plugin: 'org.xtext.android.xtend'
apply from: '../dependencies.gradle'
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile(project.ext.lib.xtend)
compile(project.ext.lib.android.support_v4)
compile(project.ext.lib.android.appcompat_v7)
compile 'com.android.support:recyclerview-v7:23.1.1'
compile project(':Xtendroid')
// testing
androidTestCompile 'com.android.support:support-annotations:23.1.1'
androidTestCompile 'com.android.support.test:runner:0.4.1'
androidTestCompile 'com.android.support.test:rules:0.4.1'
androidTestCompile 'org.hamcrest:hamcrest-library:1.3'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.1'
// can't use uiautomator with api level <18
// androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
testCompile 'junit:junit:4.12'
}
repositories {
jcenter()
}
android {
compileSdkVersion(project.ext.compileSdkVersion)
buildToolsVersion(project.ext.buildToolsVersion)
defaultConfig {
minSdkVersion project.ext.minSdkVersion
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
sourceSets {
// Add external (instrumentation) unit tests
// This was done to maintain compatibility with eclipse users
String sharedTestDir = 'XtendroidTestCasesTest/src'
test {
java.srcDirs = [ sharedTestDir ]
}
androidTest {
java.srcDirs = [ sharedTestDir ]
}
main {
manifest { srcFile 'AndroidManifest.xml' }
java.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
resources.srcDirs += ['src']
aidl.srcDirs = ['src']
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}
packagingOptions {
// from xtendlib >=2.9.2
exclude 'META-INF/ECLIPSE_.RSA'
exclude 'META-INF/ECLIPSE_.SF'
}
}