Commit graph

1273 commits

Author SHA1 Message Date
Darcy Wong
3465e99271 chore(android/samples): Remove old sample keyboard loaded code 2021-01-22 09:40:38 +07:00
Darcy Wong
d8fbec7cd1 fix(android/samples): Add dependency on androidx.preference 2021-01-21 15:44:56 +07:00
Darcy Wong
489b13f78e
Merge pull request #4300 from keymanapp/fix/android/zip-path-traversal
fix(android/engine): Fix zip slip vulnerability
2021-01-21 09:30:01 +07:00
Darcy Wong
8a084eb603
Merge pull request #4292 from keymanapp/fix/android/4247-handle-keyman-protocol
fix(android/app): Handle keyman protocol from external browser
2021-01-20 15:49:28 +07:00
Darcy Wong
a1739b4045 fix(android/engine): Fix zip slip vulnerability 2021-01-20 15:42:22 +07:00
Darcy Wong
3f188c9b7a chore(android/engine): Add German locale 2021-01-20 09:28:15 +07:00
Darcy Wong
5d929f1c2a chore(android/app): Use list_row_layout1 to center text 2021-01-20 09:27:46 +07:00
Darcy Wong
1be5a81b0d chore(android): Merge remote-tracking branch 'origin/beta' into feat/android/set-app-locale 2021-01-20 09:05:18 +07:00
Darcy Wong
a555b4c8af chore(android/engine): Fix typo 2021-01-19 15:57:36 +07:00
Darcy Wong
a99e1121f7 chore(android): Check in crowdin files for de 2021-01-19 15:17:25 +07:00
Darcy Wong
2db8e0f698 fix(android/engine): Handle keyman://localhost link 2021-01-19 13:11:35 +07:00
Darcy Wong
c5bfb00a83 fix(android/app): Handle keyman:// protocol from external browser 2021-01-19 11:04:40 +07:00
Darcy Wong
bc85e08ba4 chore(android): Address review comments
* Remove "+" icon from display language list
* Restart the app on changing display language
* Document updating DisplayLanguages
* Misc code cleanup
2021-01-19 10:44:50 +07:00
Darcy Wong
56da04597f
Merge pull request #4267 from keymanapp/fix/android/sample-sentry-dependencies
fix(android/samples): Fix Sentry dependencies
2021-01-19 09:05:36 +07:00
Darcy Wong
e6ebc22f0b fix(android/samples): Update keyboard harness 2021-01-18 16:05:45 +07:00
Darcy Wong
3985e31381 chore(android): Cleanup whitespace 2021-01-18 14:51:39 +07:00
Darcy Wong
2f87fef4c3 fix(android/engine): Refactor BaseActivity to KMEA 2021-01-18 14:12:11 +07:00
Darcy Wong
ad25f7e127 fix(android/app): Fix Settings title and index of display language 2021-01-18 13:13:20 +07:00
Darcy Wong
1afc3347c1 fix(android/app): Use BaseActivity 2021-01-18 11:17:03 +07:00
Marc Durdin
b650f5fcd2
Merge pull request #4254 from keymanapp/fix/android/4019-popup-misalignments
fix(android): Popup misalignments and compatibility with WeChat, Telegram
2021-01-18 10:53:47 +11:00
Darcy Wong
7e740b765c fix(android/samples): Fix Sentry dependencies 2021-01-15 13:20:27 +07:00
Darcy Wong
b969bae423 feat(android/app): Add Settings menu to change display language 2021-01-15 06:44:25 +07:00
Marc Durdin
4bd2fba43f fix(android): add missing imports 2021-01-15 06:18:49 +11:00
Darcy Wong
20a2af830a chore(android): Add Obolo language from crowdin
Manually check in crowdin files from crowdin.
Can't use crowdin CLI because it doesn't handle custom langauges
https://support.crowdin.com/api/language-codes/
2021-01-14 20:10:29 +07:00
Marc Durdin
99e60559eb fix(android): Popup misalignments and compatibility with WeChat, Telegram
Fixes #4019.
Rolls back #3009 and fixes base issue in alternative manner.

The core issue here was twofold:

1. We needed to set the window size to the whole screen in order for the
   popups to visible and touchable. We implement this in
   `onConfigureWindow`.
2. Once our window size is the whole screen, we need to tell the apps
   which part of the window is our keyboard UI, in `onComputeInsets`.
   This is the only part of the window which impacts the layout of the
   underlying app. We had not set the `visibleTopInsets` property and
   this caused the WeChat problems.

Finally, in order for this to work, we roll back the original fix
in #3009 as that one breaks the full-screen layout requirement.

Tested with a wide range of apps on Android 10, including WeChat and
Telegram. If @kienwt, @ericjding have capacity, would love to know if
this fix works for them also.

Note that this fix requires changes to consumers of Keyman Engine, so
sample and FV Keyboards updated accordingly.
2021-01-14 17:05:31 +11:00
Darcy Wong
e2d4388506
Merge pull request #4228 from keymanapp/common/crowdin-km
chore(common): Check in crowdin files for km (Khmer)
2021-01-14 08:13:29 +07:00
Darcy Wong
3742bb4a0a chore(android): Check in crowdin files for km 2021-01-08 14:56:50 +07:00
Darcy Wong
7596d393da fix(android): Address review comments 2021-01-06 14:31:43 +07:00
Darcy Wong
15cd8aa333 chore(android/engine): Cleanup comments 2020-12-18 09:14:23 +07:00
Darcy Wong
cf5dd4c114 change(android/engine): Rename to DownloadFileUtils 2020-12-18 09:07:19 +07:00
Darcy Wong
013e9a6187 fix(android/engine): Remove WRITE_EXTERNAL_STORAGE permission
Refactor how DownloadManager files are handled:
* File gets copied to cache
2020-12-17 17:01:39 +07:00
Darcy Wong
18c537fc34 fix(android/engine): Don't use external storage for cloud downloads 2020-12-16 20:28:54 +07:00
Marc Durdin
9798f86b16 chore(android): rework versionCode system
We now generate a versionCode directly from the release version number,
and this is what we use for Google Play Store to ensure that we have
an always-incrementing version number.
2020-12-15 06:31:01 +11:00
Darcy Wong
26b08bba65 fix(android/app): Guard against downloading the same kmp twice 2020-12-07 15:27:02 +07:00
Darcy Wong
4506aa316f fix(android/app): Change UX to finish package installation 2020-12-07 13:29:48 +07:00
Darcy Wong
3cf6f38b9e fix(android/engine): Add API for enabling/disabling keyboard picker 2020-12-07 12:59:26 +07:00
Joshua Horton
195b4d0be0
Merge pull request #4072 from keymanapp/fix/common/core/web/predictive-context-reset
fix(common/core/web): predictive context reset
2020-12-04 15:24:59 +07:00
Joshua Horton
340220642c
fix(android): Update android/KMEA/app/src/main/assets/keyboard.html
Co-authored-by: Marc Durdin <marc@durdin.net>
2020-12-04 12:44:36 +07:00
Joshua Horton
6d59ada87b
fix(android): Update android/KMEA/app/src/main/assets/keyboard.html
Co-authored-by: Darcy Wong <darcywong00@users.noreply.github.com>
2020-12-04 12:10:33 +07:00
Darcy Wong
bc9cd05bdf fix(android/engine): Log Sentry error when falling back keyboard 2020-12-04 11:08:13 +07:00
Darcy Wong
ec8eac9e47 fix(android/engine): Remove Sentry log about fallback keyboard 2020-12-04 10:43:18 +07:00
jahorton
fcc1eae8a5 fix(common): context reset on embedded caret shift 2020-12-04 10:22:10 +07:00
jahorton
349d45c573 fix(android/engine): related Android changes 2020-12-04 08:42:52 +07:00
Darcy Wong
54b3063c8b chore(android/app): Revert #4025
Since Sentry navigation breadcrumbs are handled by embedded KMW sentry-manager, the sentry-android change in #4025 needs to be reverted.
2020-12-04 08:05:00 +07:00
Darcy Wong
25084928a1
Update android/KMAPro/kMAPro/src/main/java/com/tavultesoft/kmapro/MainActivity.java
Incorporate suggestion

Co-authored-by: Marc Durdin <marc@durdin.net>
2020-12-01 07:59:25 +07:00
Darcy Wong
b1f922363f fix(android/app): Sanitize Sentry navigation breadcrumbs 2020-11-30 16:03:40 +07:00
Darcy Wong
e067e836fb fix(android/engine): More cleanup from review comments 2020-11-27 12:33:40 +07:00
Darcy Wong
73879bd64e fix(android/engine): Count the number of keyboard ID's with matching JS 2020-11-27 07:47:04 +07:00
Darcy Wong
2e29f117df fix(android/app): Finish packageActivity on Toast errors
This stops the activity from generating the Stepper navigation on failed keyboard installs
2020-11-26 12:38:42 +07:00
Darcy Wong
967ec86889 fix(android/app): Check touch keyboard and language count 2020-11-26 11:36:34 +07:00