- Move @Inject/@AssistedInject to class level for single-constructor classes
- Remove explicit class key from @ActivityKey (redundant)
- Add -Xannotation-default-target=param-property compiler arg to suppress
annotation target warnings for @Json and @ApplicationContext parameters
- Rename writeTo parameter to match supertype Serializer<T> signature
Fixes warnings from KT-73255 and other Metro/Kotlin best practices
Replace stale DI documentation across the codebase:
- CONTRIBUTING.md: DI stack description
- .github/copilot-instructions.md: architecture, di/ comment, DI pattern, build note
- CLAUDE.md: tech stack, build comments, di/ listing, DI patterns,
common issues, Kotlin version note, Copilot context section
- project-resources/prd/product-requirements-document.md: ARCH-04 row
Trailing newlines (0x0a) in pasted tokens caused OkHttp to throw
IllegalArgumentException when setting the access-token header.
Trimming on save prevents whitespace from reaching the network layer.
w: file:///Users/hossain/dev/repos/android-apps/trmnl-android/app/src/test/java/ink/trmnl/android/util/AndroidDeviceInfoProviderTest.kt:113:29 'val connectionInfo: WifiInfo!' is deprecated. Deprecated in Java.
16s
Run ./gradlew lintKotlin testDebugUnitTest --parallel --daemon
Starting a Gradle Daemon (subsequent builds will be faster)
Parallel Configuration Cache is an incubating feature.
Calculating task graph as no cached configuration is available for tasks: lintKotlin testDebugUnitTest
gradle/actions: Writing build results to /home/runner/work/_temp/.gradle-actions/build-results/__run-1775220043424.json
[Incubating] Problems report is available at: file:///home/runner/work/trmnl-android/trmnl-android/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'TRMNL'.
> Could not resolve all artifacts for configuration 'classpath'.
> Could not resolve dev.zacsweers.metro:gradle-plugin:0.12.1.
Required by:
root project : > dev.zacsweers.metro:dev.zacsweers.metro.gradle.plugin:0.12.1
Configuration cache entry stored.
> Dependency requires at least JVM runtime version 21. This build uses a Java 17 JVM.