7 classpath 'com.android.tools.build:gradle:4.0.0'
11 apply plugin: 'com.android.application'
21 implementation 'com.android.support:appcompat-v7:25.3.1'
22 implementation 'com.android.support:design:25.3.1'
23 // Note: you can just replace "smallicu" by implementation
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 implementation files("$buildDir/icu4j-57.1.small.jar") {
28 builtBy 'makesmallicu'
30 implementation 'com.android.support:preference-v7:25.3.1'
31 // coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.5'
34 task makesmallicu (type:Exec, dependsOn: configurations.smallicu) {
35 inputs.file "mksmallicu.sh"
36 inputs.file "${configurations.smallicu.resolve()[0]}"
37 outputs.dir "$buildDir"
38 outputs.file "$buildDir/icu4j-57.1.small.jar"
39 // necessary due to gradle bug: GRADLE-2638
40 new File("$buildDir").mkdirs()
41 commandLine "./mksmallicu.sh", "${configurations.smallicu.resolve()[0]}", "$buildDir/icu4j-57.1.small.jar"
44 def utildir = hasProperty("quickdicUtilDir") ? quickdicUtilDir : "Util"
47 tasks.withType(JavaCompile) {
48 options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
55 disable "MissingTranslation"
59 applicationIdSuffix ".debug"
68 manifest.srcFile 'AndroidManifest.xml'
69 java.srcDirs = ['src', utildir + "/src"]
71 assets.srcDirs = ['assets']
74 // Move the build types to build-types/<type>
75 // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
76 // This moves them out of them default location under src/<type>/... which would
77 // conflict with src/ being used by the main source set.
78 // Adding new build types or product flavors should be accompanied
79 // by a similar customization.
80 debug.setRoot('build-types/debug')
81 release.setRoot('build-types/release')
84 applicationId 'de.reimardoeffinger.quickdic'
85 // disabled since it breaks AndroidStudio, claims "default activity not found"
86 // multiDexEnabled true
88 resConfigs "de", "es", "eu", "fr", "it", "ja", "pt", "pt-rBR", "ru", "zh-rCN"
92 // coreLibraryDesugaringEnabled true
93 // sourceCompatibility JavaVersion.VERSION_1_8
94 // targetCompatibility JavaVersion.VERSION_1_8