Skip to content

Commit 4821ae1

Browse files
committed
Add Gradle build file to sqlite example
1 parent 04a85ce commit 4821ae1

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
buildscript {
2+
repositories {
3+
mavenCentral()
4+
}
5+
dependencies {
6+
classpath 'com.android.tools.build:gradle:1.0.0'
7+
}
8+
}
9+
apply plugin: 'com.android.application'
10+
11+
12+
android {
13+
compileSdkVersion 19
14+
buildToolsVersion "21.1.2"
15+
16+
defaultConfig {
17+
targetSdkVersion 17
18+
}
19+
20+
sourceSets {
21+
main {
22+
manifest.srcFile 'AndroidManifest.xml'
23+
java.srcDirs = ['src']
24+
resources.srcDirs = ['src']
25+
aidl.srcDirs = ['src']
26+
renderscript.srcDirs = ['src']
27+
res.srcDirs = ['res']
28+
assets.srcDirs = ['assets']
29+
}
30+
31+
// Move the build types to build-types/<type>
32+
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
33+
// This moves them out of them default location under src/<type>/... which would
34+
// conflict with src/ being used by the main source set.
35+
// Adding new build types or product flavors should be accompanied
36+
// by a similar customization.
37+
debug.setRoot('build-types/debug')
38+
release.setRoot('build-types/release')
39+
}
40+
}

0 commit comments

Comments
 (0)