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