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