6 classpath 'com.android.tools.build:gradle:2.3.3'
10 apply plugin: 'com.android.application'
19 compile 'com.android.support:appcompat-v7:25.3.0'
20 compile 'com.android.support:design:25.3.0'
21 // Note: you can just replace "smallicu" by compile
22 // and remove the "compile files" part if you do not
23 // care about the size of the apk
24 smallicu 'com.ibm.icu:icu4j:57.1'
25 compile files("$buildDir/icu4j-57.1.small.jar") {
26 builtBy 'makesmallicu'
30 task makesmallicu (type:Exec, dependsOn: configurations.smallicu) {
31 inputs.file "mksmallicu.sh"
32 inputs.file "${configurations.smallicu.resolve()[0]}"
33 outputs.dir "$buildDir"
34 outputs.file "$buildDir/icu4j-57.1.small.jar"
35 // necessary due to gradle bug: GRADLE-2638
36 new File("$buildDir").mkdirs()
37 commandLine "./mksmallicu.sh", "${configurations.smallicu.resolve()[0]}", "$buildDir/icu4j-57.1.small.jar"
40 def utildir = hasProperty("quickdicUtilDir") ? quickdicUtilDir : "Util"
44 buildToolsVersion "25.0.2"
46 disable "MissingTranslation"
50 applicationIdSuffix ".debug"
59 manifest.srcFile 'AndroidManifest.xml'
60 java.srcDirs = ['src', utildir + "/src"]
62 assets.srcDirs = ['assets']
65 // Move the tests to tests/java, tests/res, etc...
66 instrumentTest.setRoot('tests')
68 // Move the build types to build-types/<type>
69 // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
70 // This moves them out of them default location under src/<type>/... which would
71 // conflict with src/ being used by the main source set.
72 // Adding new build types or product flavors should be accompanied
73 // by a similar customization.
74 debug.setRoot('build-types/debug')
75 release.setRoot('build-types/release')
78 applicationId 'de.reimardoeffinger.quickdic'
80 resConfigs "de", "es", "fr", "it", "ja", "pt", "pt-rBR", "ru"