]> gitweb.fperrin.net Git - Dictionary.git/blob - build.gradle
Many fixes/hack to get a compilable version.
[Dictionary.git] / build.gradle
1 buildscript {
2     repositories {
3         jcenter()
4     }
5     dependencies {
6         classpath 'com.android.tools.build:gradle:1.2.3'
7     }
8 }
9
10 apply plugin: 'com.android.application'
11
12 repositories {
13     jcenter()
14 }
15 dependencies {
16     compile 'com.android.support:appcompat-v7:21.0.3'
17     compile 'com.ibm.icu:icu4j:55.1'
18 }
19
20 android {
21     compileSdkVersion 21
22     buildToolsVersion "22.0.1"
23     sourceSets {
24         main {
25             manifest.srcFile 'AndroidManifest.xml'
26             java.srcDirs = ['src', '../Util/src']
27             res.srcDirs = ['res']
28             assets.srcDirs = ['assets']
29         }
30
31         // Move the tests to tests/java, tests/res, etc...
32         instrumentTest.setRoot('tests')
33
34         // Move the build types to build-types/<type>
35         // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
36         // This moves them out of them default location under src/<type>/... which would
37         // conflict with src/ being used by the main source set.
38         // Adding new build types or product flavors should be accompanied
39         // by a similar customization.
40         debug.setRoot('build-types/debug')
41         release.setRoot('build-types/release')
42     }
43     defaultConfig {
44         targetSdkVersion 22
45     }
46 }