Commit graph

208 commits

Author SHA1 Message Date
Darcy Wong
ca3c19441b fix(android): Update sentry-android to 8.19.1 2025-08-20 07:29:31 +07:00
Marc Durdin
81c807c257 chore(common): Merge branch 'master' into maint/common/14453-move-ci-scripts 2025-08-19 10:46:11 +02:00
Darcy Wong
c30ec23be9
Merge pull request #14514 from keymanapp/fix/android/samples-edge-to-edge
fix(android): Update Sample, Test, and FirstVoices apps for edge to edge 🪟
2025-08-18 14:30:51 +07:00
Darcy Wong
5e62747cf1
Merge branch 'master' into main/android/taregt-api-35 2025-08-12 15:36:25 +07:00
Marc Durdin
a81138c62b
Merge pull request #14449 from keymanapp/maint/common/14065-consolidate-builder-scripts
maint(common): consolidate builder scripts 🐸
2025-08-12 10:41:09 +07:00
Marc Durdin
f95b26ac1f
Merge pull request #14446 from keymanapp/maint/common/14275-rename-and-cleanup-shellHelperFunctions.sh
maint(common): rename shellHelperFunctions.sh to utils.inc.sh 🐸
2025-08-12 10:40:59 +07:00
Darcy Wong
3ceccfc054 chore(android): Specify Java language version 21
Resolves Gradle deprecation and language version warnings
```gradle
Java compiler version 21 has deprecated support for compiling with source/target version 8.
```

The `java.toolchain.languageVersion` syntax is a superset that covers the previous syntax `android.compileOptions`
2025-08-11 11:44:51 +07:00
Darcy Wong
b6fd905d43 fix(android): Setup FirstVoices activities for edge to edge 2025-08-07 13:38:50 +07:00
Marc Durdin
f3fb3ac87b maint(common): move build-utils-ci.inc.sh to ci/ci-publish.inc.sh
Removes a number of unused functions from the file, renames remaining
functions to match our builder script prefix patterns, removes unused
imports from various build scripts (e.g. Android).

Fixes: #14453
2025-08-05 12:54:56 +10:00
Marc Durdin
f394245636 maint(common): consolidate builder scripts
Clarifies the confusing builder.inc.sh / build-utils.sh distinction by
giving the scripts more appropriate names. Most build scripts should use
builder-full.inc.sh; some helper scripts can use builder-basic.inc.sh.
Documented in resources/build/README.md.

Renames:
* resources/build/builder.inc.sh to resources/build/builder-full.inc.sh
* resources/build/build-utils.sh to resources/build/builder-basic.inc.sh

Other changes:
* Moves Android-specific functions out of builder-basic.inc.sh and into
  android/build.sh.
* Renames functions in builder-basic.inc.sh

More functions may be moved from builder-basic.inc.sh into utils.inc.sh
or other scripts in the future.

Fixes: #14065
Build-bot: build all
Test-bot: skip
2025-08-02 08:11:24 +10:00
Marc Durdin
65158a0526 maint(common): rename shellHelperFunctions.sh to utils.inc.sh
Adds documentation for various functions, removes unused functions (a
couple of simple, very lightly used functions were unDRYed; these could
go back the other way across all shell scripts if necessary). TODO items
noted for follow-up refactoring.

Fixes: #14275
Relates-to: #14269
Build-bot: build all
Test-bot: skip
2025-08-02 06:58:40 +10:00
Darcy Wong
d694ab0889 fix(android): Update compileSdk to 35 2025-07-29 10:07:18 +07:00
Darcy Wong
ed7c0caf9d maint(android): Update Android Target API to 35 2025-07-24 08:04:50 +07:00
Darcy Wong
16facd8708 chore(android): Update FirstVoices red color theme
The red is used as a separator color, and some labels
2025-05-14 09:47:43 +07:00
Darcy Wong
b5afb508c5 chore(android): Update FirstVoices launcher icon
Using red background produced by Android Studio
Red background with the hex code #8d2a1d
2025-05-14 09:13:44 +07:00
Darcy Wong
eedfcf2f0e chore: Merge remote-tracking branch 'origin/master' 2025-05-13 07:05:25 +07:00
Darcy Wong
5d5609c343 maint(android): Update Java and Gradle for FirstVoices 2025-05-09 09:43:22 +07:00
Eberhard Beilharz
4d81589f48
maint(common): use unique names for Keyman version variables
Previously the builder scripts defined a readonly `VERSION` environment
variable for the Keyman version. That caused problems when another
(external) script tried to define a `VERSION` variable. We encountered
this problem when trying to move the TC build steps of a configuration
into a single script (#13399) when we tried to source `~/.nvm/nvm.sh`.

This change uses a Keyman specific prefix for the version variables and
renames `VERSION` → `KEYMAN_VERSION` etc. Unfortunately these variables
are used in a lot of places, so this turned out to be a bit of a yak
shave.

Test-bot: skip
2025-05-07 18:46:51 +02:00
Darcy Wong
b9f1f51a33 chore(android): Use builder_is_ci_build rather than --ci flag 2025-04-28 10:42:52 +07:00
Darcy Wong
6f6de46467 fix(oem/fv/android): Fix system keyboard banner on reload
Also applied to FirstVoices for Android app
2025-04-11 11:07:04 +07:00
Darcy Wong
75bf69bfbf fix(android): Cleanup comments
Cleanup references to mayPredictOverride in comments
2025-03-24 10:27:50 +07:00
Darcy Wong
edfef5488a fix(oem/fv/android): Apply renames 2025-03-24 08:30:34 +07:00
Darcy Wong
99be8148c0 fix(oem/fv/android): Avoid resetting keyboard index
From the days of stable-12.0 when the FirstVoices for Android app was configured in the main repo, the SystemKeyboard initialized with

3148aa7b8c/oem/firstvoices/android/app/src/main/java/com/firstvoices/keyboards/SystemKeyboard.java (L111-L113)

In the scenario FV for Android installed and enabled as the system keyboard (from the Android settings menu instead of launching the FV app), the initial usage as a system keyboard would have an uninitialized keyboard key (language and keyboard ID pairing to determine the current keyboard).

Fixes: FV-ANDROID-5G
Fixes: FV-ANDROID-7N
2025-03-11 10:21:54 +07:00
Darcy Wong
77b5cff622 fix(android): Correct the scope of tier in build.gradle 2025-02-18 09:12:59 +07:00
Darcy Wong
51d9aead77 fix(android): Fix gradle syntax 2025-02-17 07:18:52 +07:00
Darcy Wong
81a47ddb14 fix(android): Use TIER.md to determine Play Store tier 2025-02-17 07:05:37 +07:00
Darcy Wong
44f20472df feat(android): Enhance how ENTER key is handled for FV and KMSample2 2024-11-29 08:48:13 +07:00
Darcy Wong
a3dd21f71a
Merge pull request #12358 from keymanapp/fix/android/conditional-sentry
fix(android): Separate `publishSentry` Gradle task to publish symbols to Sentry
2024-09-10 14:20:03 +07:00
Darcy Wong
83b442b8fc
Merge pull request #12351 from keymanapp/fix/android/builder-publish
refactor(android): Move build-publish.sh to builder script
2024-09-10 14:19:29 +07:00
Darcy Wong
d4b0850fde Merge branch 'fix/android/builder-publish' into fix/android/conditional-sentry 2024-09-10 14:08:02 +07:00
Darcy Wong
aa816a4e7a
Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2024-09-10 10:41:08 +07:00
Darcy Wong
87a013050c docs(android): Update help docs
* Update whatsnew
* Rename "SIL International" to "SIL Global"
* Add link to adjust-longpress-delay
2024-09-06 07:08:09 +07:00
Darcy Wong
d99d4d80ff fix(android): Separate publishSentry Gradle task to publish symbols 2024-09-04 10:36:09 +07:00
Darcy Wong
72c9754b43 chore(android): rename shell variable to PUBLISH_FLAGS 2024-09-03 13:06:05 +07:00
Darcy Wong
3de0aaaca4 refactor(android): Move build-publish.sh to builder script 2024-09-03 10:22:19 +07:00
Darcy Wong
bf86d67a56 fix(oem/fv/android): Throw errors if keyboards.json can't be read 2024-08-06 14:19:02 +07:00
Darcy Wong
564308c3c6 fix(oem/fv/android): Add error logging 2024-08-05 09:07:33 +07:00
Darcy Wong
fe758cb441 change(oem/fv/android): Add keyboard JSON path to loadRegionList() 2024-08-05 09:07:13 +07:00
Darcy Wong
4c5b6213d1 fix(android/engine): Parse keyboards.json for FirstVoices app 2024-07-09 15:05:23 -05:00
Darcy Wong
aeac9377b5 fix(oem/firstvoices/android): Revert Sentry version 2024-05-24 07:43:33 +07:00
Darcy Wong
e3aaca9554 fix(oem/fv/android): Clean build/tmp when building FV app 2024-05-21 15:29:45 +07:00
Darcy Wong
3e0c9520cb chore(android): Update sentry-android-gradle-plugin to 4.6.0 2024-05-21 15:24:51 +07:00
Darcy Wong
73ca23bf45
Merge pull request #11436 from keymanapp/fix/android/deprecated-get-size
fix(android): Replace deprecated APIs for Display, Size, Metrics
2024-05-17 11:22:48 +07:00
Darcy Wong
072aa7d21f chore(android): update Gradle wrapper version 2024-05-14 13:55:52 +07:00
Darcy Wong
205c8c2d63 fix(android): Replace deprecated APIs for Display, Size, Metrics 2024-05-14 09:17:20 +07:00
Darcy Wong
e9d10348ee
Merge pull request #11393 from keymanapp/chore/android/18-dependencies
chore(android): Update dependencies
2024-05-13 20:59:59 +07:00
Marc Durdin
cd6361810b chore: Merge branch 'master' into chore/merge-beta-into-master-a18s2 2024-05-13 15:55:05 +07:00
Marc Durdin
8e4b3820f0 fix(android): disable Sentry session tracking
We don't really need it, and I am hoping it will be enough to resolve
the Play Store policy issues.
2024-05-11 12:00:53 +07:00
Darcy Wong
9f7357f1fc chore(oem/fv/android): Update dependencies 2024-05-08 08:31:18 +07:00
Marc Durdin
cd8121ef65 chore(common): builder scripts now use /resources/build/builder.inc.sh
Note: there is a bit of potential confusion about the difference between
/resources/builder.inc.sh (the full implementation for builder scripts),
and /resources/build/builder.inc.sh (the source script that builder
scripts should always use).

This allows us to make assumptions that will always be true for builder
scripts that may not be true for other scripts, such as setting base
folder.
2024-05-02 15:54:31 +07:00