feat(mac): build full install URL for keyboard downloads 🍎 - #16463
feat(mac): build full install URL for keyboard downloads 🍎#16463sgschantz wants to merge 6 commits into
Conversation
invoke download directly with url change build to pass tier into info.plist of configuration app so that it can be added to URL
pass language with keyboard search URL Fixes: #15541
|
@mcdurdin, a couple questions: |
We have logic on keyman.com which references /**
* Build a keyman://download/keyboard/<id>?bcp47=<bcp47> link
* @param {string} id id of keyboard to download
* @param {string} bcp47 bcp47 tag to associate with keyboard on install
*/
function buildStandardKeymanProtocolDownloadLink(id, bcp47) {
const url =
'keyman://download/keyboard/' + encodeURIComponent(id) +
(bcp47 == '' ? '' : '?bcp47=' + encodeURIComponent(bcp47));
return url;
}I think we can eliminate it from here.
The version number should be hard-coded to '14.0'. This is the version of Keyman in which the surface was introduced. Only if we make changes, will we bump the surface version to the current Keyman version. That reduces the number of version number schemes we have to deal with -- and I wish all our APIs were versioned similarly -- tied to the min version of Keyman that works with them. |
remove obsolete keyman link URL check
Test Specs
Test Prerequisites
Test Results
|
Build the correct URL for downloading and installing packages, ensuring that they can be downloaded in the browser as a .kmp or download and installed directly in the Keyman Configuation app.
Fixes: #15541
Build-bot: release:mac
User Testing
TEST_PRIMARY_LANGUAGE:
Select the preferred language in System Settings > General > Language & Region to Khmer.
Inside Keyman Configuration, click on the Add Keyboard button and verify that it is presented in Khmer.
TEST_INSTALL_LINK:
Inside Keyman Configuration, click on the Add Keyboard button to see the Keyboard Search window.
Navigate to any keyboard listed, and press the "Install keyboard" button.
Confirm that the keyboard installation begins.
TEST_DOWNLOAD_LINK:
Inside Keyman Configuration, click on the Add Keyboard button to see the Keyboard Search window.
Navigate to any keyboard listed, and scroll past the "Install keyboard" button to the link labeled "Package Download" -- the link should have a file name ending in '.kmp'.
Click the link and verify that the .kmp file downloads to your Mac's downloads folder.