Commit graph

58 commits

Author SHA1 Message Date
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
8c9014ced9 chore(android): Upgrade gradle-wrapper version to 6.8 2022-02-09 08:59:56 +07:00
Darcy Wong
e0ef491cdd
Update android/Samples/KMSample2/build.sh
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-01-06 06:59:45 +07:00
Darcy Wong
97c2a61870 chore(android): Add no-daemon flag to build script 2022-01-05 14:59:31 +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
Darcy Wong
973a2d3f86 chore(android): Remove runConfigurations.xml files 2021-08-09 17:17:26 +07:00
Darcy Wong
92c5e5d884 chore(android): Update sentry-android-gradle-plugin 2021-08-04 11:10:35 +07:00
Marc Durdin
26aafc6afb fix(android): rotation fix for samples and FV Keyboards 2021-06-10 10:47:50 +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
6db8cea05b chore(android/samples): Update dependencies for Sample projects
Also update targetSDKVersion to 30
2021-05-21 10:54:30 +07:00
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
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
7e740b765c fix(android/samples): Fix Sentry dependencies 2021-01-15 13:20:27 +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
c55ce15a9e fix(android): Remove use of version.gradle in Sample projects
Fixes #3896
2020-11-19 13:16:04 +07:00
Darcy Wong
9ef2cec502 chore(android): Update dependencies 2020-10-22 10:51:34 +07:00
Darcy Wong
5369d85d86 test(android): Update Sample and Test Projects to use Keyboard syntax
Also rebuild keyboardharness.kmp to set version for chirality.js
2020-06-05 11:03:49 +07:00
Darcy Wong
367b395021 feat(common): Add Tamil lexical model to KMSample2 2020-05-13 15:40:27 +07:00
Darcy Wong
bb0e286950 fix(android): Back button to dismiss KMSample2 system keyboard 2020-05-07 10:13:42 +07:00
Marc Durdin
214bd4652e chore(windows): Merge branch 'master' into fix/windows/sentry-cleanup 2020-04-30 05:04:13 +10:00
Marc Durdin
b12baab1c5 fix(android): link VERSION_ENVIRONMENT 2020-04-28 15:56:56 +10:00
Darcy Wong
2be7449462 fix(android): Update minimum SDK to 21
Fixes #2989

This updates the minimum supported Android SDK to 21 (Lollipop). This applies to KMEA, KMAPro, Sample Apps, KeyboardHarness, and FV Android app.

Tests/keyCode doesn't use KMEA so no change there.
2020-04-16 11:55:00 +07:00
Darcy Wong
152168ba8c modify(android): Update sample and test projects to install asset kmp's
Follow-on to #2928 for KMSample1, KMSample2, and keyboardharness projects.

For KMSample1 and KMSample2, also changed keyboard from deprecated legacy [tamil99m](https://keyman.com/keyboards/tamil99m) to release [basic_kbdtam99]
(https://keyman.com/keyboards/basic_kbdtam99).

For Keyboardharness, manually assembled keyboards into a package.
2020-04-02 10:26:48 +07:00
Darcy Wong
25fdd3d150 fix(android): Update min SDK versions for sample apps 2020-03-23 09:00:48 +07:00
Darcy Wong
05869c3008 change(android): Replace fabric with sentry in other apps 2020-03-02 22:08:13 +07:00
Darcy
daf2122ef1 fix(linux): Fix builds for Sample and Test apps
* Fix version path for KMSample1
* Add executable bit for KeyboardHarness build.sh
2020-02-18 08:48:35 +07:00
Marc Durdin
255e4f4b7a chore: Merge branch 'master' into chore/beta-to-master-p9s2-1 2020-02-17 10:11:15 +11:00
Darcy Wong
7cf9b13856 change(android): Update app dependencies
#2640 fixed the FirstVoices OEM app from crashing on Android 5.0 devices.

This applies the same fix (updating to `androidx.appcompat:appcompat:1.2.0-alpha02`) for all the other Android apps.

* Also fix up history.md entries
2020-02-13 09:10:05 +07:00
Marc Durdin
4ebd2d9f24 chore(android): versionCode as Integer 2020-01-29 12:19:07 +11:00
Marc Durdin
742aee39d7 chore(android): use new version infrastructure 2020-01-29 08:55:19 +11:00
Darcy Wong
5048b5ff8d fix(android): Update sample project to include dictionary 2019-11-22 10:56:22 +07:00
Darcy Wong
46c6c2d28f fix(android): Update build dependencies for Sample and Test projects 2019-11-20 11:08:18 +07:00
Darcy Wong
10f43eec76 Update dependencies again
Android Studio is warning  a call (from Firebase) will be deprecated end of 2019. This updates the versions of
* Frebase
* Gradle from 4.10.1 to 5.1.1

Also stubs a missing keyboard event handler in some of the sample/test projects.
2019-04-24 14:26:40 +07:00
Darcy Wong
ae68c483a7 Update dependencies
* Update compile/target SDK version from 27 to 28
*  Migrate appcompat namespace (See https://developer.android.com/jetpack/androidx/migrate)
2019-03-06 16:20:26 +07:00
Darcy Wong
7ed0547084 Update minimum SDK level from 15 to 16 2019-01-14 11:31:30 +07:00
Darcy Wong
ab1994ae02 Fix KMSample2 2018-10-31 16:11:43 +07:00
Darcy Wong
bfb784c933 Allow system "globe button" to change keyboards 2018-10-31 16:11:43 +07:00
Darcy Wong
544a58c151 Add Material Design 2018-09-19 13:46:03 +07:00
Marc Durdin
6291ad83fc Fixes #968. Platform tests on Android now give correct results for hardware keyboard. Partial fix for #966 (hardware keyboard in Chrome emulator). 2018-06-08 13:30:32 +07:00
darcywong00
e03baaff29 Update compile SDKVersion from 25 to 27
Fixes #750 

Currently, Keyman for Android targets SDK version 25 (Nougat). 

This PR targets  the latest Android API and updates all the Gradle dependencies to the latest. This will remove some lint Obsolete warnings.

Sample and Test projects needed to add 
```
implementation 'com.android.support:support-v4:27.1.1'
```
to ensure all dependencies use the same version.
2018-05-10 08:02:09 +07:00
darcywong00
90246a72e6 [Android] Use BCP-47 codes for registering keyboards 2018-02-21 22:00:21 +07:00
darcywong00
32853aa162 Add Crashlytics dependencies to Samples and Test projects
Consumers of KMEA need to include Firebase and Crashlytics dependencies, but don't need to run the Google services. This simplifies these projects of not neeeding google-services.json.

Also added `-no-daemon` and `-debug` options to Samples and Test `build.sh` scripts so they can be run on CI servers.
2018-02-15 14:02:59 +07:00
darcywong00
686bb50bc0 Stop warnings being reported during CI builds
-Also updated link to logo2 and copyright date in root readme
2018-02-01 10:35:48 +07:00
darcywong00
690e69b460 Cleanup Samples and KeyboardHarness
Fix MainActivity to include `onPackageInstalled`.
Also fixed font formatting in KMKeyboard
2018-01-22 20:50:18 +07:00
darcywong00
534597051f Move keyboard assets for Samples and Test projects 2018-01-17 16:36:30 +07:00
darcywong00
4787245808 Round 1 of adding feature for ad-hoc keyboard distribution via kmp 2018-01-17 10:58:25 +07:00
darcywong00
fa772a057d Add commented code for default font
help.keyman.com [in-app guide](http://help.keyman.com.local/developer/engine/android/guides/in-app/)  refers to setting default keyboard font
2017-12-15 13:42:06 +07:00
darcywong00
82f78f005c Document why removeKeyboardDownloadEventListeners are removed
Calls to `removeKEyboardDownloadEventListener()` are removed to ensure `onKeyboardDownloadFinished()` gets called
2017-12-15 10:24:40 +07:00