Restore missing gradle/ build infra + fix build-blockers + CI#1
Merged
Conversation
The repo did not build at all: the entire gradle/ directory (Gradle wrapper AND
the libs.versions.toml version catalog the build depends on) was never committed,
so `libs.*` was unresolved. This restores it and fixes two more blockers.
- Add gradle/libs.versions.toml (reconstructed Compose template catalog:
AGP 8.7.3, Kotlin 2.0.21, compose-bom 2024.09.03) + the Gradle 8.9 wrapper jar
- app/build.gradle.kts: replace the AGP-9-only `compileSdk { version = release(36) }`
block with the stable `compileSdk = 35`; targetSdk 36 -> 35 (matches a current
stable, locally-buildable SDK)
- res/layout/keyboard.xml: escape the unescaped '<' in the SPACE key label
(android:text="<<=SPACE=>>" -> "<<=SPACE=>>"), which failed resource parsing
- Add a build/test/lint CI workflow
Verified locally: ./gradlew assembleDebug testDebugUnitTest lintDebug -> BUILD SUCCESSFUL.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
d-board did not build at all as committed — three independent blockers. This PR makes it build green and adds CI.
gradle/directory (the big one): both the Gradle wrapper andgradle/libs.versions.tomlwere never committed, so everylibs.*reference in the build files was unresolved. Restored the wrapper (Gradle 8.9) and reconstructed the version catalog for the Compose template it uses (AGP 8.7.3, Kotlin 2.0.21, compose-bom 2024.09.03).compileSdk { version = release(36) }requires AGP 9.x / Gradle 9. Switched to the stablecompileSdk = 35(andtargetSdk36 → 35) so it builds on the current stable toolchain.res/layout/keyboard.xmlhad an unescaped<in the SPACE key label (android:text="<<=SPACE=>>"), which failed resource parsing. Escaped to<<=SPACE=>>(renders identically).Plus a build/test/lint CI workflow.
Verification
Built locally with JDK 17 + Android SDK (platform 35):
Debug APK produced; unit tests + lint pass.
Notes
OrthoKeyboardService) is entirely Android-framework-bound (InputMethodService / View / KeyEvent), so there's no pure logic to unit-test without refactoring the service — I deliberately did not add coverage-theater tests. The existing example unit test is retained so the test task runs.🤖 Generated with Claude Code