Commit graph

771 commits

Author SHA1 Message Date
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
19f3e880e9 Address review comments 2019-03-05 15:11:29 +07:00
Darcy Wong
82d9066e47 Change UI feedback from "lexical model" to "predictive text" 2019-03-04 15:07:41 +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
b568077bf6 Fix duplicate "keyboard" / "model" string on install 2019-02-27 23:13:04 +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
f16fd9cf46 Show error dialog when keyboard fails to download 2019-02-06 10:01:30 -06:00
Darcy Wong
d0adf182b7 Fix "Getting Started" checkbox
Add a LinearLayout view so text label goes to the right
2019-01-21 13:43:51 +07:00
Darcy Wong
7ed0547084 Update minimum SDK level from 15 to 16 2019-01-14 11:31:30 +07:00
Darcy Wong
c1caaf3ee1 Fix "Get Started" status for default keyboard 2019-01-09 14:43:06 +07:00
Darcy Wong
04b115280e Update InfoActivity for 11.0
Add content from http://help.keyman.com/products/android/11.0
2018-12-05 22:00:12 +07:00
Darcy Wong
a4249e5342
Merge pull request #1378 from keymanapp/android-tablet-layout
[Android] Tweak tablet layout
2018-12-05 07:45:00 +07:00
Darcy Wong
1e31d81088 Tweak "Getting Started" checkbox layout 2018-12-04 14:28:36 +07:00
Darcy Wong
2c75d749ad Fix tablet layout
* lengthen label size
* always show menu items for tablet layout
2018-12-04 13:19:19 +07:00
Darcy Wong
481eda7d6f Update FileUtils to handle mixed-case file extensions 2018-11-21 14:27:18 +07:00
Darcy Wong
bfb784c933 Allow system "globe button" to change keyboards 2018-10-31 16:11:43 +07:00
Darcy Wong
04f37b4bff Add one more String.format 2018-10-24 14:28:12 +07:00
Darcy Wong
1f3cd5268b Tidy up more strings 2018-10-24 10:44:20 +07:00
Darcy Wong
8ce4b4f30b Consolidate UI strings to strings.xml 2018-10-24 07:55:51 +07:00
Darcy Wong
69de652956 Add hooks to vibrate when KMW sends BEEP 2018-10-01 16:13:12 +07:00
Darcy Wong
c2fe6197db Change system keyboard to "numeric" layer for numeric text fields
Fixes #289

When changing to a digit/phone number text field, set the OSK to "numeric" layer if it exists. 

This will occur after `resetContext()`.
2018-09-27 13:14:25 +07:00
Darcy Wong
c3fce1d909 Fix globe button when pausing WebBrowser
This is a follow-on fix of #913

The same `webView.pauseTimers()` that was disabling the globe button in system keyboards is also impacting when the WebBrowser is paused.
2018-09-26 09:32:14 +07:00
Darcy Wong
4c556d7c6b Fix web browser progress bar 2018-09-20 16:57:50 +07:00
Darcy Wong
544a58c151 Add Material Design 2018-09-19 13:46:03 +07:00
Darcy Wong
6712661c71 Disable text portion of splash screen
Per review comment, don't delay app startup  just to display the text fields of the splash screen.
2018-08-30 16:25:31 +07:00
Darcy Wong
ff4066e374 Add splash screen
This addresses the Android platform of #1069

* Show product logos on app start
* Then show text (version and copyright dates)
2018-08-30 15:07:59 +07:00
Darcy Wong
39fe506d8c Resolve review comments
* Clean up unnecessary `KMKey_` keys
* Update MainActivity to only download ad-hoc KMP packages.
2018-08-27 11:17:25 +07:00
Darcy Wong
74ca0d09d0 Merge remote-tracking branch 'origin/master' into android-remove-adhoc-json 2018-08-27 07:43:04 +07:00
Darcy Wong
bb72f4406c Remove ad-hoc distribution of keyboards via keyman:// protocol
Addresses Android platform for #538
2018-08-16 22:29:14 -05:00
Darcy Wong
1c9775e287 Fix crashes when input connection or package name is null
This cherry picks the commits from #1103 onto master
2018-08-15 22:05:42 -05:00
Darcy Wong
a2ed5a49fa Add round launcher icons
From https://blog.xamarin.com/round-launcher-icons-in-android-7-1/
"Circular launcher icons have become standard since the introduction of Android Nougat 7.1"

This is a cosmetic change adding round launcher icons for the Keyman app.
2018-07-18 11:01:10 -05:00
Marc Durdin
d871951521 Fix conflicts 2018-06-27 13:57:30 +07:00
Darcy Wong
293de06cdd Refresh Info page
Bring in the current app info page from https://help.keyman.com/products/android/10.0/

* Update to Khmer Angkor
* Update images
* Removes references of sharing to Facebook
- Does not include cross-references to versions 2.0 and 10.0 since this is an offline info page.
2018-06-25 05:23:15 -05:00
darcywong00
931bcdd5ca Consolidate "Info" views
Fixes #960

Previously, the InfoActivity was displaying the app version in one view, and launching the help content in another Activity.
2018-06-10 06:58:58 +07:00
darcywong00
8f8e95d479 Improve intent-filter for file scheme
Fixes #902

Update the intent-filter for file scheme (based on BloomReader's [AndroidManifest.xml](https://github.com/BloomBooks/BloomReader/blob/master/app/src/main/AndroidManifest.xml))
2018-05-26 21:15:05 +07:00
Marc Durdin
27bb92aec8
Merge branch 'master' into beta-p3s3-merge-to-master 2018-05-18 13:10:32 +07:00
Darcy Wong
217ffcd3be
Merge branch 'beta' into android-exit-browser 2018-05-10 11:52:27 +07:00
darcywong00
e03baaff29 Update compile SDKVersion from 25 to 27
Fixes #750 

Currently, Keyman for Android targets SDK version 25 (Nougat). 

This PR targets  the latest Android API and updates all the Gradle dependencies to the latest. This will remove some lint Obsolete warnings.

Sample and Test projects needed to add 
```
implementation 'com.android.support:support-v4:27.1.1'
```
to ensure all dependencies use the same version.
2018-05-10 08:02:09 +07:00
darcywong00
d4e927ac4a Make distinct webView IDs 2018-05-09 14:03:42 +07:00
darcywong00
44aec2944b Start cleaning up console log
Fixes #748

* Remove nearly all uses of `Log.d()`
* Disable `window.console.log()` calls in `keyboard.html`
2018-05-08 10:50:15 +07:00
darcywong00
c593a45e7d Update string handling for PackageProcessor
Fixes #819

* If package version undefined, use "1.0"
* Keyman Developer won't allow undefined package name, but just in case return package ID from the filename
* Check for null before String.toLowerCase()
* Added package processor test for undefined version
2018-05-07 14:47:11 +07:00
Marc Durdin
a9113c8f82
Merge branch 'master' into beta-p3s2-to-master 2018-05-04 21:06:21 +07:00
darcywong00
e582632c97 Disable text suggestions in app text field 2018-04-24 16:25:08 +07:00
darcywong00
cfdb2b6591 Hide system OSK when resuming Keyman app
This handles all transitions where an external app/dialog using the system OSK returns to the Keyman app such as resuming:
* from WebBrowserActivity
* from Android Oreo's "Add to dictionary" dialog
2018-04-24 13:41:23 +07:00