-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.off
More file actions
60 lines (51 loc) · 1.36 KB
/
build.gradle.off
File metadata and controls
60 lines (51 loc) · 1.36 KB
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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
}
}
apply plugin: 'com.android.application'
dependencies {
//compile project(":AndroidME")
//compile project(":BaseGameUtils")
//compile fileTree(dir: 'libs', include: '*.jar')
}
android {
compileSdkVersion 19
buildToolsVersion '19.1.0'
// this to to avoid error from httpcore-4.1.2.jar and httpcore-4.1.2.jar having the same file
packagingOptions {
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE.txt'
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src', 'src_android', 'src_mapstore']
resources.srcDirs = ['src', 'res_android']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
// this is to avoid the @TargetApi missing on methods giving errors.
lintOptions {
abortOnError false
}
}
// same as ant tasks "setup.android"
task copyAssets(type: Copy) {
from('game/Domination') {
include 'maps/**'
include 'help/**'
}
from('src/META-INF') {
include 'services/**'
}
from 'gpl.txt'
from 'ChangeLog.txt'
into 'assets'
}
assembleDebug.dependsOn(copyAssets)
assembleRelease.dependsOn(copyAssets)