-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
94 lines (80 loc) · 3.12 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
buildscript {
repositories {
jcenter()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.1'
classpath 'com.github.AnySoftKeyboard.AnySoftKeyboardTools:makedictionary:e0929d04f944eae0154c47e834e42f7dcbcb837c'
classpath 'com.github.AnySoftKeyboard.AnySoftKeyboardTools:generatewordslist:e0929d04f944eae0154c47e834e42f7dcbcb837c'
//classpath files('english_dictionary/generatewordslist-1.0-SNAPSHOT.jar')
classpath 'org.jsoup:jsoup:1.9.1'
}
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion "28.0.0"
defaultConfig {
applicationId "com.anysoftkeyboard.languagepack.hungarian"
minSdkVersion 7
targetSdkVersion 28
versionCode 18
versionName "20180709"
}
signingConfigs {
release {
Properties prop = new Properties()
prop.load(project.rootProject.file('local.properties').newDataInputStream())
storeFile file(prop.getProperty('key.store'))
keyAlias prop.getProperty('key.alias')
storePassword prop.getProperty('key.password')
keyPassword prop.getProperty('key.password')
}
}
buildTypes {
release {
signingConfig signingConfigs.release
zipAlignEnabled true
debuggable false
minifyEnabled false
}
}
}
task parseExampleTextFile(type: com.anysoftkeyboard.tools.generatewordslist.GenerateWordsListTask) {
inputFile new File(project.getProjectDir(), "dictionary/example_text_file.txt")
outputWordsListFile new File(project.getProjectDir(), "dictionary/example_text_file.xml")
}
task parseExampleTextFile2(type: com.anysoftkeyboard.tools.generatewordslist.GenerateWordsListTask) {
inputFile new File(project.getProjectDir(), "dictionary/example_text_file2.txt")
outputWordsListFile new File(project.getProjectDir(), "dictionary/example_text_file2.xml")
}
task mergeAllWordLists(type: com.anysoftkeyboard.tools.generatewordslist.MergeWordsListTask) {
dependsOn parseExampleTextFile
dependsOn parseExampleTextFile2
inputWordsListFiles = [
new File(project.getProjectDir(), "dictionary/example_text_file.xml"),
new File(project.getProjectDir(), "dictionary/example_text_file2.xml")
] as File[]
outputWordsListFile new File(project.getProjectDir(), "dictionary/words_merged.xml")
maxWordsInList 100000
}
task makeDictionary(type: com.anysoftkeyboard.tools.makedictionary.MakeDictionaryTask) {
dependsOn mergeAllWordLists
inputWordsListFile new File(project.getProjectDir(), "dictionary/words_merged.xml")
}
afterEvaluate { proj ->
proj.tasks.all { task ->
if (task.name.startsWith('generate') && task.name.endsWith('BuildConfig')) {
// dixtionary is pre-generated so no need to build it
// task.dependsOn makeDictionary
}
}
}
dependencies {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
compile 'com.github.AnySoftKeyboard:AnySoftKeyboard-API:1.5.1'
}