Commit graph

1447 commits

Author SHA1 Message Date
jahorton
24dca0e6a6 Adds documentation, integrates partially for iOS. 2019-04-23 09:16:42 +07:00
Darcy Wong
51248da0a2 Allow app to set default banner height 2019-04-22 22:44:21 +07:00
jahorton
8cbbd9d961 Baseline in-app suggestion acceptance 2019-04-22 15:26:33 +07:00
Darcy Wong
258a6402f6 Clean up
* Remove test code for `setBanner`
* Clean up getKeyboardLayoutParams
2019-04-19 13:32:03 +07:00
Darcy Wong
242b5ac839 Accommodate dimension for Android device banner
* Also have Android app track the banner (suggestion vs blank) on lexical model change
2019-04-19 06:58:14 +07:00
Darcy Wong
11f76b648f Update KMManager to resize Keyman when banner changes 2019-04-04 16:06:05 +07:00
Darcy Wong
ea998309af Add ability for app to toggle between 'blank' and 'suggestion' banner 2019-04-04 13:44:55 +07:00
Darcy Wong
9dc935be30 Cleanup comments 2019-04-02 23:50:08 +07:00
Darcy Wong
0487e6356a Add banner dimensions for other Android devices 2019-04-02 23:32:56 +07:00
Darcy Wong
d99bd10a8a Adjust for banner height 2019-04-01 16:08:14 +07:00
Darcy Wong
00a97a68c1 Remove commented code 2019-03-28 15:53:07 +07:00
Darcy Wong
93a8c84de3 log exception when model fails to register 2019-03-27 13:35:54 +07:00
Darcy Wong
8cea2e07d7 Fix modelSpec passed for registration
* Also read in lexical models list
2019-03-27 10:37:10 +07:00
Darcy Wong
7ea8da554f Add associated lexical model 2019-03-26 16:40:20 +07:00
Darcy Wong
67a43243b7 Start integrating lexical model installs to KMW 2019-03-26 16:22:03 +07:00
Darcy Wong
a67dc72f3c Fix the build
Revert some import statements that #1654 "cleaned up" but are still needed in #1653
2019-03-08 13:48:34 +07:00
Darcy Wong
1472a76603
Merge pull request #1654 from keymanapp/android-stash-dependencies
[Android] Update dependencies
2019-03-08 09:46:10 +07:00
Darcy Wong
ae68c483a7 Update dependencies
* Update compile/target SDK version from 27 to 28
*  Migrate appcompat namespace (See https://developer.android.com/jetpack/androidx/migrate)
2019-03-06 16:20:26 +07:00
Darcy Wong
37f9050742 Get lexical model package from API
* Also update TC reporter of unit tests
2019-03-06 08:51:33 +07:00
Darcy Wong
2c3701608d Missed one cleanup 2019-03-05 15:32:23 +07:00
Darcy Wong
19f3e880e9 Address review comments 2019-03-05 15:11:29 +07:00
Darcy Wong
e55b71e9e8 Cleanup headers 2019-03-01 09:44:23 +07:00
Darcy Wong
f9210a0fde Cleanup 2019-02-28 22:01:33 +07:00
Darcy Wong
5bb2846130 Simplify PackageProcessor.processKMP()
Change signature since the kmp will always be previously extracted in a temp location.
* from processKMP(File path, boolean force)
* to processKMP(File path, File tempPath, String key)
2019-02-28 20:36:41 +07:00
Darcy Wong
d8ca11f497 wip on refactoring 2019-02-28 15:31:50 +07:00
Darcy Wong
0d32390346 More cleanup
* Fix logical error in cleanup()
* Check number of installed models in unit test
2019-02-27 22:56:57 +07:00
Darcy Wong
2fc30343f4 Add more to processLexicalEntry() 2019-02-27 20:33:35 +07:00
Darcy Wong
79e2dc8cea Update install screen for .model.kmp 2019-02-27 14:26:40 +07:00
Darcy Wong
ba86d1b84d Extend PackageProcessor to handle .model.kmp
* Create LexicalModelPackageProcessor to handle lexical model packages
* Cleanup PackagePrcessor so less utility methods unzip/parse
* Update FileUtils to handle .model.kmp extension
2019-02-27 12:01:36 +07:00
Darcy Wong
d35e97315d Cherrypick #1634 to master 2019-02-27 09:53:01 +07:00
Marc Durdin
ad0c21b057
Merge branch 'master' into beta-p5s4-master-week-1 2019-02-18 11:46:36 +11:00
Darcy Wong
98a5616387 Update comment 2019-02-06 19:30:38 -06:00
Darcy Wong
62e701332a Remove test code 2019-02-06 10:15:56 -06:00
Darcy Wong
f16fd9cf46 Show error dialog when keyboard fails to download 2019-02-06 10:01:30 -06:00
Darcy Wong
620f942abf Add notification when font fails to download 2019-02-05 12:37:42 -06:00
Joshua A. Horton
ba769e67c3 Merge branch 'beta' into p5s2-merge 2019-02-04 21:02:15 +07:00
Darcy Wong
e63298b054 Rename key
Per PR comment, standardize keys to `ConfirmDialogFragment.` prefix
2019-01-25 10:06:02 -06:00
Darcy Wong
44f9a665ef Fix ProgressDialog background 2019-01-23 15:45:33 +07:00
Darcy Wong
5f780dce2a Fix pattern for SimpleDateFormat
Fixes exception found while testing this scenario:
1. Emulator Android API 16
2. From globe button, add Afade (Latin) - SIL Cameroon QWERTY keyboard
3. From browser, install keyboard package from 
https://keyman.com/keyboard/sil_cameroon_qwerty
4.  Return to language picker, and add new keyboard
5. This triggers SimpleDateFormat()
2019-01-23 09:50:02 +07:00
Darcy Wong
22ecac01ef Cleanup ConfirmDialogFragment
Currently, the app name briefly flickers when ConfirmDIalogFragment finishes.

These changes make the flicker less noticeable:
* Set the app name blank in the Manifest
* Dismiss the dialog fragment and finish the activity

Also updated ConfirmDialogFragment to have a flexible message body (second parameter)

* And updated gitignore to ignore artifacts from Android Studio's "Layout Inspector" tool
2019-01-23 08:33:13 +07:00
Darcy Wong
2ca62811b5 PRovide HashMap.getOrDefault for older API levels 2019-01-21 11:28:38 +07:00
Darcy Wong
5919fc02f3 Fix activity finish() transitions
Changed KeyboardListActivity so it passes a result (1) which will get the parent LanguageListActivity to finish too.
2019-01-19 23:34:53 +07:00
Darcy Wong
884ac75cd8 Update with kmp info if version >= cloud
Addresses review comment
2019-01-19 22:27:00 +07:00
Darcy Wong
0f8f95ffca Minor cleanup 2019-01-18 16:51:16 +07:00
Darcy Wong
20fc9b0622 Fix packageID when there's multiple keyboards 2019-01-18 16:19:08 +07:00
Darcy Wong
b7718e2a16 Use packageID to determine when to add language association 2019-01-18 15:53:18 +07:00
Darcy Wong
4edccb5bd6 Update LanguageListActivity when offline
Update to handle scenario when offline. 
* Use default set of options
2019-01-18 14:08:26 +07:00
Darcy Wong
1864fd41f9 Handle offline languages list
When offline, only use languages info from kmp.json files.

Also cleaned up calls to setKeyboard
2019-01-18 10:24:21 +07:00
Darcy Wong
1bc9b5923b Add keyboard from already installed package 2019-01-17 22:49:54 +07:00
Darcy Wong
28de2b93b2 Fix JSON exception when pkgID undefined 2019-01-17 22:49:54 +07:00