abouttreesummaryrefslogcommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorJules Aguillon2024-09-29 21:58:22 +0200
committerGitHub2024-09-29 21:58:22 +0200
commit9f22e53a3ba8f064e69e3a84c371a7f29ee9e05c (patch)
tree96735329102cdde5460818f22803e67dc42c6356 /build.gradle
parente309b76c0a8cb4c322b5fa902a080e19c2fe1f08 (diff)
downloadunexpected-keyboard-9f22e53a3ba8f064e69e3a84c371a7f29ee9e05c.tar.gz
unexpected-keyboard-9f22e53a3ba8f064e69e3a84c371a7f29ee9e05c.zip
Add complex keys (#774)
This allows to add new kinds of keys that need more data without making KeyValue's footprint bigger for common keys. This changes the [_symbol] field into [_payload], which holds the same as the previous field for more common keys but can hold bigger objects for keys of the new "Complex" kind. This also adds a complex key: String keys with a symbol different than the outputted string. Unit tests are added as the Java language is not helpful in making robust code.
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle11
1 files changed, 8 insertions, 3 deletions
diff --git a/build.gradle b/build.gradle
index de9efde..0cb6160 100644
--- a/build.gradle
+++ b/build.gradle
@@ -2,6 +2,10 @@ plugins {
id 'com.android.application' version '8.1.1'
}
+dependencies {
+ testImplementation "junit:junit:4.13.2"
+}
+
android {
namespace 'juloo.keyboard2'
compileSdk 34
@@ -21,6 +25,10 @@ android {
res.srcDirs = ['res', 'build/generated-resources']
assets.srcDirs = ['assets']
}
+
+ test {
+ java.srcDirs = ['test']
+ }
}
signingConfigs {
@@ -84,9 +92,6 @@ android {
}
}
-dependencies {
-}
-
tasks.register('buildKeyboardFont') {
println "\nBuilding assets/special_font.ttf"
mkdir "$buildDir"