Commit graph

15 commits

Author SHA1 Message Date
Darcy Wong
5ef503c3ce fix(android/engine): Increase robustness when handling package kmp.json 2024-10-22 10:06:43 +07:00
Darcy Wong
a1739b4045 fix(android/engine): Fix zip slip vulnerability 2021-01-20 15:42:22 +07:00
Darcy Wong
11ae726afa fix(android/engine): Revise updateOldKeyboardsList 2020-06-07 09:37:26 +07:00
Darcy Wong
f504bf302c fix(android): start to address review comments 2020-05-18 10:45:12 +07:00
Darcy Wong
1554bbda1e fix(android): Update kmp.json in test package to en-US
This updates the LexicalModelPackageProcessorTest to verify the language ID is lower-cased when processing kmp files.
2019-12-03 09:31:58 +07:00
Darcy Wong
0dfa315844 fix(android): Add unit tests 2019-12-03 08:41:00 +07:00
Darcy Wong
ba86d1b84d Extend PackageProcessor to handle .model.kmp
* Create LexicalModelPackageProcessor to handle lexical model packages
* Cleanup PackagePrcessor so less utility methods unzip/parse
* Update FileUtils to handle .model.kmp extension
2019-02-27 12:01:36 +07:00
Darcy Wong
36b2261cbe Start merging language/keyboard info 2019-01-17 22:49:54 +07:00
Darcy Wong
19cf116684 Start processing kmp.json to determine existing language/keyboard pairs 2019-01-17 22:49:54 +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
c85e5991e6 Display welcome.htm for keyboard information
For keyboards installed via keyboard packages, use the welcome.htm if it exists for keyboard information

- Update PackageProcessorTest to include CustomHelpLink info

- Renamed Welcome.htm to welcome.htm in test_resources/**/gff_amh_7_test_json.kmp.
2018-02-12 06:54:08 +07:00
darcywong00
3be5b63c86 Remove font files from test kmp files
Unit tests don't need font files, so removing them to make slimmer test files
2018-01-30 11:02:58 +07:00
darcywong00
3c74321906 Create test kmp files of different versions
- Modify kmp.json to have package versions 1.4 and 1.5.

- also made exception string more descriptive when JSON object doesn't contain a valid "options" object
2018-01-29 22:25:39 +07:00
Joshua A. Horton
0bbc254278 Basic extraction and test case infrastructure for KMP processing. 2017-12-08 10:32:03 +07:00
Joshua A. Horton
f81896878b Base start toward package info processing unit & testing. 2017-12-07 10:36:41 +07:00