forked from Blendman974/faceclaw
Refactor a bunch of Java to Kotlin, making it usable in an iOS port
This commit is contained in:
1 parent
c0f8f7e9c2
commit
410fd5840b
162 files changed
+9650
-6224
No files matched your search
+8
-10
@@ -15,15 +15,13 @@ That compiles the pure modules with the project's TypeScript into
|
||||
dependencies are needed — the tests are plain `.test.cjs` files that use
|
||||
`node:test` and `node:assert`.
|
||||
|
||||
Compass diagnostics have focused UI and wire-format checks:
|
||||
The shared Kotlin suite runs separately from the Node tests:
|
||||
|
||||
node --test tests/compass-debug.test.cjs tests/compass-protocol.test.cjs
|
||||
npm run test:kotlin
|
||||
npm run test:kotlin:ios
|
||||
|
||||
The protocol check also compiles the production Java parser, so it needs a
|
||||
JDK (`JAVA_HOME`, or `javac` and `java` on `PATH`). Its golden packet is shared
|
||||
with the firmware encoder test in `g2flash/tests/compass_diagnostics_test.c`.
|
||||
|
||||
R1 battery field-106 decoding (valid zero, charging, unavailable/disconnected,
|
||||
legacy firmware, malformed messages) uses the same C/Java golden packet:
|
||||
|
||||
node --test tests/ring-battery-protocol.test.cjs
|
||||
It includes the migrated compass, R1 battery, gesture and texture Java fixtures,
|
||||
which now call the Kotlin implementation from Android host tests. Common tests
|
||||
also run as native iOS simulator binaries. See [the Kotlin README](../native/kotlin/README.md)
|
||||
for SDK requirements, source layout and coverage. The compass and battery
|
||||
fixtures retain the golden packets shared with firmware tests.
|
||||
Reference in new issue
Block a user