Commit graph

84 commits

Author SHA1 Message Date
Marc Durdin
024a36da9f
Merge pull request #5787 from keymanapp/chore/sentry-io
chore: sentry.io dsn 👮‍♂️
2021-10-06 07:32:43 +11:00
Marc Durdin
3219b44624 chore: sentry.io dsn 2021-10-04 15:01:36 +11:00
Darcy Wong
a69c802a1e fix(android/engine): Remove ACCESS_NETWORK_STATE permission 2021-09-28 13:33:12 +07:00
Darcy Wong
d744c62c93 fix(android/engine): Remove unnecessary permissions from Manifest 2021-09-27 14:59:21 +07:00
Darcy Wong
95b3274d7e fix(oem/fv/android): Update sentry-android-gradle-plugin 2021-08-04 10:38:42 +07:00
Marc Durdin
a3ec34a3ce feat(android): Spacebar text controls
Relates to #949.

* Adds setSpacebarText() API to Keyman Engine for Android
* Adds displayName API to Keyman Engine for Android
* Adds Preference for spacebar text to Keyman for Android
* Sets default spacebar text to keyboard name for FirstVoices Keyboards
2021-06-24 10:58:26 +10:00
Marc Durdin
26aafc6afb fix(android): rotation fix for samples and FV Keyboards 2021-06-10 10:47:50 +10:00
Marc Durdin
c244eded35
Merge pull request #5175 from keymanapp/fix/common/build-script-help-param
fix(common): build script help param
2021-05-31 11:08:36 +10:00
Marc Durdin
5fac633fb6 fix(common): build script help param
When working on a new build script, I tripped over the `-?` question
mark help parameter here, as it needs to be escaped. Opted to fix all
the instances in our scripts, although AFAICT there would not have been
current bugs arising from this, as there were no conflicting one
character options lower in the case list.
2021-05-28 09:50:40 +10:00
Darcy Wong
5eaa5314ff fix(oem/fv/android): Also check key files for FV app 2021-05-26 15:18:38 +07:00
Darcy Wong
4e8fb193a0 chore(oem/fv/android): Update dependencies 2021-05-21 11:12:46 +07:00
Darcy Wong
4423ddccde fix(oem/fv/android): Migrate keyboard list from 12.0 to 14.0 2021-04-22 09:25:02 +07:00
Darcy Wong
51c6ac1658 fix(android/engine): Add divider styling 2021-03-16 20:22:07 +07:00
Darcy Wong
49af385a85 fix(oem/fv/android): Set status bar gold 2021-03-14 15:00:59 +07:00
Darcy Wong
6e3ef70554 fix(oem/fv/android): Update SetupActivity layout 2021-03-14 09:24:22 +07:00
Darcy Wong
c5fc189670 fix(oem/fv/android): Update styling for List activities 2021-03-13 22:19:42 +07:00
Darcy Wong
6a2e321306 change(android): Update theming 2021-03-13 15:44:47 +07:00
Marc Durdin
4bd2fba43f fix(android): add missing imports 2021-01-15 06:18:49 +11: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
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
bee95d9fbe fix(oem/fv/android): Sanitize Sentry navigation breadcrumbs 2020-11-30 16:20:46 +07:00
Marc Durdin
59aa301ea4 fix(oem/fv/android): tweaked check boxes
I opted to make the checkbox invisible when the step has not been
completed. This seemed to look a little clearer when I tried it.
2020-11-26 10:48:10 +11:00
Darcy Wong
752b5e98f8 fix(android/oem): Cleanup CSS
Per review comments:
* Don't upper-case button text
* Fix vertical alignment
* Use CSS to toggle opacity
2020-11-24 10:04:09 +07:00
Darcy Wong
46c8436d37 fix(android/oem): Visually disable button2 2020-11-23 14:46:01 +07:00
Darcy Wong
6bccea9303 fix(android/oem): Disable setup until language chosen
Also fix css
2020-11-23 14:36:56 +07:00
Darcy Wong
72bf1634c5 fix(android/oem): Check keyboard selected before allowing setup 2020-11-23 10:18:51 +07:00
Darcy Wong
1ad9e442aa fix(android/oem): Update Sentry library in FV app 2020-11-20 07:57:32 +07:00
Darcy Wong
9ef2cec502 chore(android): Update dependencies 2020-10-22 10:51:34 +07:00
Darcy Wong
de21237ec8 fix(android): Update sentry plugin to remove obsolete API use
Fixes #3460
2020-08-07 13:07:46 +07:00
Darcy Wong
f75187d02b fix(android): Update Gradle wrapper to 5.6.4
This updates the gradle-wrappers for KMEA, KMAPro, and FV app. Gradle version kept at 5.6.4

gradle files auto-generated with:
```
./gradlew wrapper --gradle-version 5.6.4
```
(And changing shebang to `#!/bin/bash`)
2020-08-07 08:51:01 +07:00
Darcy Wong
5d44e5451e feat(android/oem): Calculate lexical model version 2020-07-10 09:25:20 +07:00
Darcy Wong
013499c83b feat(android/oem): Update SystemKeyboard to match KMAPro
* Mostly to adjust for banner height
* Select numeric layer if applicable
* Disable predictions if entering a hidden password field
2020-07-10 08:55:53 +07:00
Darcy Wong
8bb8fe4c92 feat(android/oem): Add nrc.str.sencoten to FV app
* Update FV build to download nrc.str.sencoten.model.kmp
* Update FV app to install the model
* Rebuild active keyboards list using keyboard info from kmp.json
2020-07-10 08:55:53 +07:00
Darcy Wong
303873b64f fix(android): Add to KMManager API
Add getDefaultKeyboard() and setDefaultKeyboard() to KMManager API.
2020-07-09 10:55:41 +07:00
Darcy Wong
2e240591a3 chore(android): Address review comments
getDefaultKeyboard()
* Assert `context`is not null

setDefaultKeyboard()
* Allow null Keyboard to revert to sil_euro_latin

FV MainActivity
* Define constant for default package ID
2020-07-09 10:52:09 +07:00
Darcy Wong
3f21471739 chore(android): Merge remote-tracking branch 'origin/master' into fix/android/set-fallback-keyboard 2020-07-09 10:36:11 +07:00
Darcy Wong
ec016f850f fix(android/oem): Add a fallback keyboard to FV Android app
The FV Android app has a workflow where it's possible on a fresh install for the user to set FV as a system keyboard before checking (adding) any of the FV keyboards.

This makes the keyboard list empty, and KMManager throws an exception trying to set a keyboard.

This PR adds `Keyboard.setDefaultKeyboard()` so an app can specify a fallback keyboard. If never set, KMEA uses sil_euro_latin/sil_euro_latin.

The FV app will fall back to fv_all/sil_euro_latin
2020-07-08 16:23:07 +07:00
Darcy Wong
ef11647b5a feat(android): Use build-download-resources.sh for KMApro and FV apps
Follow-on to #3300

* Update the FV Android app to use the same build script to download its default keyboard package. (fv_all.kmp)
    * This means downloading fv_all.kmp is the only valid option for the build (remove option to copy/rebuild keyboards)
* Reduce the number of exports in the Bash scripts
* Also removes sil_euro_latin.kmp since the app will fallback to fv_all/sil_euro_latin (in a future PR)
2020-07-08 14:03:02 +07:00
Darcy Wong
58a2da05d5 chore(android): Remove google-services and update readme 2020-06-11 07:01:29 +07:00
Darcy Wong
a7ff50099e fix(android/oem): Fix Keyboard constructor to FV app 2020-05-27 22:02:14 +07:00
Darcy Wong
652136829d modify(android): Change assumptions on default keyboard
To support FV app, allow KeyboardController to remove any index.
KeyboardController also no longer initializes with a default of sil_euro_latin.
2020-05-08 21:56:19 +07:00
Darcy Wong
4e39e6c560 fix(oem): Back button to dismiss FV Android system keyboard
Bring in the changes from #2950 and #3093 to the FV Android app
2020-05-07 10:36:20 +07:00
Darcy Wong
ebfde0f70c
Merge pull request #3051 from keymanapp/fix/android/remove-more-custom
Fix/android/remove more custom
2020-05-01 15:17:14 +07:00
Darcy Wong
3cbbc00200
Merge pull request #3045 from keymanapp/fix/common/build-keyboards
fix(oem,common): Update FirstVoices build_keyboards.sh script
2020-05-01 11:05:06 +07:00
Darcy Wong
e5ae3d1d87 fix(oem): Address additional review comments 2020-05-01 08:16:43 +07:00
Darcy Wong
a004c7b7e9 fix(oem): Remove deprecated property for FV build 2020-05-01 07:40:25 +07:00
Darcy Wong
23ad0434fa modify(oem): Update DSN for FV Android app
On sentry.keymanc.om, we're moving the OEM FirstVoices Android app from  *#keyman-apps* to the *#keyman-oem-apps* team.

This PR updates the Sentry DSN accordingly
2020-04-30 08:54:09 +07:00
Marc Durdin
214bd4652e chore(windows): Merge branch 'master' into fix/windows/sentry-cleanup 2020-04-30 05:04:13 +10:00
Darcy Wong
6b53667643 fix(oem,common): Update FirstVoices build_keyboards.sh script
Incorporate changes from #3040 into oem/firstvoices/common/build_keyboards.sh

I had to include sil_euro_latin.kmp because KMManager reverts to default package ID (sil_euro_latin) on KMW exceptions.

This will also need a keyboards build of fv_all.kmp (next version 12.2 should include touch keyboards)
2020-04-29 17:16:12 +07:00
Marc Durdin
256be354ed chore: address review comments 2020-04-29 16:40:39 +10:00