Commit graph

206 commits

Author SHA1 Message Date
Marc Durdin
ed59ff1a35
Merge branch 'beta' into platform-fixes-965-966-968-896 2018-06-12 10:50:40 +07:00
Marc Durdin
f6cccbc8cc Update history 2018-06-12 10:49:25 +07:00
Marc Durdin
fb430c2c1a
Merge pull request #969 from keymanapp/platform-fixes-965-966-968-896
[Windows][Android][Web] Platform statement consistency fixes
2018-06-11 23:16:00 +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
darcywong00
9129e1b324 Fix PR number in history.md 2018-06-10 07:03:26 +07:00
darcywong00
931bcdd5ca Consolidate "Info" views
Fixes #960

Previously, the InfoActivity was displaying the app version in one view, and launching the help content in another Activity.
2018-06-10 06:58:58 +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
af1b08d041 Update PR number 2018-06-05 13:22:02 +07:00
darcywong00
393ca2d336 Fix globe button for system keyboard
Fixes #913

In #848, we used [webView.pauseTimers()](https://developer.android.com/reference/android/webkit/WebView#pauseTimers()) to disable JavaScript for transitioning between in-app and system keyboards. Unfortunately, `pauseTimers()` globally affects all the WebViews, breaking the globe button in system keyboards.

(This worked going from the Keyman app to in-app browser because the browser "resumed" its keyboard)

Solution is removing calls to `pauseTimers()`.
2018-06-05 13:19:53 +07:00
darcywong00
8f8e95d479 Improve intent-filter for file scheme
Fixes #902

Update the intent-filter for file scheme (based on BloomReader's [AndroidManifest.xml](https://github.com/BloomBooks/BloomReader/blob/master/app/src/main/AndroidManifest.xml))
2018-05-26 21:15:05 +07:00
Marc Durdin
234825ab08 Update history.md for all release tags on all platforms as of today 2018-05-18 13:06:55 +07:00
Darcy Wong
217ffcd3be
Merge branch 'beta' into android-exit-browser 2018-05-10 11:52:27 +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
b2d1818f5f Add additional check
Fixes startup condition where in app keyboard wasn't rendering because it was paused by the "Getting Started" dialog.
2018-05-09 14:03:42 +07:00
darcywong00
e2a33d1577 Handle pausing/resuming keyboard webView timers
Updated `KMManager` to handle `pauseTimers()` and `resumeTimers()` for in-app and system keyboards. This fixes the globe button when transitioning from the WebBrowser activity back to the Main activity.

Also fixed KMKeyboard to return empty string when `txtFont` is empty (and not return a root path)
2018-05-09 14:03:42 +07:00
darcywong00
d4e927ac4a Make distinct webView IDs 2018-05-09 14:03:42 +07:00
darcywong00
44aec2944b Start cleaning up console log
Fixes #748

* Remove nearly all uses of `Log.d()`
* Disable `window.console.log()` calls in `keyboard.html`
2018-05-08 10:50:15 +07:00
darcywong00
b88df8f973 Update history 2018-05-07 14:53:07 +07:00
darcywong00
c593a45e7d Update string handling for PackageProcessor
Fixes #819

* If package version undefined, use "1.0"
* Keyman Developer won't allow undefined package name, but just in case return package ID from the filename
* Check for null before String.toLowerCase()
* Added package processor test for undefined version
2018-05-07 14:47:11 +07:00
darcywong00
15dff6a392 Merge branch 'beta' into android-osk-304 2018-04-27 12:59:14 +07:00
darcywong00
b44ce5edda Fixes #786
Fixed call for finishing activity when cancelling keyboard download dialog
2018-04-27 11:39:38 +07:00
darcywong00
d1dadcc381 Revert to original background-color styling 2018-04-26 14:49:18 +07:00
darcywong00
7fcc6018f3 Fix OSK missing keys on older Android configurations
This fixes #304

Reference: https://jira.appcelerator.org/browse/TIMOB-16358

Older versions of WebView have an issue with transparent/gradient backgrounds. The symptom was the OSK slowly loading keys individually, and having the OSK be missing keys.

A workaround fix is styling the body `background-color` alpha to 1.0.

## Testing configuration
* Android API level 22
* Nexus One emulator
* French-French keyboard
2018-04-25 16:05:39 +07:00
darcywong00
e582632c97 Disable text suggestions in app text field 2018-04-24 16:25:08 +07:00
darcywong00
cfdb2b6591 Hide system OSK when resuming Keyman app
This handles all transitions where an external app/dialog using the system OSK returns to the Keyman app such as resuming:
* from WebBrowserActivity
* from Android Oreo's "Add to dictionary" dialog
2018-04-24 13:41:23 +07:00
darcywong00
0d2c951265 Tweak back button for WebBrowserActivity
This is a follow-on to #220 that fixed  2 OSK that were appearing when exiting WebBrowserActivity.

* If navigation is possible, backButton navigates back.
* Hide the system OSK so returning to Keyman app won't have 2 keyboards visible

Also ignore build_file_checksums file that Android Gradle 3.1 generates.
2018-04-11 21:54:04 +07:00
darcywong00
aeef50ec94 Adjust build counter 2018-03-22 10:26:45 +07:00
darcywong00
48812184b8 Update Android history.md for 10.0 beta 2018-03-22 09:49:50 +07:00
darcywong00
11d24bf2a6 Add more info
Add prereqs to Android readme, and mention KMW for ios readme
2018-03-20 19:39:40 +07:00
darcywong00
f25300644f Update Android info in-app content for 10.0 2018-03-20 16:03:59 +07:00
darcywong00
cb5e05118d Update android and iOS readme.md for KMW prereqs 2018-03-20 15:10:29 +07:00
darcywong00
ce1781124a Change parameter names for Firebase logging
The `.` character isn't allowed in parameter names passed to Firebase analytics. This was flagging Firebase errors when trying to view the events in the Firebase console.

Replacing `cm.` with `cm_` works. (cm is just the naming convention I used for JS ConsoleMessage properties)
2018-03-16 13:07:14 +07:00
darcywong00
f482aba0f7 Log KMW console error to crashlytics 2018-03-09 08:58:09 +07:00
darcywong00
8e844149e1 Fix path of special OSK font used for longpress of special keys 2018-03-01 14:41:02 +07:00
Darcy Wong
94d2eb52db
Merge pull request #628 from keymanapp/android-increase-connection-timeout-575
Change connection timeout from 10 to 20 sec
2018-02-27 14:28:00 +07:00
darcywong00
ba1d010867 Change connection timeout from 10 to 20 sec 2018-02-26 22:32:07 +07:00
darcywong00
46d9eba5c1 Only passKFont and KOskFont to KMW if they are defined
Per PR review comment, only defined fonts are added to the JSON object going to `kbdInterface.registerStub()`
2018-02-26 14:47:42 +07:00
darcywong00
26f3e52a16 Fix undefined fonts that get passed to KMW
Clean up font parsing so undefined fonts get passed to KMW as `undefined`, and not `'undefined'`.
2018-02-26 12:04:02 +07:00
Darcy Wong
4710db3c56
Merge pull request #616 from keymanapp/web-check-api-endpoints-for-bcp47
[Web] Check API endpoints for BCP-47
2018-02-22 14:24:31 +07:00
Darcy Wong
25ea50472b
Merge pull request #612 from keymanapp/android-material-icons
[Android] Add Material Design icons
2018-02-22 10:57:27 +07:00
darcywong00
90246a72e6 [Android] Use BCP-47 codes for registering keyboards 2018-02-21 22:00:21 +07:00
darcywong00
3d12eb07b8 Update build.sh so CI monitors JUnit test results 2018-02-20 08:52:45 +07:00
darcywong00
4807abfeb4 Replace some menu icons 2018-02-18 23:51:43 +07:00
darcywong00
77257739ed Update history.md 2018-02-18 20:51:58 +07:00
darcywong00
bd36179c4b Update hdpi navigation_cancel 2018-02-18 16:22:55 +07:00
darcywong00
beb886bf40 Update drawable-hdpi 2018-02-18 15:58:35 +07:00
darcywong00
76a3242676 Update drawable-mdpi 2018-02-18 15:45:54 +07:00
darcywong00
c12e82f351 Update drawable-xxhdpi 2018-02-18 15:30:04 +07:00