Commit graph

43 commits

Author SHA1 Message Date
Marc Durdin
a1c8e63cc8 chore(android): cleanup Android build scripts and artifact filenames
* Specify clearer filenames for Android samples and test KeyboardHarness
* Cleanup android/*/build.sh to match current patterns
* Remove obsolete jcenter dependency
* Export BUILDER_CONFIGURATION in builder.inc.sh

Fixes: #16137
Fixes: #16181
Test-bot: skip
Build-bot: skip release:android
2026-07-13 16:36:29 +02:00
Eberhard Beilharz
b490d20098
fix(android): add missing dependency for KeyboardHarness app
Some checks failed
Keyman Build Summary / Summarize build status checks (push) Has been cancelled
2026-06-30 12:56:50 +02:00
Darcy Wong
e5291fc90b fix(android): Remove flatDir from other Gradle files 2025-08-22 09:08:34 +07: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
827127d2e0
Merge pull request #14491 from keymanapp/chore/android/java-21-features
chore(android): Specify Java language version 21
2025-08-12 08:02:00 +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
1a1787c2b0 chore(android): Use API 35 2025-08-08 08:21:55 +07:00
Darcy Wong
0992061c41 fix(android): Update Sample and Test apps to edge-to-edge 2025-08-07 13:38:24 +07: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
eedfcf2f0e chore: Merge remote-tracking branch 'origin/master' 2025-05-13 07:05:25 +07:00
Darcy Wong
3990ab45db maint(android): Update Java and Gradle for KeyboardHarness 2025-05-09 09:33:00 +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
0c955acb72 chore(android/samples): Update dependencies 2024-05-08 08:22:47 +07:00
Darcy Wong
fdb14f2582 chore(android): Update targetSdkVersion to 34 2024-01-16 09:26:24 +07:00
Darcy Wong
8d296568ce chore(android): Move namespace to gradle files 2023-04-25 14:39:15 +07:00
Darcy Wong
a4ff79037e chore(android/samples): Remove Sentry dependencies 2022-12-14 07:03:16 +07:00
Darcy Wong
2a0368bc54 chore(android): Update Gradle dependencies 2022-12-13 11:26:35 +07:00
Darcy Wong
6a8865d0b6 chore(android): Update Target SDK Version to 31 2022-11-18 08:48:58 +07:00
Darcy Wong
92c5e5d884 chore(android): Update sentry-android-gradle-plugin 2021-08-04 11:10:35 +07:00
Darcy Wong
6db8cea05b chore(android/samples): Update dependencies for Sample projects
Also update targetSDKVersion to 30
2021-05-21 10:54:30 +07:00
Darcy Wong
d8fbec7cd1 fix(android/samples): Add dependency on androidx.preference 2021-01-21 15:44:56 +07:00
Darcy Wong
e6ebc22f0b fix(android/samples): Update keyboard harness 2021-01-18 16:05:45 +07:00
Darcy Wong
9ef2cec502 chore(android): Update dependencies 2020-10-22 10:51:34 +07:00
Marc Durdin
214bd4652e chore(windows): Merge branch 'master' into fix/windows/sentry-cleanup 2020-04-30 05:04:13 +10:00
Marc Durdin
b12baab1c5 fix(android): link VERSION_ENVIRONMENT 2020-04-28 15:56:56 +10:00
Darcy Wong
2be7449462 fix(android): Update minimum SDK to 21
Fixes #2989

This updates the minimum supported Android SDK to 21 (Lollipop). This applies to KMEA, KMAPro, Sample Apps, KeyboardHarness, and FV Android app.

Tests/keyCode doesn't use KMEA so no change there.
2020-04-16 11:55:00 +07:00
Darcy Wong
152168ba8c modify(android): Update sample and test projects to install asset kmp's
Follow-on to #2928 for KMSample1, KMSample2, and keyboardharness projects.

For KMSample1 and KMSample2, also changed keyboard from deprecated legacy [tamil99m](https://keyman.com/keyboards/tamil99m) to release [basic_kbdtam99]
(https://keyman.com/keyboards/basic_kbdtam99).

For Keyboardharness, manually assembled keyboards into a package.
2020-04-02 10:26:48 +07:00
Darcy Wong
1e708bfc97 fix(android): Fix min SDK version for Sample and Test apps 2020-03-20 12:19:18 +07:00
Darcy Wong
05869c3008 change(android): Replace fabric with sentry in other apps 2020-03-02 22:08:13 +07:00
Marc Durdin
255e4f4b7a chore: Merge branch 'master' into chore/beta-to-master-p9s2-1 2020-02-17 10:11:15 +11:00
Darcy Wong
7cf9b13856 change(android): Update app dependencies
#2640 fixed the FirstVoices OEM app from crashing on Android 5.0 devices.

This applies the same fix (updating to `androidx.appcompat:appcompat:1.2.0-alpha02`) for all the other Android apps.

* Also fix up history.md entries
2020-02-13 09:10:05 +07:00
Marc Durdin
4ebd2d9f24 chore(android): versionCode as Integer 2020-01-29 12:19:07 +11:00
Marc Durdin
742aee39d7 chore(android): use new version infrastructure 2020-01-29 08:55:19 +11:00
Darcy Wong
46c6c2d28f fix(android): Update build dependencies for Sample and Test projects 2019-11-20 11:08:18 +07:00
Darcy Wong
10f43eec76 Update dependencies again
Android Studio is warning  a call (from Firebase) will be deprecated end of 2019. This updates the versions of
* Frebase
* Gradle from 4.10.1 to 5.1.1

Also stubs a missing keyboard event handler in some of the sample/test projects.
2019-04-24 14:26:40 +07:00
Darcy Wong
ae68c483a7 Update dependencies
* Update compile/target SDK version from 27 to 28
*  Migrate appcompat namespace (See https://developer.android.com/jetpack/androidx/migrate)
2019-03-06 16:20:26 +07:00
Darcy Wong
7ed0547084 Update minimum SDK level from 15 to 16 2019-01-14 11:31:30 +07:00
Darcy Wong
b697ed5ed7 Update Tests
* Fix KeyboardHarness to compile
* Add keycode app for debugging `keyCode` and `scanCode` output from physical keyboards (app doesn't use KMEA)
2018-10-30 14:23:38 +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
32853aa162 Add Crashlytics dependencies to Samples and Test projects
Consumers of KMEA need to include Firebase and Crashlytics dependencies, but don't need to run the Google services. This simplifies these projects of not neeeding google-services.json.

Also added `-no-daemon` and `-debug` options to Samples and Test `build.sh` scripts so they can be run on CI servers.
2018-02-15 14:02:59 +07:00
darcywong00
ff41c7e446 Update to Android Studio and Gradle 3.0
Per Android Studio 3.0 [Release Notes](https://android-developers.googleblog.com/2017/10/android-studio-30.html)

-Update gradle version
-Change deprecated `compile` dependencies to `implementation` or `api`
-Change maven repositories to google (triplet plugin still on maven)
- Update readme instructions for using the engine
2017-10-30 14:51:24 +07:00
darcywong00
353f09084e Change chirality test app to keyboardHarness
Per review comments
* Rename chirality to keyboardHarness
* Change namespace to com.keyman.android.tests.keyboardHarness
* Add readme.md for info
2017-10-04 10:33:16 +07:00
Renamed from android/Tests/Chirality/app/build.gradle (Browse further)