-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
59 lines (48 loc) · 1.38 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
def versionMajor = 1 // incompatible API changes
def versionMinor = 3 // added functionality in a backwards-compatible manner
def versionPatch = 1 // backwards-compatible bug fixes
def versionBuild = 0 // bump for dogfood builds, public betas, etc.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.1'
}
}
repositories {
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}
apply plugin: 'android'
apply plugin: 'android-apt'
configurations {
apt
}
android {
compileSdkVersion 19
buildToolsVersion "19.0.1"
defaultConfig {
versionCode versionMajor * 10000 + versionMinor * 1000 + versionPatch * 100 + versionBuild
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
minSdkVersion 8
targetSdkVersion 19
}
lintOptions {
abortOnError false
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
}
}
}
dependencies {
compile group: 'com.google.android', name: 'support-v4', version: 'r7'
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
apt "org.androidannotations:androidannotations:3.0"
compile "org.androidannotations:androidannotations-api:3.0"
}