Commit graph

278 commits

Author SHA1 Message Date
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
Darcy Wong
406428a1d5 feat(android): Also download dictionary after installing keyboard package 2020-04-14 13:50:58 +07:00
Darcy Wong
32f272ebc7 fix(android): Address more review comments
* Remove handling deprecated keyman:// protocol
* Pass original URL
* lower-case BCP 47 tag when checking for match
* Clean up logic nesting in KMPBrowserActivity
2020-04-09 11:03:50 +07:00
Darcy Wong
e8d7615a78 feat(android): Pass language ID to keyboard search 2020-04-07 17:16:28 +07:00
Darcy Wong
f7f73e0ef2 feat(android): Use https://keyman.com/keyboards/ to add keyboards 2020-04-07 15:31:54 +07:00
Darcy Wong
c532e74c1f feat(android): Update WebBrowserActivity to handle keyman:download 2020-04-07 12:30:28 +07:00
Darcy Wong
0219f9ad68 chore(android): Make data a private instance variable
Some code cleanup to address PR comments
2020-04-07 06:45:24 +07:00
Darcy Wong
a084c92456 feat(android): Handle keyman:download scheme for deep linking 2020-04-06 20:39:11 +07:00
Darcy Wong
984d907c92 fix(android): Add check for WRITE_EXTERNAL_STORAGE permissions 2020-04-04 15:37:47 +07:00
Darcy Wong
349246a0d7 chore(android): Document rationale for appending to url 2020-04-03 17:26:26 +07:00
Darcy Wong
a21078327b feat(android): Propagate languageID when downloading kmp
This updates how the Keyman app handles URLs for downloading kmp files (in preparation for keyboard picker revamp).

If the URL contains "language" or "platform", those values are propagated for when the kmp gets downloaded.  The "languageID" is then used during kmp installation.

Also fixed a few things with URL handling:
* Catch UnsupportedOperationException if the original URL has invalid query parameters
* Handle DownloadIntentService fails

### User Testing:
Load the Keyman app.
Open a Chrome browser and go to the link:
```
keyman://?filename=sil_cameroon_qwerty.kmp&url=https://keyman.com/keyboard/download?id=sil_cameroon_qwerty&language=bbj-Latn&platform=android
```

The KMP should install and use the specified `bbj-Latn` language (Ghomálá').
Normally, sil_cameroon_qwerty defaults to `aal` (Afade).
2020-04-03 14:37:53 +07:00
Darcy Wong
e2155605ae feat(android): Add utility to get lexical model package version 2020-04-01 06:01:21 +07:00
Darcy Wong
03799ded94 modify(android): Install default asset kmp's 2020-03-31 14:32:34 +07:00
Darcy Wong
a9889d51b4 modify(android): move default kmp packages to KMAPro 2020-03-31 11:59:17 +07:00
Darcy Wong
975821d510
Merge pull request #2816 from keymanapp/feat/android/rtl
feat(android): Start adding RTL to layouts
2020-03-13 08:07:31 +07:00
Darcy Wong
906c7195f0 fix(android): Add layout_marginStart to activity_web_browser 2020-03-13 08:06:10 +07:00
Darcy Wong
fa082bd6a7
Merge pull request #2810 from keymanapp/fix/android/revert-crash-menu
feat(android): Additional Sentry integration
2020-03-13 07:37:42 +07:00
Darcy Wong
d2add9d061 feat(android): Start adding RTL to layouts 2020-03-12 13:53:57 +07:00
Darcy Wong
eb918fe09b feat(android): Enable psudeo locale
To support RTL, this enables the pseudolocales **English (XA)** and **AR (XB)**
2020-03-12 11:58:04 +07:00
Darcy Wong
69bbc73971 feat(android): Additional Sentry integration
Revert intentional crash from #2778

Now that the call stack in Sentry is tested on Release build
http://sentry.keyman.com/organizations/keyman/issues/61/?project=7

The temporary menu to generate the intentional crash can be removed.

Also disable monitoring Application Not Responding (ANR)
2020-03-11 14:00:27 +07:00
Darcy Wong
c44a7c0113 fix(android): Ignore missing quantity for kmapro 2020-03-10 14:52:47 +07:00
Darcy Wong
61dabf63a5
Merge pull request #2778 from keymanapp/feat/android/sentry
feat(android): Start of Sentry-based crash reporting
2020-03-10 10:06:31 +07:00
Darcy Wong
e4aa24569d feat(android): Move intentional crash to temp menu 2020-03-10 09:55:17 +07:00
Darcy Wong
524c2d4981 feat(android): Update additional main app strings for crowdin 2020-03-09 13:17:58 +07:00
Darcy Wong
6e29aca0de feat(android): Have SystemKeyboard re-init Sentry as needed 2020-03-06 09:02:40 +07:00
Darcy Wong
70b60bb852 feat(android): more cleanup and update FV app 2020-03-05 16:55:23 +07:00
Darcy Wong
594306032c chore(android): Cleanup commented code 2020-03-05 16:23:38 +07:00
Darcy Wong
5a7b603698 feat(android): Cleanup unnecessary parts for symbols 2020-03-05 16:15:50 +07:00
Darcy Wong
b241f0b0fe feat(android): Add an event in SystemKeyboard
Also fix debug variant of KMEA
2020-03-05 14:22:54 +07:00
Darcy Wong
36bee5838d Merge remote-tracking branch 'origin/master' into feat/android/sentry 2020-03-05 11:04:39 +07:00
Darcy Wong
863eb261c1 feat(android): Continue to try to include debug symbols 2020-03-05 11:03:53 +07:00
Darcy Wong
c774969746 Merge branch 'master' into feat/android/cleanup-strings 2020-03-04 10:55:45 +07:00
Darcy Wong
078af940c5 change(android): Move isCustom to FileUtils.isCustomKeyboard() 2020-03-04 10:25:24 +07:00
Darcy Wong
ce21a88b5c feat(android): Add breadcrumb for keyboard analytics 2020-03-02 21:19:37 +07:00
Darcy Wong
cfc85771a5 feat(android): Address review comments 2020-03-02 13:35:35 +07:00
Darcy Wong
b93923ee53 modification(android): Remove firebase references 2020-02-28 17:07:40 +07:00
Darcy Wong
e49583e088 feat(android): Start adding Sentry SDK 2020-02-28 16:24:48 +07:00
Darcy Wong
11a69f5506 chore(android): Cleanup KMAPro strings 2020-02-27 19:55:09 +07:00
Darcy Wong
9bb6806b14 chore(android): Cleanup KMEA strings
Clean up strings per
https://support.crowdin.com/file-formats/android-xml/#custom-attributes and
https://developer.android.com/guide/topics/resources/string-resource#Plurals
2020-02-27 19:11:32 +07:00
Darcy Wong
255d4c7921 chore(android): remove commented code 2020-02-26 13:15:11 +07:00
Darcy Wong
8964f2d0f7 feat(android): Handle keyman protocol for downloading kmp 2020-02-26 13:05:57 +07:00
Marc Durdin
255e4f4b7a chore: Merge branch 'master' into chore/beta-to-master-p9s2-1 2020-02-17 10:11:15 +11:00
Darcy Wong
7cf9b13856 change(android): Update app dependencies
#2640 fixed the FirstVoices OEM app from crashing on Android 5.0 devices.

This applies the same fix (updating to `androidx.appcompat:appcompat:1.2.0-alpha02`) for all the other Android apps.

* Also fix up history.md entries
2020-02-13 09:10:05 +07:00
Darcy Wong
b66770fcd2 change(android): Update in-app help
Info content for 13.0 auto-generated by `build-help.sh` script.
2020-02-12 11:33:40 +07:00