Commit graph

2255 commits

Author SHA1 Message Date
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
Darcy Wong
5a9cb05165 fix(android/engine): Check JS file exists in kmp
Modify packageProcessor.getKeyboardCount
2020-11-26 11:36:34 +07:00
jahorton
53d252408a fix(ios): adds null guard to refreshLayouts call 2020-11-23 14:27:58 +07:00
Joshua Horton
f24c80094b
Merge pull request #3909 from keymanapp/fix/web/engine/osk-rotation
fix(web/engine): fixes OSK rotation
2020-11-20 12:03:59 +07:00
Darcy Wong
e755e6401a
Merge pull request #3874 from keymanapp/fix/android/missing-welcome
fix(android/app): Install keyboard packages w/o welcome.htm
2020-11-20 11:39:01 +07:00
jahorton
54482e8f1f fix(web/engine): fixes OSK rotation 2020-11-20 10:35:20 +07:00
Darcy Wong
063eeaf0f5
Merge pull request #3825 from keymanapp/feat/android/kmw-sentry
feat(android/engine): Add embedded KeymanWeb engine crash reporting to Sentry
2020-11-19 20:53:13 +07:00
Darcy Wong
c55ce15a9e fix(android): Remove use of version.gradle in Sample projects
Fixes #3896
2020-11-19 13:16:04 +07:00
Darcy Wong
91dc80774f chore(android): Merge remote-tracking branch 'origin/master' into feat/android/kmw-sentry 2020-11-19 12:03:37 +07:00
Darcy Wong
aa18f31a93 feat(android/app): Add setting preference for sending crash report 2020-11-19 11:48:09 +07:00
Darcy Wong
f0fea14fd7 fix(android/engine): Add setting to enable sending crash reports 2020-11-19 10:45:03 +07:00
Darcy Wong
1fbb27a223
Merge pull request #3867 from keymanapp/fix/android/update-inapp-context
fix(android/engine): Update in-app TextView context on pageLoaded
2020-11-18 16:10:01 +07:00
Darcy Wong
e6e63106d7 chore(android): Merge remote-tracking branch 'origin/master' into feat/android/kmw-sentry 2020-11-18 14:30:56 +07:00
Darcy Wong
3299dbef20 fix(android/app): Install keyboard packages w/o welcome.htm
Fixes #3873
2020-11-17 15:51:48 +07:00
Darcy Wong
da9a50ae58 chore(android/engine): update to sentry-android:3.1.0
The migration changes the package name from `import io.sentry.core` to `import.sentry`
2020-11-16 14:05:41 +07:00
Darcy Wong
7de86a065e fix(android/engine): Update in-app TextView context on pageLoaded
Fixes #3809

This fixes the race condition where the in-app TextView would load before the in-app keyboard is loaded. The TextView would fail to get existing context.
2020-11-16 10:50:21 +07:00
jahorton
cda421a3c5 fix(android/engine): removes .eot, .woff use 2020-11-16 10:26:43 +07:00
Darcy Wong
84110fcaf7 test(android): Add test code to force KMW error 2020-11-16 09:13:01 +07:00
Darcy Wong
929ac75372 fix(android/app): Add -upload-sentry option for local KMAPro 2020-11-05 16:17:06 +07:00