keymanapp / keymanapp/keyman

chore(android): `KMManager.getLexicalModelInfo()` should return `LexicalModel` instead of hashmap

Open
#16,248 1 comment 0 reactions 0 assignees View on GitHub
android/ chore
Dominant language
Pascal
Stars
534
Forks
143
Avg merge
2d 10h
Merged PRs (30d)
113

Description

Currently `KeyboardPickerActivity.getLexicalModelInfo()` and `KMManager.getLexicalModelInfo()` return a hashmap with key/value pairs. We should improve that to return a `LexicalModel` type.

A similar change was made for keyboards in Keyman 14.

Should also update the documentation in `android/docs/engine/KMManager/getLexicalModelInfo.md`.

Contributor guide

Open the contributing guide

Research direction

Start with KeyboardPickerActivity.getLexicalModelInfo() and KMManager.getLexicalModelInfo(), then inspect the similar keyboard change made in Keyman 14. Update android/docs/engine/KMManager/getLexicalModelInfo.md alongside the API change. Done means both methods return LexicalModel rather than a hashmap and the documentation matches.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
mobile-dev
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.