-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
78 lines (66 loc) · 2.23 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
buildscript {
repositories {
jcenter()
maven { url "https://jitpack.io"}
maven { url "https://plugins.gradle.org/m2/"}
}
dependencies {
classpath "com.android.tools.build:gradle:2.2.0"
classpath "com.github.AnySoftKeyboard.AnySoftKeyboardTools:makedictionary:c09975d"
classpath "com.github.AnySoftKeyboard.AnySoftKeyboardTools:generatewordslist:c09975d"
classpath "org.jsoup:jsoup:1.9.1"
}
}
apply plugin: "com.android.application"
android {
compileSdkVersion 23
buildToolsVersion "25.0.1"
defaultConfig {
applicationId "com.anysoftkeyboard.languagepack.neo"
minSdkVersion 7
targetSdkVersion 23
versionCode 8
versionName "2.0"
}
signingConfigs {
release {
storeFile file("key.store")
storePassword System.getenv("PACK_KEYSTORE_PASSWORD")
keyAlias System.getenv("PACK_KEYSTORE_ALIAS")
keyPassword System.getenv("PACK_KEYSTORE_KEY_PASSWORD")
}
}
buildTypes {
release {
signingConfig signingConfigs.release
zipAlignEnabled true
debuggable false
minifyEnabled false
}
}
}
//task parseDictionaryFile(type: com.anysoftkeyboard.tools.generatewordslist.GenerateWordsListTask) {
// inputFiles new File(project.getProjectDir(), "dictionary/igerman98.txt")
// outputWordsListFile new File(project.getProjectDir(), "dictionary/igerman98.xml")
// wordCharacters 'ABCDEFGHIJKLMNOPQRSTUVWXYZÜÖÄabcdefghijklmnopqrstuvwxyzüöäß.-'.toCharArray()
// additionalInnerCharacters "".toCharArray()
// locale Locale.US
//}
task makeDictionary(type: com.anysoftkeyboard.tools.makedictionary.MakeDictionaryTask) {
inputWordsListFile new File(project.getProjectDir(), "dictionary/igerman98.xml")
// dependsOn parseDictionaryFile
}
afterEvaluate { proj ->
proj.tasks.all { task ->
if (task.name.startsWith('generate') && task.name.endsWith('BuildConfig')) {
task.dependsOn makeDictionary
}
}
}
dependencies {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
compile 'com.github.AnySoftKeyboard:AnySoftKeyboard-API:1.3.5'
}