Skip to content

Commit cbad5b7

Browse files
committed
Upgrade of Gradle build file for Android
1 parent 9b5dec0 commit cbad5b7

1 file changed

Lines changed: 25 additions & 2 deletions

File tree

com.vogella.android.build.firstgradle/build.gradle

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,35 @@ buildscript {
44
}
55

66
dependencies {
7-
classpath 'com.android.tools.build:gradle:0.5'
7+
classpath 'com.android.tools.build:gradle:0.4+'
88
}
99
}
1010

1111
apply plugin: 'android'
1212

13+
14+
dependencies {
15+
compile files('libs/android-support-v4.jar')
16+
}
17+
18+
android {
19+
compileSdkVersion 17
20+
21+
sourceSets {
22+
main {
23+
manifest.srcFile 'AndroidManifest.xml'
24+
java.srcDirs = ['src']
25+
resources.srcDirs = ['src']
26+
aild.srcDirs = ['src']
27+
renderscript.srcDirs = ['src']
28+
res.srcDirs = ['res']
29+
assets.srcDirs = ['assets']
30+
}
31+
32+
instrumentTest.setRoot('tests')
33+
}
34+
}
35+
1336
android {
1437
compileSdkVersion 17
1538

@@ -26,4 +49,4 @@ android {
2649

2750
instrumentTest.setRoot('tests')
2851
}
29-
}
52+
}

0 commit comments

Comments
 (0)