Commit graph

169 commits

Author SHA1 Message Date
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
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
e4aa24569d feat(android): Move intentional crash to temp menu 2020-03-10 09:55:17 +07:00
Darcy Wong
6e29aca0de feat(android): Have SystemKeyboard re-init Sentry as needed 2020-03-06 09:02:40 +07:00
Darcy Wong
594306032c chore(android): Cleanup commented code 2020-03-05 16:23:38 +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
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
Sandra Forberger
569d449c59 fix[android]: accidently commited 2019-11-19 11:27:43 +07:00
Sandra Forberger
2fb0d77f58 feat[android]: add update icon for landscape mode 2019-11-19 10:00:02 +07:00
Sandra Forberger
93027ae07b fix[android]: fix npe in landscape mode 2019-11-18 16:11:44 +07:00
Sandra Forberger
e63dd1dff8 feat[android]: add install updates icon 2019-11-18 15:25:08 +07:00
Sandra Forberger
fb9bdc317f feat[android]: update indicator 2019-11-18 11:12:38 +07:00
Sandra Forberger
9dac75179f feat[android] add update count indicator 2019-11-15 17:04:56 +07:00
Sandra Forberger
5fe5656bfc feat[android]: refactor resource update 2019-11-11 16:56:01 +07:00
Sandra Forberger
e7e559d9cf Merge branch 'master' into android-cleanup-downloadtasks 2019-11-08 14:30:00 +07:00
safolit
799d1b653b
Merge pull request #2275 from keymanapp/feature/keyboard-download-manager
feat(android): Feature/keyboard download manager
2019-11-08 13:40:22 +07:00
Sandra Forberger
c7a660325c feat[android]: remove old keyboard download task 2019-11-07 11:45:14 +07:00
Darcy Wong
d19aa532cb fix(android): resolve linting errors
Alpha build is failing due to linting errors. 
* Add `lint` to the build scripts so we'll catch the errors before release build

Fix the lint errors:
* Add super.onActivityResult()
* Fix TAG strings to be <= 23 characters
* Suppress `ResourceType` lint error (TODO to address when our SDK > 17)
2019-11-07 09:35:02 +07:00
Sandra Forberger
a81ceddc47 Merge branch 'master' into feature/keyboard-download-manager 2019-11-06 13:38:18 +07:00
safolit
11f75644c2
Merge pull request #2286 from keymanapp/android-custom-keyboard-readme
feat[android]: change readme page handling for custom package install
2019-11-06 08:57:25 +07:00
Sandra Forberger
ae3df3e88c fix[android]: handle silent package installation 2019-11-05 10:42:01 +07:00
Sandra Forberger
f4c99059d9 Merge branch 'master' into feature/keyboard-download-manager 2019-11-05 09:28:35 +07:00
Sandra Forberger
d9fa5132dc fix[android]: have a new button for finishing after installation 2019-11-05 09:23:08 +07:00
Sandra Forberger
d6de9e3afd feat[android]: new keyboard marker 2019-11-04 17:08:21 +07:00
safolit
f0149e2d3e
Update android/KMAPro/kMAPro/src/main/java/com/tavultesoft/kmapro/PackageActivity.java
Co-Authored-By: Darcy Wong <darcywong00@users.noreply.github.com>
2019-11-04 16:03:25 +07:00
Sandra Forberger
5fcc0ba8f2 feat[android]: change readme page handling for custom package install 2019-11-04 13:57:18 +07:00
Sandra Forberger
2badcc54a3 Merge branch 'feature/downloadManager' 2019-11-04 09:03:20 +07:00
Darcy Wong
38612745cf fix(android): Cherrypick #2255 to master
This disables predictions when system keyboard is entering a password
2019-10-30 10:19:01 +07:00
Sandra Forberger
2fdc00ebf4 remove update on startup 2019-10-28 15:40:40 +07:00
Joshua A. Horton
c4e6233570 Tweaks offline url link 2019-09-26 10:40:21 +07:00
jahorton
14288934ce Allows app to use wget-mirrored offline help 2019-09-26 09:41:53 +07:00
Darcy Wong
ce115f3aaf Use versioned help links
Fixes #1961 

Parse and use the major minor version string for online help.

* Remove unnecessary keyboard strings
2019-09-19 11:42:20 +07:00
Darcy Wong
473a7a5404 Fix missing FileProvider authority for MainActivity 2019-09-06 17:21:58 +07:00
Darcy Wong
88230622a2 Move dictionary installation to its own method 2019-09-04 10:18:37 +07:00