Commit graph

1067 commits

Author SHA1 Message Date
Darcy Wong
90b25ed673 fix(android/engine): Update deprecated call to switch system keyboard for Android P 2020-07-15 14:14:29 +07:00
Darcy Wong
8bb8fe4c92 feat(android/oem): Add nrc.str.sencoten to FV app
* Update FV build to download nrc.str.sencoten.model.kmp
* Update FV app to install the model
* Rebuild active keyboards list using keyboard info from kmp.json
2020-07-10 08:55:53 +07:00
Darcy Wong
303873b64f fix(android): Add to KMManager API
Add getDefaultKeyboard() and setDefaultKeyboard() to KMManager API.
2020-07-09 10:55:41 +07:00
Darcy Wong
2e240591a3 chore(android): Address review comments
getDefaultKeyboard()
* Assert `context`is not null

setDefaultKeyboard()
* Allow null Keyboard to revert to sil_euro_latin

FV MainActivity
* Define constant for default package ID
2020-07-09 10:52:09 +07:00
Darcy Wong
3f21471739 chore(android): Merge remote-tracking branch 'origin/master' into fix/android/set-fallback-keyboard 2020-07-09 10:36:11 +07:00
Darcy Wong
ec016f850f fix(android/oem): Add a fallback keyboard to FV Android app
The FV Android app has a workflow where it's possible on a fresh install for the user to set FV as a system keyboard before checking (adding) any of the FV keyboards.

This makes the keyboard list empty, and KMManager throws an exception trying to set a keyboard.

This PR adds `Keyboard.setDefaultKeyboard()` so an app can specify a fallback keyboard. If never set, KMEA uses sil_euro_latin/sil_euro_latin.

The FV app will fall back to fv_all/sil_euro_latin
2020-07-08 16:23:07 +07:00
Darcy Wong
ef11647b5a feat(android): Use build-download-resources.sh for KMApro and FV apps
Follow-on to #3300

* Update the FV Android app to use the same build script to download its default keyboard package. (fv_all.kmp)
    * This means downloading fv_all.kmp is the only valid option for the build (remove option to copy/rebuild keyboards)
* Reduce the number of exports in the Bash scripts
* Also removes sil_euro_latin.kmp since the app will fallback to fv_all/sil_euro_latin (in a future PR)
2020-07-08 14:03:02 +07:00
Darcy Wong
95c4b914d4 chore(android): Remove unused import of JSONArray 2020-07-08 13:17:03 +07:00
Darcy Wong
6b0e280b08 fix(android): Update logger to handle generic object
Per review comment, make logger `LogExceptionWithData` to handle generic Object. This will print out the object as a string in the error log to Sentry.
2020-07-08 10:36:54 +07:00
Darcy Wong
7a5b9e8069 feat(android): Add additional info on installed keyboards exceptions 2020-07-07 15:35:14 +07:00
Darcy Wong
8d8e243cc4 chore(android): Merge remote-tracking branch 'origin/master' into fix/android/download-associated-dictionary 2020-07-03 11:50:41 +07:00
Darcy Wong
0caaf6b4f6 fix(android/engine): Fix unbound variable in build script 2020-07-03 11:07:40 +07:00
Darcy Wong
9903c92c7a chore(android): Cleanup 2020-07-03 08:59:22 +07:00
Darcy Wong
477cb11349 fix(android): Download associated lexical model 2020-07-03 08:09:33 +07:00
Darcy Wong
3d273a37e6
Merge pull request #3300 from keymanapp/feat/android/download-resources
feat(android): Download default resources at build time
2020-07-03 06:30:29 +07:00
Darcy Wong
4b153468f9 fix(android): Avoid build-utils.sh from getting called multiple times 2020-07-01 15:36:02 +07:00
Darcy
7150931dab fix(android): Address review comments 2020-07-01 11:50:31 +07:00
Darcy
96a8e195c1 fix(android): revert language query change 2020-07-01 10:01:50 +07:00
Darcy Wong
b302af9195 fix(android/app): Update environment vars 2020-07-01 08:36:12 +07:00
Darcy Wong
353288ad5f chore(android): Ignore default KMAPro packages 2020-06-30 16:12:53 +07:00
Darcy Wong
63857437d0 feat(android/resources): Split package download to resources/ scriipt 2020-06-30 16:11:20 +07:00
Darcy Wong
8d8cf035b9 feat(android): Download default resources at build time
Similar to the OEM FirstVoices Android app, this updates the KMAPro `build.sh` script to download the latest default language resources (keyboard and dictionary) as part of the build process.
2020-06-30 13:19:02 +07:00
Darcy Wong
830dcf66d7 fix(android): Update query for language
This small PR adjusts the language query (if given) to specify BCP 47 match.

Also makes the PackgeActivity title font size smaller so the string "Install Keyboard Package version X.Y.Z" fits
2020-06-29 16:19:45 +07:00
Darcy Wong
6e152f5797 fix(android): Update embed to android 2020-06-29 13:03:28 +07:00
Darcy Wong
0c18e9a38c fix(android): Use tier to determine keyboard search host 2020-06-29 10:36:38 +07:00
Darcy Wong
6e2770535f feat(android): SelectLanguage title depends on installed list 2020-06-19 13:21:26 +07:00
Darcy Wong
97540655bc feat(android): Address review comments
* Fix strings
* Refactor keyboard/list generation and return all the languages
* Modify adapter to disable installed languages
2020-06-19 12:55:42 +07:00
Darcy Wong
8e5d29557f chore(android): Cleanup unused imports 2020-06-18 22:03:59 +07:00
Darcy Wong
7bd304ee71 fix(android): Implement menu to add language for installed keyboard pkg 2020-06-18 21:44:14 +07:00
Darcy Wong
6c3f887e22 feat(android/engine): Consolidate install menus 2020-06-16 15:45:04 +07:00
Darcy Wong
33044acd25 fix(android/engine): Adjust regex 2020-06-12 12:27:47 +07:00
Darcy Wong
052cc9d74f fix(android/engine): Refactor cloud keyboard migration 2020-06-11 10:39:03 +07:00
Darcy Wong
62f784103c chore(android): Merge remote-tracking branch 'origin/master' into feat/android/migrate-cloud 2020-06-11 07:34:27 +07:00
Darcy Wong
58a2da05d5 chore(android): Remove google-services and update readme 2020-06-11 07:01:29 +07:00
Darcy Wong
c01ba60cf1 fix(android/engine): Remove setLanguage() 2020-06-10 17:15:29 +07:00
Darcy Wong
ec0dfdd5dc fix(android/engine): Clean up 2020-06-10 17:05:34 +07:00
Darcy Wong
3d40443612 fix(android/engine): Move cloud keyboard migration to KMManager 2020-06-10 14:35:54 +07:00
Darcy Wong
534c943987 fix(android/engine): Change log to warning if keyboard index failed 2020-06-09 23:44:46 +07:00
Darcy Wong
a6ad06ba0f feat(android/engine): Migrate cloud keyboards when updating keyboard package 2020-06-09 16:01:20 +07:00
Darcy Wong
e7037b7d75
Merge pull request #3209 from keymanapp/feat/android/model-picker-updates
feat(android): Handle model picker updates
2020-06-09 16:00:36 +07:00
Darcy Wong
b62deddd40
Merge pull request #3216 from keymanapp/fix/android/upgrade-old-keyboard
fix(android/engine): Revise updateOldKeyboardsList
2020-06-09 09:15:17 +07:00
Darcy Wong
c218b97152 fix(android/engine): Simplify isNewKeyboard by setting to false 2020-06-08 16:40:04 +07:00
Darcy Wong
9dba0eb45e fix(android/engine): Have updateOldKeyboardsList return a list 2020-06-08 16:22:11 +07:00
Darcy Wong
d2b0ba56d6
Merge pull request #3213 from keymanapp/modify/android/add-keyboard-syntax
modify(android/samples): Update addKeyboard syntax for Sample and Test apps
2020-06-08 12:31:47 +07:00
Darcy Wong
11ae726afa fix(android/engine): Revise updateOldKeyboardsList 2020-06-07 09:37:26 +07:00
Darcy Wong
5369d85d86 test(android): Update Sample and Test Projects to use Keyboard syntax
Also rebuild keyboardharness.kmp to set version for chirality.js
2020-06-05 11:03:49 +07:00
Darcy Wong
21a64063c5 feat(android): Add utility to check BCP47 equivalence
Fixes #2972
Add a BCP47 utility to check if two language IDs are equivalent.
2020-06-04 16:53:22 +07:00
Darcy Wong
3f27ed5656 chore(android): Merge remote-tracking branch 'origin/master' into feat/android/model-picker-updates 2020-06-04 14:44:43 +07:00
Darcy Wong
723330e81b fix(android): Force lexical model cache to rebuild 2020-06-04 11:59:13 +07:00
Darcy Wong
c38f343d9b fix(android): Handle model package updates 2020-06-04 11:37:08 +07:00