Commit graph

18 commits

Author SHA1 Message Date
Marc Durdin
bbeb799ac2 feat(ios): add keyman-version to package-version check
For Keyman for iOS, add the new `keyman-version` parameter to the
api.keyman.com/package-version call so that updates to packages that are
not supported on the current version of Keyman will not be offered. This
supports the scenario where an updated keyboard or lexical model depends
on a newer version of Keyman. Note that an older version of the keyboard
or lexical model package will not be offered (the user can still
download and install an older version manually, but generally, the
recommended solution is to upgrade Keyman; there would be significant
cost to add support for querying and installation of older version
keyboards on the server side, for limited benefit).

Also change order of handling for response so that error responses are
recognized even if non-error fields are present. (The current api
endpoint, before keymanapp/api.keyman.com#325 lands, can return `kmp`
and `version` fields even when an `error` field was present, and the iOS
code would see that as a valid response for upgrade, when it shouldn't.
The keymanapp/api.keyman.com#325 change ensures that the additional
fields are not set if there is an `error` field.)

Relates-to: keymanapp/api.keyman.com#325
2026-06-25 11:27:00 +02:00
sgschantz
542dc83b44 remove XCGLogger dependency from Keyman Engine 2024-01-19 10:47:54 +07:00
jahorton
0260a84cd3 feat(ios): some log.info -> breadcrumb conversion 2021-05-26 13:21:18 +07:00
jahorton
8b47386ca0 refactor(ios): error definitions, i18n 2020-08-07 11:48:08 +07:00
jahorton
761ab6c687 chore(ios/engine): dead code removal + deprecations 2020-07-24 12:41:01 +07:00
jahorton
b262098116 refactor(ios/engine): chained lexical model install callback, fix 2020-07-22 13:58:14 +07:00
jahorton
a3161fa055 refactor(ios/engine): start of KeymanHosts, refactors api.keyman.com refs 2020-07-21 08:22:38 +07:00
jahorton
47e27625fe chore(ios/engine): reverts unnecessary changes 2020-07-13 11:00:48 +07:00
jahorton
b53ce95c5d change(ios/engine): removes redundant caching from branch's additions 2020-07-13 10:41:10 +07:00
jahorton
8b688e818e chore(ios/engine): adjustment to new base branch 2020-07-10 13:43:00 +07:00
jahorton
cfd76c0326 refactor(ios/engine): better caching, stateForKeyboard rework/test 2020-07-10 13:43:00 +07:00
jahorton
4633ad5b91 feat(ios/engine): runtime package-version query result caching 2020-07-10 13:43:00 +07:00
jahorton
c9e8b0d6a0 refactor(ios/engine): hashable package keys 2020-07-10 09:40:13 +07:00
jahorton
464cc3f7e1 feat(ios/engine): unit test for legacy model downloads, related fixes 2020-07-09 10:53:00 +07:00
jahorton
269bc2eed5 refactor(ios/engine): for legacy downloadLexicalModel API 2020-07-09 10:21:53 +07:00
jahorton
dfc9ec0a64 refactor(ios/engine): for Settings model downloads 2020-07-09 09:02:06 +07:00
jahorton
0b366e9915 refactor(ios/engine): starts Queries.LexicalModel, related unit test 2020-07-08 15:55:11 +07:00
jahorton
92f8144db2 feat(ios/engine): package-version query implementation 2020-06-25 15:14:11 +07:00