Commit graph

1126 commits

Author SHA1 Message Date
Darcy Wong
79812e2e74
Merge pull request #3481 from keymanapp/feat/android/package-processor-keyboard-info
feat(android/app): Add language picker for keyboard package installation
2020-08-21 10:01:17 +07:00
Darcy Wong
d8123c5ea9 fix(android): Incorporate review suggestions
* Rename var `tempPath` to `isInstallingPackage`
* Tweak install dictionary title (and size of titlebar)
* Change "NEXT ->" button to "INSTALL ->" on language picker page
2020-08-21 08:43:38 +07:00
Darcy Wong
981a72ac6f fix(android): Fix util to getting the tier on CI builds
The regex in KMManager.getTier() is incorrect for CI versions because of an extra `-`.

A local development version string `14.0.248-alpha-local` would correctly return Tier.ALPHA, but a CI build `14.0.248-alpha` would return Tier.STABLE
2020-08-19 09:02:37 +07:00
Darcy Wong
cf7f8a83b5 fix(android): Fix nav bar alignment so it's not covered 2020-08-18 15:24:41 +07:00
Darcy Wong
3d7c7f6bc0 feat(android): Allow user to select multiple languages 2020-08-18 13:58:10 +07:00
Darcy Wong
8f5d63a549 chore(android): More cleanup 2020-08-18 10:38:10 +07:00
Darcy Wong
fa46d03ed2 chore(android): Cleanup 2020-08-18 10:26:16 +07:00
Darcy Wong
64b723a565 fix(android): Use bottom nav bar 2020-08-18 10:17:02 +07:00
Darcy Wong
9578679970 fix(android): Using forward arrows for now
We'll want to use Material Design steppers for navigating through the kmp install.
In the meantime, this adds the "NEXT"/"INSTALL" button right of the title bar
2020-08-17 15:02:54 +07:00
Darcy Wong
bb45346c5d fix(android): Adjust titlebar UI 2020-08-17 09:46:49 +07:00
Darcy Wong
cd1daf4c7e feat(android): Use language lists for processing KMP 2020-08-17 07:51:00 +07:00
Darcy Wong
d34e568607 fix(android): UI changes for SelectLanguageActivity
* Sort by language name
* Show language picker when a keyboard package has 1 keyboard with multiple languages
* Don't display the BCP 47 language ID or right arrows
2020-08-17 07:50:45 +07:00
Darcy Wong
ef44b4268f fix(android): Use CustomHelpLink
Use CustomHelpLink which will contain offline  help
2020-08-14 08:02:52 +07:00
Darcy Wong
a368e1abc1 fix(android): UI changes
* Move button to below title bar
* Update title strings
* Use back button for "Cancel" action
* Use index for PackageProcesor utilities
2020-08-13 15:32:25 +07:00
Darcy Wong
69e0454009 feat(android/app): Add UX to pick language when installing keyboard pkg 2020-08-13 15:07:15 +07:00
Darcy Wong
c1913d7f04
Merge pull request #3471 from keymanapp/fix/android/remove-obsolete-api
fix(android): Update sentry plugin to remove obsolete API  use
2020-08-10 06:22:20 +07:00
Darcy Wong
de21237ec8 fix(android): Update sentry plugin to remove obsolete API use
Fixes #3460
2020-08-07 13:07:46 +07:00
Darcy Wong
eab137950e fix(android): Add CI script to publish to Play Store
This adds a CI script to publish specified APKs to the Play Store.
2020-08-07 09:28:48 +07:00
Darcy Wong
f75187d02b fix(android): Update Gradle wrapper to 5.6.4
This updates the gradle-wrappers for KMEA, KMAPro, and FV app. Gradle version kept at 5.6.4

gradle files auto-generated with:
```
./gradlew wrapper --gradle-version 5.6.4
```
(And changing shebang to `#!/bin/bash`)
2020-08-07 08:51:01 +07:00
Darcy Wong
371bf27101
Merge pull request #3462 from keymanapp/fix/android/version-environment
fix(android/app): Fix environment portion of app version string
2020-08-06 11:45:53 +07:00
Darcy Wong
f7b17640f2 chore(android): Include XML comments for additional context 2020-08-06 11:25:25 +07:00
Darcy Wong
fe09ac73fe fix(android/app): Fix environment portion of app version string
When displaying the Info page of alpha builds from the Play Store, we noticed the version string displayed the wrong environment:
`14.0.X-alpha-local` (CI builds should have ended with `-alpha`).

It turns out  the `VERSION_` shell variables  from `build-utils.sh` aren't visible in `version.gradle` (though CI environment variables like `build_counter` are visible).

This PR:
* Exports the two VERSION strings needed in version.gradle
* Updates the Info page to simply display `BuildConfig.VERSION_NAME`
2020-08-06 10:34:26 +07:00
Darcy Wong
4406ac39da chore(android): Add comments to KMAPro strings.xml 2020-08-05 15:26:46 +07:00
Darcy Wong
45553b77dc chore(android): Add comments to improve string context
For KMEA
2020-08-05 14:31:19 +07:00
Darcy
4ee53152c5 chore(android): Address review comments
* Remove Delphi-specific history folder
* Add comment about similarity to WIndows script
2020-08-05 12:53:36 +07:00
Darcy Wong
bcfb614ccd chore(android): Add script to find unused strings. Manually remove them
Similar to #3412

1. Adds a similar script from Windows to identify unused Android strings (from KMAPro and KMEA strings.xml)
2. Remove the unused strings from strings.xml

As part of the manual cleanup, consolidated the strings `missing_metadata` and `invalid_metadata`.

Also changed string name `model` to a more specific  `model_label`
2020-08-05 11:51:15 +07:00
Darcy Wong
ee63f227df chore(android): Use review suggestions 2020-08-05 08:03:04 +07:00
Darcy Wong
435278845a chore(android): Merge remote-tracking branch 'origin/master' into fix/android/cleanup-string-format 2020-08-05 07:40:09 +07:00
Darcy Wong
2020d55bca feat(android): Use staging help site for prerelease builds
* Update build-help.sh to have option of getting content from local, staging, or production help site
* Update Info Activity to choose help host from tier
2020-08-04 14:47:08 +07:00
Darcy Wong
c3e60132b7
Merge pull request #3439 from keymanapp/fix/android/handle-links
fix(android): Update KMPBrowser to pass external links to user browser
2020-08-04 13:21:24 +07:00
Darcy Wong
f049b37db7 fix(android): Cleanup string formatting with strings.xml 2020-08-04 13:00:20 +07:00
Darcy Wong
c4204fe105
Merge pull request #3449 from keymanapp/feat/android/associate-install-link
feat(android/app): Associate app with /keyboards/install links
2020-08-04 08:41:22 +07:00
Darcy Wong
bd06f79490 chore(android): Adjust regex again 2020-08-04 08:24:44 +07:00
Darcy Wong
1b97aa00d8 fix(android): Split intent filters 2020-08-03 14:59:43 +07:00
Darcy Wong
fe27e73ac7 feat(android/app): Associate app with /keyboards/install links 2020-08-03 13:37:59 +07:00
Darcy Wong
94ffd8932e fix(android): Fix KMTextView to compile on Linux
The project wasn't building on Linux because of a missing super() call.

Also updated the README about installing jq on Linux.
2020-08-02 08:00:08 +07:00
Darcy Wong
88b5604757 chore(android): Fix regex again
Since keyboards can be followed by keyboard page or query, I needed to make regex `(/?.*)$`
2020-07-31 15:14:24 +07:00
Darcy Wong
591c87122e
Update android/KMEA/app/src/main/java/com/tavultesoft/kmea/KMPBrowserActivity.java
Co-authored-by: Marc Durdin <marc@durdin.net>
2020-07-31 14:55:07 +07:00
Darcy Wong
8c6ca055e2 chore(android): Remove unnecessary escaping slash 2020-07-31 14:16:50 +07:00
Darcy Wong
c927ed6855 fix(android): Update KMPBrowser to pass external links to user browser 2020-07-31 13:44:11 +07:00
Darcy Wong
91d0836f1c
Merge pull request #3431 from keymanapp/feat/android/app-association
feat(android): Add app association to keyman.com
2020-07-31 07:02:37 +07:00
Darcy Wong
5256ddb5de feat(android): Add app association to keyman.com
Following the reference from https://developer.android.com/training/app-links/verify-site-associations

> When `android:autoVerify="true"` is present on any one of your intent filters, installing your app on devices with Android 6.0 and higher causes the system to attempt to verify all hosts associated with the URLs in any of your app's intent filters.
2020-07-30 13:11:15 +07:00
Darcy Wong
cebab4c060 feat(android): Use api.keyman-staging.com for pre-release builds
Now that api.keyman-staging.com is available, this updates the cloud queries to use the applicable api.keyman.com site depending n the tier.

* Change from `KMKeyboardDownloaderActivity.kKeymanApiModelURL` to `CloudRepository.API_MODEL_FORMATSTR`
* Change from `KMKeyboardDownloaderActivity.kKeymanApiPackageVersionURL` to `CloudRepository.API_PACKAGE_VERSION_FORMATSTR`
2020-07-29 15:50:07 +07:00
Marc Durdin
e71017a0ad
Merge pull request #3413 from keymanapp/feat/windows/generate-message-consts-at-build
feat(windows): generate message consts at build time
2020-07-29 14:09:23 +10:00
Marc Durdin
66a2d9b350 chore: unify crowdin.yml
This is groundwork for most likely using the Crowdin Github integration
and should simplify the management, I hope...
2020-07-29 10:21:51 +10:00
Darcy Wong
257efec3d5 fix(android): Remove 13.0 code for downloading keyboards 2020-07-28 14:11:24 +07:00
Darcy Wong
c2a0d68b14 fix(android): Address review comments
* Use URI to handle query parameters instead of strings

Also in resuming work on the PR
* Change the staging host to keyman-staging.com
* Move helper for determining host
2020-07-27 13:57:49 +07:00
Darcy Wong
a41fb079a5 chore(android): Merge remote-tracking branch 'origin/master' into fix/android/go-download-keyboards 2020-07-26 21:02:25 +07:00
Darcy Wong
b794eab191 fix(android): Revert AndroidManifest
From PR discussion, the app should change the keyboards/install link (not display in browser) into a downloading link that MainActivity handles
2020-07-17 11:27:41 +07:00
Darcy Wong
eb51b8cc55 fix(android): Update intent filter for /keyboards/install
Address some review comments:
* Update intent filter to use /keyboards/install (/go/packge/download commented out)
* Add some test cases to for testing Keyman install link
2020-07-16 13:47:16 +07:00