18 Commits

Author SHA1 Message Date
WhiredPlanck
3548724f5a refactor: simplify KeyCode conversions via generated mappings 2026-08-01 20:04:28 +08:00
WhiredPlanck
498144c78a chore: update ktlint to 1.7.1
Specify ktlint code style as intellij idea
2025-08-31 23:15:07 +08:00
WhiredPlanck
19c5cab95e refactor: remove scancode mapping
We don't actually need this.

This reverts commit 1613c45401fd3e3c34b4bf12c3b6d6ef6297a7cc and parts of c9407500db0a2de2845ac2a2b12052cee40cda1c.
2024-12-09 12:38:57 +08:00
WhiredPlanck
1613c45401 feat: add Android keycode to scancode mapping 2024-11-07 21:23:35 +08:00
Bambooin
13787ebb7a chore: format with ktlint 1.3.1 2024-09-05 21:53:11 +08:00
Bambooin
8a0a0d0702 fix: add missing new line 2024-04-25 19:51:33 +08:00
Bambooin
4b64f26461 docs: add SPDX license header with reuse 2024-04-25 19:23:46 +08:00
nopdan
89593e3932 refactor: Key.java to kotlin 2024-01-25 22:24:10 +08:00
shitlime
c07b2c4567 build: support Java 21 compile 2024-01-18 16:05:10 +08:00
WhiredPlanck
38b5da142c build: migrate build to version catalogs
Ref: https://developer.android.com/build/migrate-to-catalogs
2023-12-23 21:46:18 +08:00
Bambooin
e236272da0 chore: format code with ktlint 1.0.1 2023-10-31 22:41:55 +08:00
Bambooin
e4bc0cd6b0 fix: apply all kotlin code with ktlint 2023-07-09 15:30:05 +08:00
wxyzh
f3dca25f10 Build codegen use jdk 17 2023-06-05 20:00:38 +08:00
WhiredPlanck
c02e983f7c chore: set jdk version of kotlin for codegen module ...
... by kotlin.jvmToolchain option to keep jvm target compatibility.

Ref: https://kotl.in/gradle/jvm/toolchain
2023-03-17 19:42:22 +08:00
WhiredPlanck
44a3d2e372 chore: update dependencies
- Kotlin version: 1.7.20 -> 1.8.0
- Kotlin serialization plugin: 1.7.20 -> 1.8.0
- Kotlin symbol processing plugin: 1.7.20-1.0.8 -> 1.8.0-1.0.8
- kaml: 0.49.0 -> 0.52.0
- appcompat: 1.5.1 -> 1.6.0
- kotlinx-serialization-json: 1.4.1 -> 1.5.0
- androidx room: 2.4.3 -> 2.5.0
2023-03-17 19:42:22 +08:00
WhiredPlanck
47aee9524e build,refactor: migrate build configuration from Groovy to KTS
Groovy is a dynamic programming language, which is hard to debug in the IDE. So let's go with KTS.
2023-03-10 21:28:16 +08:00
WhiredPlanck
2994bfe682 chore: update dependencies and compile sdk version
- Kotlin main version: 1.7.20
- Compile SDK version: 33
2023-01-10 23:09:28 +08:00
WhiredPlanck
3d276c4997 chore,feat: generate rime key val constants and keycode mapping using ksp
librime API is not convenient to use

Ref: 14fe8c589e
2023-01-10 23:09:28 +08:00