]> gitweb.fperrin.net Git - Dictionary.git/blob - build.gradle
Add release config.
[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     buildTypes {
24         debug {
25             applicationIdSuffix ".debug"
26         }
27         release {
28             minifyEnabled true
29         }
30     }
31     sourceSets {
32         main {
33             manifest.srcFile 'AndroidManifest.xml'
34             java.srcDirs = ['src', '../Util/src']
35             res.srcDirs = ['res']
36             assets.srcDirs = ['assets']
37         }
38
39         // Move the tests to tests/java, tests/res, etc...
40         instrumentTest.setRoot('tests')
41
42         // Move the build types to build-types/<type>
43         // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
44         // This moves them out of them default location under src/<type>/... which would
45         // conflict with src/ being used by the main source set.
46         // Adding new build types or product flavors should be accompanied
47         // by a similar customization.
48         debug.setRoot('build-types/debug')
49         release.setRoot('build-types/release')
50     }
51     defaultConfig {
52         applicationId 'de.reimardoeffinger.quickdic'
53         targetSdkVersion 22
54     }
55 }