Commit graph

110 commits

Author SHA1 Message Date
Marc Durdin
be7fb6c2bd
Merge pull request #7909 from keymanapp/fix/fv/view-permission
fix(oem/fv/android): Add view permission of online help
2022-12-22 07:30:57 +11:00
Darcy Wong
c9e0bf2df4 fix(oem/fv/android): Prefix the string with fv_ 2022-12-21 16:53:57 +07:00
Darcy Wong
5772d443d3 fix(oem/fv/android): Fix keyboard version title (again) 2022-12-21 15:51:54 +07:00
Darcy Wong
58899cd6b2 fix(oem/fv/android): Add view permission of online help 2022-12-15 15:04:25 +07:00
Darcy Wong
65e9e00b3a fix(oem/fv/android): Cleanup version title 2022-12-15 15:03:11 +07:00
Darcy Wong
4e71d27606 chore(android): Update Target SDK Version to 31 2022-11-18 14:50:26 +07:00
Marc Durdin
6644697eec
Merge pull request #7001 from keymanapp/fix/android/6899-verify-browser-for-links
fix(android): verify browser before starting activity
2022-08-23 17:07:51 -05:00
Marc Durdin
f90eaee6dd fix(android): add toast when browser fails to open 2022-08-23 07:41:56 +10:00
Marc Durdin
127fb3b4e0 chore(android): fixup getPackageManager ref 2022-07-27 15:59:50 +10:00
Marc Durdin
bdb7b5e45a fix(android): verify browser before starting activity
Fixes #6899.
2022-07-27 15:16:02 +10:00
Marc Durdin
767927bf16 chore(common): use /usr/bin/env bash
Fixes up scripts (except under /linux) to use `#!/usr/bin/env bash`
instead of `#!/bin/bash` or `#!/bin/sh` so that we don't end up with
the ancient version of bash supplied with macOS.

This became urgent with this PR, because of bash-4.xisms in
build-utils.sh, for example on line 572:

```
if [[ -v _builder_params[$e] ]]; then
```
2022-07-25 14:59:37 +10:00
Darcy Wong
3e2217d905 fix(oem/fv/android): Check current keyboard before registering model 2022-05-13 09:10:43 +07:00
Darcy Wong
8aadea6086 fix(oem/fv/android): Refresh menu on install 2022-03-14 08:43:10 +07:00
Darcy Wong
2b7d10718b fix(oem/fv/android): Refresh Settings menu 2022-03-14 06:56:55 +07:00
Darcy Wong
e138ca382e fix(oem/fv/android): Toggle predictions when dictionary installed 2022-03-14 06:56:55 +07:00
Darcy Wong
738b3cc08a fix(oem/fv/android): Fold model picker into Keyboard settings menu 2022-03-14 06:56:55 +07:00
Darcy Wong
1e6b4bce31 fix(oem/fv/android): Check keyboard exists before registering a model 2022-03-09 10:05:21 +07:00
Darcy Wong
04297aa47c
Update oem/firstvoices/android/app/src/main/java/com/firstvoices/android/FVKmpInstallMode.java
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-03-03 11:27:07 +07:00
Darcy Wong
3524e6c918 fix(oem/fv/android): Use BCP47 util to check language ID 2022-03-02 12:30:51 +07:00
Darcy Wong
f3c317566e fix(oem/fv/android): Make FVShared a Singleton pattern 2022-03-02 12:30:51 +07:00
Darcy Wong
d4225fa841 fix(oem/fv/android): Check prediction toggle on start of input
Copied SystemKeyboard from #2255
2022-03-02 12:30:51 +07:00
Darcy Wong
f6395e463f chore(oem/fv/android): Cleanup unused imports 2022-03-02 12:30:51 +07:00
Darcy Wong
d85af16858 feat(oem/fv/android): Add keyboard and dictionary controls 2022-03-02 12:30:51 +07:00
Darcy Wong
8c9014ced9 chore(android): Upgrade gradle-wrapper version to 6.8 2022-02-09 08:59:56 +07:00
Darcy Wong
ce1e672f10 chore(android): Update Play publishing plugin to 3.5.0 2022-02-08 08:49:37 +07:00
Darcy Wong
3dcb2ea268 chore(android): Specify build tools version on other projects
While Android Studio Gradle plugin should automatically use a default version of build tools, we can specify it:
https://developer.android.com/studio/releases/build-tools

Attempting to resolve lint exceptions on the build agent.
2021-11-29 10:57:54 +07:00
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