Commit graph

36 commits

Author SHA1 Message Date
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
7cebde445f Fix keycode test project 2019-03-06 21:36:38 +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
Joshua A. Horton
ba769e67c3 Merge branch 'beta' into p5s2-merge 2019-02-04 21:02:15 +07:00
Darcy Wong
7ed0547084 Update minimum SDK level from 15 to 16 2019-01-14 11:31:30 +07:00
Joshua A. Horton
600939b573 Refactors hardware keystroke processing, moves it to Processor module. 2019-01-14 09:50:22 +07:00
Joshua A. Horton
2ef001f30f Moves keycode constants to their own file, starts 'text' namespace. 2019-01-11 12:27:06 +07:00
Joshua A. Horton
6e92f069a1 Fixes Android's copy of chirality.js. 2019-01-10 15:20:16 +07:00
Darcy Wong
b697ed5ed7 Update Tests
* Fix KeyboardHarness to compile
* Add keycode app for debugging `keyCode` and `scanCode` output from physical keyboards (app doesn't use KMEA)
2018-10-30 14:23:38 +07:00
darcywong00
007b420e9e Move "edge" platform test with other browsers
Follow-on to #969

This updates the platformtest.kmn keyboard 
and moves `edge` from `[K_O]` (OS) to `[K_Y]` (browsers)
2018-06-19 07:12:56 +07:00
Marc Durdin
27c565b0e2 Reworked several aspects of platform constraints esp. regarding unknown constraints. Rewrote keyboard and spreadsheet to facilitate testing more reliably. 2018-06-11 15:07:55 +07:00
Marc Durdin
8649bd486e Renamed platformtest for Android 2018-06-11 07:31:44 +07:00
Marc Durdin
f8427c3f48 Add platformtest.js to Android test harness 2018-06-08 15:57:02 +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
82f78f005c Document why removeKeyboardDownloadEventListeners are removed
Calls to `removeKEyboardDownloadEventListener()` are removed to ensure `onKeyboardDownloadFinished()` gets called
2017-12-15 10:24:40 +07:00
darcywong00
911a254966 Move KMSamples and KeyboardHarness assets
PR #456 changed internal folder locations for KMEA and kmapro. This PR continues the renames for the Sample and Test projects
2017-12-04 11:42:07 +07:00
Joshua Horton
0ac1377d76 Merge branch 'master' into web-349-core-refactoring 2017-11-13 13:05:52 +07:00
darcywong00
3ea672edc5 Fix remaining references to keymanweb, and test chirality keyboard 2017-10-31 21:26:40 +07:00
darcywong00
ff41c7e446 Update to Android Studio and Gradle 3.0
Per Android Studio 3.0 [Release Notes](https://android-developers.googleblog.com/2017/10/android-studio-30.html)

-Update gradle version
-Change deprecated `compile` dependencies to `implementation` or `api`
-Change maven repositories to google (triplet plugin still on maven)
- Update readme instructions for using the engine
2017-10-30 14:51:24 +07:00
darcywong00
0c560f308b Fix osk.defaultKeyOutput to handle characters beyond U_FFFF
`String.fromCharCode()` has a limitation to Unicode characters in the BMP. Change to `String.kmwFromCharCode()` to handle entire Unicode range.

Also clarified how default key codepoints are processed.

KeyboardHarness changes:
- Change text area font on keyboard change
- Added U_10481 to test longpress keyboard.
- Remove test tchad keyboard
2017-10-17 13:21:30 +07:00
darcywong00
ca89f90b86 Document which Unicode control codes are suppressed
Update comments explaning how control codes U_0000 to U_001F and U_0080 to U_009F are suppressed.

Also updated longpress test keyboard to test control codes.
2017-10-16 17:24:25 +07:00
darcywong00
cdd75ccf5f Refactor longpress logic so key text is not confused with key code
A tchad keyboard has a diacritic rule that converts `=` (U_003D) into a combining macron (U_0304).
A longpress on `»` (U_00BB) was inadvertently triggering the diacritic rule, and outputting the macron.

The longpress code in KMEA and KMW needs to be refactored so they dont confuse key text (U_00BB is decimal 187) with underlying keyCodes (`=` is keyCode 187).

- fix KMW executePopupKey so key code is dictionary lookup instead of parsing the keyID.
- clean up JS call to executePopupKey since it only uses the keyID
2017-10-12 14:21:29 +07:00
darcywong00
f06c727e51 Refactor longpress text when it's generated by Id
Currently on the touch layout, longpress for K_SPACE causes the app to crash because it is attempting to parse `K_SPACE` as an int for generating the longpress text.

- Clean up when key text is empty how it is parsed from Id
-Change Unicode hex string delimiter from `,0x` to `\\u` which makes it easier to read `executePopupKey()` in the logs.
2017-10-09 09:04:30 +07:00
darcywong00
3a30d23684 Clean up TestHarness
Fix onKeyboardChanged signature
2017-10-04 10:33:16 +07:00
darcywong00
d66f52b350 Update Samples and Tests projects for handler API change
Updates to new onKeyboardChanged signature

Also incorporated external keyboard support to KMSample2
2017-10-04 10:33:16 +07:00
darcywong00
f9f3dc7449 Document bitmasks and undo getActiveKeyboard refactor
* Document shift states and lock states in kmembedded.js, and standardize `lstates` parameter name
* Leave getActiveKeyboard() refactor as a TODO
2017-10-04 10:33:16 +07:00
darcywong00
353f09084e Change chirality test app to keyboardHarness
Per review comments
* Rename chirality to keyboardHarness
* Change namespace to com.keyman.android.tests.keyboardHarness
* Add readme.md for info
2017-10-04 10:33:16 +07:00
darcywong00
3a0ee92381 Move test chirality keyboard to new Tests/Chirality project
-Update KMEA to copy keyman-engine.aar to Tests/ for future test apps to consume.
2017-10-04 10:33:16 +07:00