From d7c230e173aeb039565d479af7b6f00776a70626 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 17 Dec 2023 12:41:19 +0100 Subject: prefs: Use QWERTY (US) as the default custom layout This layout definition contains some documentation and is a better default than no text. --- build.gradle | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'build.gradle') diff --git a/build.gradle b/build.gradle index 57beb80..1fe3cf2 100644 --- a/build.gradle +++ b/build.gradle @@ -18,7 +18,7 @@ android { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['srcs'] - res.srcDirs = ['res'] + res.srcDirs = ['res', 'build/generated-resources'] assets.srcDirs = ['assets'] } } @@ -134,6 +134,7 @@ tasks.register('syncTranslations') { tasks.named("preBuild") { dependsOn += "initDebugKeystore" + dependsOn += "copyRawQwertyUS" } tasks.register('initDebugKeystore') { @@ -145,3 +146,12 @@ tasks.register('initDebugKeystore') { } } } + +// latn_qwerty_us is used as a raw resource by the custom layout option. +tasks.register('copyRawQwertyUS') +{ + copy { + from "res/xml/latn_qwerty_us.xml" + into "build/generated-resources/raw" + } +} -- cgit v1.2.3