Fix two real compile errors found by the first actual Android build #92
No reviewers
Labels
No labels
area:companion
area:docs
area:shared
area:tooling
area:watchapp
blocker
kind:chore
kind:feature
kind:spike
kind:test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
robert/PedalPebble!92
Loading…
Reference in a new issue
No description provided.
Delete branch "tooling/first-real-android-build"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Robert set up the Android SDK locally tonight. With a real JDK 21 and the SDK,
:companion:assembleDebugran for the first time ever against this codebase and found two genuine bugs no host test or hand review caught:GpxShareImportActivity.kt's doc comment self-closed early. It contained the literal text*/*(describing the wildcard-MIME-type intent-filter fallback) inside backticks — backticks don't escape anything for the comment lexer,*/always closes a/** */block. The doc comment silently ended mid-sentence and everything after it parsed as top-level code, producing dozens of cascading syntax errors with no obvious root cause in the error list. Reworded to avoid the literal sequence.RouteLibraryScreen.ktused@ExperimentalMaterial3Apisurfaces (Scaffold/TopAppBar) without the required@OptIn— a compile error under Kotlin's default opt-in enforcement, not a warning. Added the opt-in to both composables that need it.Also commits Room's exported schema snapshot (
companion/route/schemas/.../2.json,exportSchema = true). Schema version 1 was never captured — no build ever ran against it — so there's nothing to check in for it and aMIGRATION_1_2test against a historical schema 1 isn't retroactively possible; flagged rather than silently skipped.Verified:
./gradlew :companion:assembleDebugsucceeds end to end and produces a real debug APK — the first time this has ever been confirmed for this codebase.