Commit graph

558 commits

Author SHA1 Message Date
Darcy Wong
e4aa24569d feat(android): Move intentional crash to temp menu 2020-03-10 09:55:17 +07:00
Darcy Wong
3e90edaa52 test(android): Change shouldUpdateTrueCallTest to span 2 days 2020-03-09 11:33:15 +07:00
Darcy Wong
44c25b3d6c feat(android): Don't send Sentry event for addKeyboard 2020-03-06 14:29:37 +07:00
Darcy Wong
7d635ac14e test(android): Add temporary code to force crash
This is temporary code for inducing crashes for testing Sentry with the nightly alpha build.
2020-03-06 09:12:15 +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
b3da5759ff fix(android): Fix analytic for adding keyboard 2020-03-04 13:40:14 +07:00
Darcy Wong
73ed039ed2 change(android): Revert KeyboardSettingsActivity text
Revert qrDescription
2020-03-04 11:15:54 +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
96fc9d7262 feat(android): Add Sentry to KMEA 2020-03-02 16:25:19 +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
0981d726d7 chore(android): Revert <br> formatting 2020-02-28 07:56:58 +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
8964f2d0f7 feat(android): Handle keyman protocol for downloading kmp 2020-02-26 13:05:57 +07:00
Darcy Wong
ab9488d7e8 chore(android): remove debug statement 2020-02-24 16:19:44 +07:00
Darcy Wong
1e2c3f3258 fix(android): Add null check for kbdMapList 2020-02-24 12:16:34 +07:00
Darcy Wong
e06c29b63c fix(android): Sanitize app version string for api query
Follow-on to #2319

For 14.0 alpha, the app version needs to be sanitized to #.#.# when downloading a keyboard.

This refactors the regex to KMManager.getVersion()
2020-02-23 21:42:11 +07:00
Darcy Wong
f4950cdfdb fix(android): Address review comments
* Catch specific IllegalStateException
* Replace Toast notification with `Log.e()`
* Also added a null check on the context for ResourcesUpdateTool()
2020-02-14 13:55:44 +07:00
Darcy Wong
71c32db6d3 fix(android): Add abaility to reinitialize CloudDownloadMgr
Fixes crashlytics [crash](https://console.firebase.google.com/u/0/project/kmapro-ee779/crashlytics/app/android:com.tavultesoft.kmapro/issues/ae59e122f0fac1eb6e082ddb21bb6fae?time=last-seven-days&sessionId=5E41A650017400013B04CE17115A1E88_DNE_0_v2)

There's an intermittent condition between the system notification bar showing a resource update available, the user closing the Keyman app, and the user later choosing  to update the resource.

By then, the CloudDownloadMgr may not be available to handle the download.

This makes the following change:
* When the Keyman app is closed, shutdown the CloudDownloadMgr (without destroying the InApp and System Keyboard).
* When preparing to download a resource update, re-initialize the CloudDownloadMgr as needed.
2020-02-11 16:40:55 +07:00
Darcy Wong
8c25c9950f chore(android): Update default nrc.en.mtnt.model to 0.1.4 2020-02-07 17:09:11 +07:00
Darcy Wong
57dcdf3b2b fix(android): Pass language ID to ConformDialogFragment
When cancelling the Android system notifications about lexical model update being available, the notification would still remain.

This passes the language ID so the dialog can be cancelled.
2020-01-29 16:19:09 +07:00
Darcy Wong
9fed52a743 fix(android): Revert KMManager.onDestroy
Fixes #2539

During #2326, `KMManager.onDestroy()` was updated to set `InAppKeyboard` and `SystemKeyboard` to null. While good in practice, this created  an issue when closing Keyman as a System Keyboard. Lingering Javascript calls in the WebView would crash with the null keyboards.

This reverts `onDestroy()` to how it has been since before 2.8 stable
2020-01-27 14:27:49 +07:00
Darcy Wong
c0ed81e430 fix(android): Add QR code to scrollable listview 2020-01-22 22:39:15 +07:00
Darcy Wong
e3a59ee9d2 fix(android): Remove unused padding 2020-01-22 16:17:54 +07:00
Darcy Wong
c45b3038ce fix(android): Tweak UI when update available 2020-01-22 11:28:19 +07:00
Darcy Wong
757fc7fd6d chore(android): Use cloud download icon
Per review comment, use the cloud download icon
2020-01-22 07:03:08 +07:00
Darcy Wong
c54dcc52c4 chore(android): Tweak string for downloading latest dictionary 2020-01-21 13:45:47 +07:00
Darcy Wong
b3946f6b3d fix(android): Download update to model when available 2020-01-21 12:48:52 +07:00
Darcy Wong
94306521aa fix(android): Download update to keyboard when available 2020-01-21 09:59:43 +07:00
Darcy Wong
47e0fe7ead fix(android): Update Keyboard Settings page to show cloud updates 2020-01-20 16:44:21 +07:00
Darcy Wong
0008e13098 chore(android): Update history.md
Also add newline to end of HelpFile
2020-01-10 08:35:09 +07:00
Darcy Wong
70f925e508 Merge branch 'master' into android-view-welcome 2020-01-10 08:32:35 +07:00
Darcy Wong
66f86a904c fix(android): Also use HelpFile for Model custom help link 2019-12-20 15:57:22 +07:00
Darcy Wong
c772a2dbfe chore(android): Refactor HelpFile as utility 2019-12-20 15:35:28 +07:00
Darcy Wong
6cc8a56681 fix(android): Update file provider permissions 2019-12-20 10:55:18 +07:00
Darcy Wong
8a079193fd Merge branch 'master' into android-follow-custom-link 2019-12-18 13:14:28 +07:00
Darcy Wong
e72b67248f change(android): Update nrc.en.mtnt model to 0.1.3
Cherrypick of #2389 to master
2019-12-18 12:04:22 +07:00
Darcy Wong
74b5e1a573 fix(android)
Address review comments
2019-12-18 08:57:32 +07:00
Darcy Wong
cde60e23f4 feat(android): Add QR Codes on Keyboard Info pages
Addresses Android for #1535

Add QR Codes to the keyman.com keyboard page.

If the main app doesn't include the QRGen libraries, the QR Code isn't generated/displayed.

Also update the list of dependencies in README.md
2019-12-17 15:53:34 +07:00
Darcy Wong
05f50f03f4 fix(android): Investigate propagating custom help links 2019-12-12 16:24:37 +07:00
Darcy Wong
3251f74962 fix(android): Check substring length
Cherrypick of #2444 to master to fix `StringIndexOutOfBoundsException` on [Crashlytics](https://console.firebase.google.com/u/0/project/kmapro-ee779/crashlytics/app/android:com.tavultesoft.kmapro/issues/74f8209642c77218cc473098ee294ceb?time=last-seven-days&sessionId=5DEFABD703CE000144559FADAEE45C9D_DNE_0_v2)
2019-12-12 08:58:14 +07:00
Darcy Wong
397f4f7d3a chore(android): add linewrap and update history.md 2019-12-04 20:14:32 +07:00
Darcy Wong
4b894a02df chore(android): remove unnecessary code 2019-12-04 14:31:18 +07:00
Darcy Wong
9bf644ea5e fix(android): Set preference when update is cancelled 2019-12-04 12:57:24 +07:00
Darcy Wong
2b19588c3c fix(android): Add a preference for ignoring update notifications
This is done individually per keyboard or lexical model ID
2019-12-03 16:01:40 +07:00
Darcy Wong
735633f36d chore(android): Update comment in test 2019-12-03 09:57:29 +07:00
Darcy Wong
ba99028058 Merge remote-tracking branch 'origin/master' into android-lowercase-language-id 2019-12-03 09:32:15 +07:00
Darcy Wong
1554bbda1e fix(android): Update kmp.json in test package to en-US
This updates the LexicalModelPackageProcessorTest to verify the language ID is lower-cased when processing kmp files.
2019-12-03 09:31:58 +07:00