~tomdroid-maintainers/tomdroid/main

285.1.226 by Stefan Hammer
generated gradle project files for Android Studio
1
buildscript {
2
    repositories {
3
        mavenCentral()
4
    }
5
    dependencies {
6
        classpath 'com.android.tools.build:gradle:0.5.+'
7
    }
8
}
9
apply plugin: 'android'
10
11
dependencies {
12
    compile fileTree(dir: 'libs', include: '*.jar')
13
}
14
15
android {
16
    compileSdkVersion 15
17
    buildToolsVersion "18.0.1"
18
19
    sourceSets {
20
        main {
21
            manifest.srcFile 'AndroidManifest.xml'
22
            java.srcDirs = ['tests','src']
23
            resources.srcDirs = ['tests','src']
24
            aidl.srcDirs = ['tests','src']
25
            renderscript.srcDirs = ['tests','src']
26
            res.srcDirs = ['res']
27
            assets.srcDirs = ['assets']
28
        }
29
30
        // Move the tests to tests/java, tests/res, etc...
31
        instrumentTest.setRoot('tests')
32
33
        // Move the build types to build-types/<type>
34
        // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
35
        // This moves them out of them default location under src/<type>/... which would
36
        // conflict with src/ being used by the main source set.
37
        // Adding new build types or product flavors should be accompanied
38
        // by a similar customization.
39
        debug.setRoot('build-types/debug')
40
        release.setRoot('build-types/release')
41
    }
42
}