Skip to content

Commit 90bc107

Browse files
committed
add khipro functional keys layout name and updater script
1 parent 28beeea commit 90bc107

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

app/src/main/res/values/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,8 @@ language, hence "No language". -->
488488
<string name="layout_functional_keys" tools:keep="@string/layout_functional_keys">Functional keys</string>
489489
<!-- Name for functional keys layout for tablets -->
490490
<string name="layout_functional_keys_tablet" tools:keep="@string/layout_functional_keys_tablet">Functional keys (large screen)</string>
491+
<!-- Name for special functional keys layout for Khipro -->
492+
<string name="layout_functional_keys_khipro" tools:keep="@string/layout_functional_keys">Functional keys (Khipro)</string>
491493
<!-- Name for functional keys layout when showing symbols layout -->
492494
<string name="layout_functional_keys_symbols" tools:keep="@string/layout_functional_keys_symbols">Functional keys (Symbols)</string>
493495
<!-- Name for functional keys layout when showing more symbols layout -->

tools/release.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,21 @@ def check_changelog():
112112
print("changelog for", version, "does not exist")
113113

114114

115+
# update khipro mapping json, see discussion at the bottom of https://github.com/Helium314/HeliBoard/pull/2134
116+
def update_khipro_mappings():
117+
source = "https://raw.githubusercontent.com/KhiproTeam/Khipro-Mappings/refs/heads/main/output/touchscreen.json"
118+
target = "app/src/main/assets/khipro-mappings.json"
119+
urlretrieve(source, target)
120+
121+
115122
def main():
116123
if os.getcwd().endswith("tools"):
117124
os.chdir("../")
118125
check_git()
119126
update_translations()
120127
check_default_values_diff()
121128
update_dict_list()
129+
update_khipro_mappings()
122130
check_changelog()
123131

124132

0 commit comments

Comments
 (0)