Commit graph

771 commits

Author SHA1 Message Date
Darcy Wong
1b97aa00d8 fix(android): Split intent filters 2020-08-03 14:59:43 +07:00
Darcy Wong
fe27e73ac7 feat(android/app): Associate app with /keyboards/install links 2020-08-03 13:37:59 +07:00
Darcy Wong
5256ddb5de feat(android): Add app association to keyman.com
Following the reference from https://developer.android.com/training/app-links/verify-site-associations

> When `android:autoVerify="true"` is present on any one of your intent filters, installing your app on devices with Android 6.0 and higher causes the system to attempt to verify all hosts associated with the URLs in any of your app's intent filters.
2020-07-30 13:11:15 +07:00
Darcy Wong
257efec3d5 fix(android): Remove 13.0 code for downloading keyboards 2020-07-28 14:11:24 +07:00
Darcy Wong
c2a0d68b14 fix(android): Address review comments
* Use URI to handle query parameters instead of strings

Also in resuming work on the PR
* Change the staging host to keyman-staging.com
* Move helper for determining host
2020-07-27 13:57:49 +07:00
Darcy Wong
a41fb079a5 chore(android): Merge remote-tracking branch 'origin/master' into fix/android/go-download-keyboards 2020-07-26 21:02:25 +07:00
Darcy Wong
b794eab191 fix(android): Revert AndroidManifest
From PR discussion, the app should change the keyboards/install link (not display in browser) into a downloading link that MainActivity handles
2020-07-17 11:27:41 +07:00
Darcy Wong
eb51b8cc55 fix(android): Update intent filter for /keyboards/install
Address some review comments:
* Update intent filter to use /keyboards/install (/go/packge/download commented out)
* Add some test cases to for testing Keyman install link
2020-07-16 13:47:16 +07:00
Darcy Wong
239c632dbe chore(android): Cleanup 2020-07-15 09:48:32 +07:00
Darcy Wong
d1ac23105c fix(android): Fix intent and parsing of URL query
* Add intent to handle download links from current live site: https://keyman.com/keyboard/download/
* Fix parsing of bcp47 query
* Only use the path for determining filename from packageID
*
2020-07-15 06:32:17 +07:00
Darcy Wong
eb93f5c305 fix(android): Refactor check on kmp links 2020-07-14 21:34:02 +07:00
Darcy Wong
e88e3ca5a1 fix(android): Fix regression for handling .kmp links 2020-07-14 15:50:51 +07:00
Darcy Wong
10f503660d fix(android): Handle go/package/download links 2020-07-13 21:57:51 +07:00
Darcy Wong
d575ed9bab fix(android/engine): Update intents for downloading keyboards 2020-07-13 14:28:07 +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
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
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
7150931dab fix(android): Address review comments 2020-07-01 11:50:31 +07:00
Darcy Wong
b302af9195 fix(android/app): Update environment vars 2020-07-01 08:36:12 +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
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
58a2da05d5 chore(android): Remove google-services and update readme 2020-06-11 07:01:29 +07:00
Darcy Wong
12767a8a38 fix(android): Add wrapper for logging errors & exceptions 2020-06-01 15:58:22 +07:00
Darcy Wong
6150b69c29 fix(android): Handle keyboard update 2020-05-27 16:40:49 +07:00
Darcy Wong
63032063a7 fix(android): Use kmp link 2020-05-27 13:23:27 +07:00
Darcy Wong
47fb7597b7 fix(android): Start using packages api 2020-05-27 13:23:27 +07:00
Darcy Wong
f504bf302c fix(android): start to address review comments 2020-05-18 10:45:12 +07:00
Darcy Wong
251dff3bba modify(android): Refactor KeyboardPickerActivity 2020-05-08 16:34:06 +07:00
Darcy Wong
d32aa18264 fix(android): Fix back button after System Keyboard dismissed 2020-05-07 08:48:44 +07:00
Marc Durdin
214bd4652e chore(windows): Merge branch 'master' into fix/windows/sentry-cleanup 2020-04-30 05:04:13 +10:00
Marc Durdin
256be354ed chore: address review comments 2020-04-29 16:40:39 +10:00
Darcy Wong
490a82eaf2 modify(android): Start refactoring LanguageResource 2020-04-28 17:17:41 +07:00
Marc Durdin
b12baab1c5 fix(android): link VERSION_ENVIRONMENT 2020-04-28 15:56:56 +10:00
Marc Durdin
b5f32fbbaf fix(android): use environment and version-with-tag for sentry 2020-04-28 11:34:22 +10:00
Darcy Wong
e08e6eb797 fix(android): Clarify label that shows "Get Started" on startup
PR #2751 cleaned up UI strings, changing the label from `Show "Get Started" on startup` to `Show this menu on startup`. This change was fine for "Get Started" menu, but the label is confusing when reused on the Keyman Settings menu.

This PR reverts the label (while formatting the string to include the localized string for "Get Started".
2020-04-24 09:39:03 +07:00
Darcy Wong
45c09c23e6 modify(android): Convert LanguageListActivity to utility
* Remove LanguageListActivity and KeyboardListActivity
* Keep utility method `getKeyboardsInfo()`
2020-04-22 16:06:54 +07:00
Darcy Wong
17db64db9f modify(android): Change "Get Started" keyboard picker
Since we're getting away from using the cloud keyboard catalog for adding keyboards, this changes the "Get Started" option "Add a keyboard for your language" to bring up the embedded keyboard search activity.
2020-04-21 21:08:10 +07:00
Darcy Wong
2be7449462 fix(android): Update minimum SDK to 21
Fixes #2989

This updates the minimum supported Android SDK to 21 (Lollipop). This applies to KMEA, KMAPro, Sample Apps, KeyboardHarness, and FV Android app.

Tests/keyCode doesn't use KMEA so no change there.
2020-04-16 11:55:00 +07:00
Darcy Wong
c0ae21d78e
Merge pull request #2984 from keymanapp/feat/android/dismiss-on-back
feat(android): Dismiss system keyboard on Back press
2020-04-15 12:40:20 +07:00
Darcy Wong
a0d1cb0307 feat(android): Only handle keyman:download from Keyman browsers 2020-04-15 09:10:02 +07:00
Darcy Wong
2f11dd8cf6 feat(android): Dismiss system keyboard on Back press
Fixes #2950

Update system keyboard to hide the OSK when Back pressed.
2020-04-14 22:39:21 +07:00