Skip to content

Commit 7a5231c

Browse files
committed
chore: general cleanup — gitignore, fastlane metadata, gradle wrapper
1 parent 6f2e70d commit 7a5231c

10 files changed

Lines changed: 118 additions & 85 deletions

File tree

.gitignore

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,52 @@
1-
# Ignore all files in the app/src/main/java directory
2-
.aiderignore
1+
# Android & Gradle
2+
*.iml
3+
.idea/
4+
.gradle/
5+
.kotlin/
6+
local.properties
7+
build/
8+
app/build/
9+
app/release/
10+
app/.cxx/
11+
app/.attach_*/
12+
tools/make-emoji-keys/build/
313

4-
# Qwen AI context files
14+
# OS Specific
15+
.DS_Store
16+
17+
# Ruby/Fastlane
18+
Gemfile
19+
fastlane/Appfile
20+
21+
# Keys & Secrets
22+
*.jks
23+
*.keystore
24+
keystore.properties
25+
signing.properties
26+
27+
# Build logs
28+
*.log
29+
30+
# Scripts & Misc
31+
tools/*.txt
32+
tools/clean_qwencoder_history.sh
33+
34+
# Offline model files & Node
35+
tokenizer.json
36+
node_modules/
37+
38+
# Python Virtual Env
39+
.venv/
40+
41+
# AI Assistants & Context
42+
.aider*
43+
.qwen/
544
QWEN.md
645
**/QWEN.md
46+
AGENTS.md
47+
**/AGENTS.md
48+
GEMINI.md
49+
Pdoc/
50+
.antigravityignore
51+
.gemini/
52+
help/

app/src/main/java/helium314/keyboard/settings/screens/PersonalDictionariesScreen.kt

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -163,25 +163,24 @@ private suspend fun importGboardDictionary(context: android.content.Context, uri
163163

164164
private fun parseAndInsert(context: android.content.Context, reader: BufferedReader): Int {
165165
var count = 0
166-
reader.forEachLine { line ->
167-
if (line.startsWith("#")) return@forEachLine
168-
val parts = line.split("\t")
169-
if (parts.size >= 1) {
166+
var line: String?
167+
while (reader.readLine().also { line = it } != null) {
168+
val currentLine = line ?: continue
169+
if (currentLine.startsWith("#")) continue
170+
val parts = currentLine.split("\t")
171+
if (parts.isNotEmpty()) {
170172
val word = parts[0]
171173
if (word.isNotBlank()) {
172174
val shortcut = if (parts.size >= 2) parts[1].ifBlank { null } else null
173175
val localeStr = if (parts.size >= 3) parts[2].ifBlank { null } else null
174176

175-
val locale = if (localeStr != null) {
177+
val locale = if (localeStr != null && localeStr != "all") {
176178
try { Locale.forLanguageTag(localeStr) } catch(_: Exception) { null }
177179
} else null
178180

179-
// Frequency is not always present or standardized, use default
180-
// UserDictionary.Words.addWord(context, word, 250, shortcut, locale)
181-
// We need to use valid locale
182181
try {
183-
UserDictionary.Words.addWord(context, word, 250, shortcut, locale)
184-
count++
182+
UserDictionary.Words.addWord(context, word, 250, shortcut, locale)
183+
count++
185184
} catch (e: Exception) {
186185
Log.w("ImportDict", "Failed to add word $word", e)
187186
}
Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
1-
* new icon by @FabianOvrWrt with contributions from @the-eclectic-dyslexic (#517, #592)
2-
* more customizable space bar trackpad and language switch by @arcarum (#486)
3-
* add % to shift symbols layout (#568, #428)
4-
* improve behavior when language switch key is set to switch both language and keyboard
5-
* show links to existing dictionaries when adding a dictionary
6-
* add Kaitag layout by @alkaitagi (#519)
7-
* add Probhat layout by @fahimscirex (#489)
8-
* optionally reverse toolbar order for RTL languages by @codokie (#557, #574)
9-
* allow customizing special layouts (numpad, phone, ...)
10-
* still experimental, as the base layouts may change
11-
* updated spellchecker.xml to include locales where dictionaries are available, but not included in app
12-
* update translations (thanks to all translators!)
13-
* upgrade ndk by @Syphyr (#560)
14-
* upgrade inline autofill code by @arcarum (#595)
15-
* fix issue with toolbar key dialog (#505)
16-
* fix issue with turkish layout (#508)
17-
* fix wrong switch states when rotating in customize colors screen (#563)
18-
* fix issue with recent emojis not loading (#527)
19-
* fix issue with numbers not appearing in certain fields (#585)
20-
* some minor fixes
1+
* New icon & better trackpad / language switch
2+
* Added Kaitag and Probhat layouts
3+
* Optionally reverse toolbar for RTL
4+
* Customize special layouts (numpad, phone, etc.)
5+
* Updated spellchecker locales
6+
* Upgraded NDK & inline autofill code
7+
* Fixed Turkish layout & recent emojis
8+
* Fixed switch states & toolbar key dialog
9+
* Add % to shift symbols layout
10+
* Minor fixes and translation updates
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
* change icons for autocorrect and select all toolbar keys by @codokie (#524, #651)
2-
* add Chuvash layout by @tenextractor (#677)
3-
* add cut toolbar key by @codokie (#678)
4-
* update Probhat layout by @fahimscirex (#628)
5-
* show toolbar icons in toolbar key dialog
6-
* add close button in clipboard history by @codokie (#403, #649)
7-
* add Russian (Student) layout by @Zolax9 (#640)
8-
* make numpad on symbols key long press optional (#588)
9-
* minor fixes and improvements, including #632, #637, #638 by @RHJihan
1+
* Change icons for autocorrect and select all
2+
* Add Chuvash & Russian (Student) layouts
3+
* Add cut toolbar key & close button in clipboard
4+
* Update Probhat layout
5+
* Show toolbar icons in key dialog
6+
* Make numpad on symbols key long press optional
7+
* Minor fixes and improvements
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
- capitalize suggestions when pressing shift
2-
- add keycodes for broadcasting intents
3-
- optionally display emoji descriptions, needs emoji dictionary
4-
- improve hardware keyboard handling
5-
- add "hide keyboard" option on vertical space swipe
6-
- add latin subtype
7-
- allow turning off emoji suggestions when adding an emoji dictionary
8-
- fix missing emojis in split keyboard
9-
- remove emojis that are not supposed to be used on their own
10-
- fix issues with blacklist
11-
- fix backspace behavior with some emojis
1+
* Capitalize suggestions when pressing shift
2+
* Add keycodes for broadcasting intents
3+
* Optionally display emoji descriptions (needs dict)
4+
* Improve hardware keyboard handling
5+
* Add "hide keyboard" option on vertical space swipe
6+
* Add latin subtype
7+
* Allow turning off emoji suggestions when adding dict
8+
* Fix missing emojis in split keyboard
9+
* Remove standalone-only emojis
10+
* Fix blacklist issues
11+
* Fix backspace behavior with some emojis
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
- capitalize suggestions when pressing shift
2-
- add keycodes for broadcasting intents
3-
- optionally display emoji descriptions, needs emoji dictionary
4-
- improve hardware keyboard handling
5-
- add "hide keyboard" option on vertical space swipe
6-
- add latin subtype
7-
- allow turning off emoji suggestions when adding an emoji dictionary
8-
- fix missing emojis in split keyboard
9-
- remove emojis that are not supposed to be used on their own
10-
- fix issues with blacklist
11-
- fix backspace behavior with some emojis
1+
* Capitalize suggestions when pressing shift
2+
* Add keycodes for broadcasting intents
3+
* Optionally display emoji descriptions (needs dict)
4+
* Improve hardware keyboard handling
5+
* Add "hide keyboard" option on vertical space swipe
6+
* Add latin subtype
7+
* Allow turning off emoji suggestions when adding dict
8+
* Fix missing emojis in split keyboard
9+
* Remove standalone-only emojis
10+
* Fix blacklist issues
11+
* Fix backspace behavior with some emojis
Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
- Added real-time screenshot suggestions in the toolbar (Disabled by default, enable in Settings > Text correction)
2-
- Added automatic saving of recent screenshots to clipboard history
3-
- Added Clipboard item delete undo feature with a timed undo bar
4-
- Fixed and improved Emoji search, adding search icon and visual selection indicators to the Emoji toolbar
5-
- Refined clipboard image preview with curved corners and filename overlay
6-
- Re-styled toolbar keys with perfectly square shapes and modern ripple effects
7-
- Enhanced Caps Lock indicator for better visibility when engaged
8-
- Smoother scale and fade animations for character popups when typing
9-
- Improved function key contrast in Light Mode dynamic themes
10-
- Adjusted default keyboard height scale to 77%
11-
- Fixed issue where screenshot suggestions would disappear prematurely
12-
- Fixed image pasting support for screenshot suggestions in apps like Telegram
13-
- General performance and stability improvements
1+
* Real-time screenshot suggestions in toolbar
2+
* Auto-save recent screenshots to clipboard
3+
* Clipboard item delete undo feature
4+
* Improved Emoji search with visual indicators
5+
* Refined clipboard image preview styling
6+
* Re-styled toolbar keys with modern ripple effects
7+
* Enhanced Caps Lock indicator visibility
8+
* Smoother scale/fade animations for popups
9+
* Fixed screenshot pasting bugs
10+
* General performance and stability improvements

fastlane/metadata/android/en-US/full_description.txt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
HeliBoard is a privacy-conscious open-source keyboard, based on AOSP / OpenBoard.
2-
Does not use internet permission, and thus is 100% offline.
1+
LeanType is a privacy-conscious, customizable open-source keyboard, based on AOSP / OpenBoard / HeliBoard.
2+
It enhances the original keyboard with optional AI-powered features, offering both cloud-based and fully offline on-device intelligence.
33

44
Features:
55
<ul>
6+
<li><b>AI Proofreading & Translation:</b> Proofread or translate text using Gemini, Groq, or OpenAI-compatible providers, or use fully offline on-device ONNX models.</li>
7+
<li><b>Custom AI Keys:</b> Assign custom prompts and personas to customizable toolbar keys.</li>
8+
<li><b>Clipboard Search & Undo:</b> Search through your clipboard history directly from the toolbar, and undo accidental item deletions.</li>
69
<li>Add dictionaries for suggestions and spell check</li>
710
<ul>
8-
<li>build your own, or get them <a href="https://codeberg.org/Helium314/aosp-dictionaries#dictionaries">here</a>, or in the <a href="https://codeberg.org/Helium314/aosp-dictionaries#experimental-dictionaries">experimental</a> section (quality may vary)</li>
11+
<li>build your own, or get them <a href="https://codeberg.org/Helium314/aosp-dictionaries#dictionaries">here</a>, or in the <a href="https://codeberg.org/Helium314/aosp-dictionaries#experimental-dictionaries">experimental</a> section (quality may vary)</li>
912
<li>additional dictionaries for emojis or scientific symbols can be used to provide suggestions (similar to "emoji search")</li>
1013
<li>note that for Korean layouts, suggestions only work using <a href="https://github.com/openboard-team/openboard/commit/83fca9533c03b9fecc009fc632577226bbd6301f">this dictionary</a>, the tools in the dictionary repository are not able to create working dictionaries</li>
1114
</ul>
@@ -14,8 +17,8 @@ Features:
1417
<li>can follow the system's day/night setting on Android 10+ (and on some versions of Android 9)</li>
1518
<li>can follow dynamic colors for Android 12+</li>
1619
</ul>
17-
<li>Customize keyboard <a href="https://github.com/Helium314/HeliBoard/blob/main/layouts.md">layouts</a> (only available when disabling <i>use system languages</i>)</li>
18-
<li>Customize special layouts, like symbols, number, or functional key layout</li>
20+
<li>Customize keyboard <a href="https://github.com/LeanBitLab/HeliboardL/blob/main/layouts.md">layouts</a> (only available when disabling <i>use system languages</i>)</li>
21+
<li>Customize special layouts, like symbols, number, or functional key layout</li>
1922
<li>Multilingual typing</li>
2023
<li>Glide typing (<i>only with closed source library</i> ☹️)</li>
2124
<ul>
@@ -28,3 +31,5 @@ Features:
2831
<li>Number pad</li>
2932
<li>Backup and restore your settings and learned word / history data</li>
3033
</ul>
34+
35+
LeanType is available in multiple build flavors based on your privacy needs: Standard (Opt-in Cloud AI), Offline (On-device AI, NO internet permission), and Offline Lite (No AI, NO internet permission).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
HeliBoard
1+
LeanType
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=61ad310d3c7d3e5da131b76bbf22b5a4c0786e9d892dae8c1658d4b484de3caa
43
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
54
networkTimeout=10000
6-
validateDistributionUrl=true
75
zipStoreBase=GRADLE_USER_HOME
86
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)