Commit graph

1780 commits

Author SHA1 Message Date
Gabriel Wong
a844127675
Merge pull request #484 from keymanapp/ios-directory-migration
Migrate app data for KMP
2017-12-15 10:52:46 +07:00
Gabriel Wong
8415be4fd3 Merge branch 'master' into ios-directory-migration 2017-12-15 10:33:16 +07:00
Gabriel Wong
8cb4d18cb8
Merge pull request #483 from keymanapp/ios-keyboard-id
Create FullKeyboardID to identify user keyboards
2017-12-15 10:28:41 +07:00
Joshua A. Horton
e309935700 Basic embedded path conversion. 2017-12-15 10:27:17 +07:00
darcywong00
82f78f005c Document why removeKeyboardDownloadEventListeners are removed
Calls to `removeKEyboardDownloadEventListener()` are removed to ensure `onKeyboardDownloadFinished()` gets called
2017-12-15 10:24:40 +07:00
Joshua A. Horton
3a3c91515f Refactors TS compile defs, converts the UI element sources. 2017-12-15 10:19:53 +07:00
Joshua A. Horton
6856adb1c1 Fixes base TS compilation errors. 2017-12-15 09:46:37 +07:00
Joshua A. Horton
d8759e41fe Base conversion for kmwbase.ts. 2017-12-15 09:05:29 +07:00
Joshua A. Horton
c6b1217346 Base conversion for keymanweb.js. 2017-12-15 08:56:37 +07:00
Joshua A. Horton
2f4d3210bc Converts kmwosk.js -> kmwosk.ts; adds HTML element extension class. 2017-12-15 08:36:13 +07:00
Joshua A. Horton
abff656b2d Tweaked string-extension referencing to TS 'reference' style. 2017-12-15 08:23:21 +07:00
darcywong00
9cf5e5114c Enable regex for font and oskFont filepaths. 2017-12-14 15:26:47 +07:00
Marc Durdin
a289bef164 Merge branch 'master' into developer-validate-keyboard-info-language-tags 2017-12-14 15:04:05 +07:00
Gabriel Wong
09a20f8484 Add font name to FontManager logging 2017-12-14 13:58:35 +07:00
Gabriel Wong
c9428a2e89 Rename Resources.kmwFilename to be consistent 2017-12-14 13:58:26 +07:00
Gabriel Wong
60c070524c Properly set OSK font for subkeys 2017-12-14 13:58:26 +07:00
darcywong00
27629a578b Tweaks for keyboard update
Include language name and keyboard name when updating keyboard version. Dismiss the updateProgress dialog when keyboard has finished downloading.

Also fixed a typo in comment
2017-12-14 13:38:15 +07:00
Joshua A. Horton
1d9e17a881 Converts kmwstring.js. 2017-12-14 11:08:34 +07:00
Joshua A. Horton
8177b47163 Converted kmwnative.js. 2017-12-14 10:40:19 +07:00
Gabriel Wong
9a47fb3eac Correctly mark custom keyboards 2017-12-14 10:35:50 +07:00
Joshua A. Horton
c2f9e1bbb0 Converted kmwcallback.js. 2017-12-14 10:35:43 +07:00
Joshua A. Horton
fb0e4a24e9 Another simple file. 2017-12-14 10:17:12 +07:00
Joshua A. Horton
b901714988 Initial TypeScript setup work. No complete build for TS is possible yet. 2017-12-14 10:14:52 +07:00
darcywong00
a81387f043 More more keys from KMManager to KMKeyboardDownloaderActivity 2017-12-14 08:19:03 +07:00
darcywong00
4f5bd09cdb Tweak event handlers and fix processing custom JSON
For now, disable calls to `KMKeyboardDownloaderActivity.removeKEyboardDownloadEventListener()`. The parent activities will always pause when KMKeyboardDownloaderActivity runs, and we want the event handlers to trigger when the keyboards finish downloading.

Also fixed processing custom JSON to handle the JSONArray `languages`.
2017-12-13 12:47:36 +07:00
Marc Durdin
6a84de3006 Add unit test for keyboard-info language tag validation 2017-12-13 11:47:01 +07:00
Marc Durdin
4f49f5713e Validate BCP-47 tags in the .keyboard_info files and ensure canonical 2017-12-13 10:35:43 +07:00
Marc Durdin
b049e65c0a
Merge pull request #491 from keymanapp/developer-package-editor-checks
Remove extraneous space from pretty-printed json formatting to match common json formats
2017-12-13 10:32:13 +07:00
Marc Durdin
30fe30ebdc
Merge pull request #492 from keymanapp/keyboard-info-updates
Update keyboard_info per schema spec
2017-12-13 09:33:51 +07:00
Marc Durdin
34d1f00b08 Update keyboard_info per schema spec 2017-12-13 09:26:17 +07:00
Marc Durdin
3ec3ff6efa Tweak Json formatting 2017-12-13 09:24:28 +07:00
darcywong00
ebafec1626 Fix url key and isCustom() check 2017-12-13 05:57:49 +07:00
darcywong00
ba1a84dde6 Refactor keyboard download code
Currently in `KMManager`, there's 3 methods to download a `KMKeyboard` (2 in `KMKeyboardDownloader`, 1 in `KMCustomKeyboardDownloader`) for the 3 use-cases respectively:
1. Add new keyboard (from the cloud)
2. Update a keyboard
3. Install a custom keyboard

This PR refactors the following:
1. Code from `MainActivity.checkUrl()`, `KMManager.KMKeyboardDownloader()`, and  `KMManager.CustomKeyboardDownloader()` into a new activity `KMKeyboardDownloadActivity`. 
Code for doing actual file downloads are kept in an `AsyncTask`.
2. `FileDownloader` moved to a separate util class.
3. Confirmation dialogs for downloading keyboards are also refactored into `ConfirmDialogFragment`.
2017-12-13 05:14:45 +07:00
Gabriel Wong
592b26b52d Fix help popup positioning 2017-12-12 14:34:24 +07:00
Marc Durdin
e47e6a002e
Merge pull request #486 from keymanapp/developer-package-editor-checks
Package Editor and Compiler should do version checks on keyboards
2017-12-12 13:03:30 +07:00
Marc Durdin
294c114320 Unit test for package and keyboard version checks 2017-12-11 19:55:45 +07:00
Marc Durdin
bab83970a5 Package Editor and Compiler should do version checks on keyboards 2017-12-11 19:55:32 +07:00
Joshua A. Horton
619acbbc77 The new OSK font is ready to roll! 2017-12-11 15:07:14 +07:00
Joshua A. Horton
d4cc48d403 Merge branch 'master' into web-340-chiral-font 2017-12-11 15:01:25 +07:00
Gabriel Wong
1b06075594 Update migration level even when no keyboards migrated 2017-12-11 12:54:28 +07:00
Gabriel Wong
161a129407 Fix samples 2017-12-11 12:42:49 +07:00
Gabriel Wong
63ab59c011 Delete keyboard files 2017-12-11 11:54:02 +07:00
Joshua Horton
3718ae775b
Merge pull request #482 from keymanapp/android-kmp-processor
Android .kmp package processor
2017-12-11 10:35:31 +07:00
Joshua A. Horton
4a3cf87fe1 Tweaked JSONParser error log tags. 2017-12-11 10:03:15 +07:00
Joshua A. Horton
882dd8425a Documentation for the newly added classes. 2017-12-11 08:48:48 +07:00
Gabriel Wong
59543baded Ensure keyboard directory created when downloading 2017-12-08 16:45:38 +07:00
Gabriel Wong
3b2e1153ca Keep track of migrations that are performed 2017-12-08 16:21:40 +07:00
Gabriel Wong
658e2c460d Create FullKeyboardID to identify user keyboards 2017-12-08 16:04:02 +07:00
Joshua A. Horton
ddb1d58850 Added a .kmp version check test. 2017-12-08 15:23:51 +07:00
Joshua A. Horton
ba0cbd2d72 First functional iteration of the .kmp processor. 2017-12-08 14:53:38 +07:00