diff options
Diffstat (limited to 'build.gradle')
| -rw-r--r-- | build.gradle | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle index 139b27b..6544bb5 100644 --- a/build.gradle +++ b/build.gradle @@ -85,7 +85,6 @@ android { } dependencies { - } tasks.register('buildKeyboardFont') { @@ -108,6 +107,7 @@ tasks.withType(Test).configureEach { dependsOn 'genLayoutsList' dependsOn 'checkKeyboardLayouts' dependsOn 'syncTranslations' + dependsOn 'compileComposeSequences' } tasks.register('genLayoutsList') { @@ -138,6 +138,19 @@ tasks.register('syncTranslations') { } } +tasks.register('compileComposeSequences') { + def out = "srcs/juloo.keyboard2/ComposeKeyData.java" + println "\nGenerating ${out}" + exec { + def sequences = new File(projectDir, "srcs/compose").listFiles().findAll { + it.name.endsWith(".txt") + } + workingDir = projectDir + commandLine("python", "srcs/compose/compile.py", *sequences) + standardOutput = new FileOutputStream("${projectDir}/${out}") + } +} + tasks.named("preBuild") { dependsOn += "initDebugKeystore" dependsOn += "copyRawQwertyUS" |
