Files
minstrel/android/app/build/intermediates/incremental/debug-mergeJavaRes/zip-cache/ja1_ZB4iIdS6oRFgFa2c6Q==
T
bvandeusen 0b72827682 fix(android): unblock first device test — auth contrast + dynamic base URL
Two regressions surfaced on the first real device run.

1. Contrast on ServerUrl + Login screens: both wrapped content in a
   bare Box(fillMaxSize), no Surface. The obsidian background never
   painted (rendered against the system root view's default),
   LocalContentColor cascade fell through to Material's default
   contentColor — the screens rendered as near-invisible dark text
   on dark grey. Wrap both in Surface(color = background, contentColor
   = onBackground) so the bg paints AND the M3 contentColor pipeline
   flows correctly through OutlinedTextField labels / cursor /
   placeholders + the Button content tint.

2. The bigger bug: NetworkModule.provideRetrofit read
   authStore.baseUrl.value ONCE at Retrofit creation. AuthStore loads
   from Room async, so at injection time the value was still the
   localhost:8080 placeholder. Result: even after the user typed
   their real server URL on the ServerUrl screen, every API call
   kept hitting localhost:8080 ("Failed to connect to
   localhost/127.0.0.1:8080" on the login attempt). The pre-fix
   NetworkModule comment even acknowledged it — *"Server-URL
   changes require an app relaunch"*.

   Fix: per-request rewrite. New BaseUrlInterceptor reads the live
   AuthStore.baseUrl.value on every request and rewrites
   scheme/host/port of the outgoing URL. Retrofit now keeps a
   placeholder baseUrl ("http://placeholder.invalid/") solely to
   satisfy its parser; the actual target host is dynamic. Order in
   OkHttp chain: BaseUrl first → Auth → logging, so the cookie
   interceptor sees the final URL.

New:
  - api/BaseUrlInterceptor.kt — per-request scheme/host/port rewrite
    from AuthStore.baseUrl. Falls through to the original request
    when the stored URL is unparseable.

Modified:
  - api/NetworkModule.kt — adds BaseUrlInterceptor to the OkHttp
    chain. Drops the AuthStore dependency from provideRetrofit;
    swaps baseUrl for the placeholder.
  - auth/ui/ServerUrlScreen.kt — Box → Surface wrap.
  - auth/ui/LoginScreen.kt — Box → Surface wrap.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-26 00:27:05 -04:00

1 line
2.1 KiB
Plaintext

[{"key":"androidx/graphics/path/ConicConverter.class","name":"androidx/graphics/path/ConicConverter.class","size":2554,"crc":-2075525229},{"key":"androidx/graphics/path/PathIterator$ConicEvaluation.class","name":"androidx/graphics/path/PathIterator$ConicEvaluation.class","size":1567,"crc":-1050694862},{"key":"androidx/graphics/path/PathIterator.class","name":"androidx/graphics/path/PathIterator.class","size":4616,"crc":1603771064},{"key":"androidx/graphics/path/PathIteratorApi34Impl.class","name":"androidx/graphics/path/PathIteratorApi34Impl.class","size":4428,"crc":130817382},{"key":"androidx/graphics/path/PathIteratorImpl$Companion.class","name":"androidx/graphics/path/PathIteratorImpl$Companion.class","size":836,"crc":-346921140},{"key":"androidx/graphics/path/PathIteratorImpl$WhenMappings.class","name":"androidx/graphics/path/PathIteratorImpl$WhenMappings.class","size":1000,"crc":252266143},{"key":"androidx/graphics/path/PathIteratorImpl.class","name":"androidx/graphics/path/PathIteratorImpl.class","size":5545,"crc":746059062},{"key":"androidx/graphics/path/PathIteratorImplKt.class","name":"androidx/graphics/path/PathIteratorImplKt.class","size":1869,"crc":-1390430380},{"key":"androidx/graphics/path/PathIteratorPreApi34Impl.class","name":"androidx/graphics/path/PathIteratorPreApi34Impl.class","size":3642,"crc":908573320},{"key":"androidx/graphics/path/PathSegment$Type.class","name":"androidx/graphics/path/PathSegment$Type.class","size":1772,"crc":-789665998},{"key":"androidx/graphics/path/PathSegment.class","name":"androidx/graphics/path/PathSegment.class","size":3292,"crc":-1409739059},{"key":"androidx/graphics/path/PathSegmentUtilities.class","name":"androidx/graphics/path/PathSegmentUtilities.class","size":2049,"crc":-1625946079},{"key":"androidx/graphics/path/PathUtilities.class","name":"androidx/graphics/path/PathUtilities.class","size":1994,"crc":1288469232},{"key":"META-INF/androidx.graphics_graphics-path.version","name":"META-INF/androidx.graphics_graphics-path.version","size":6,"crc":-463103703},{"key":"META-INF/graphics-path_release.kotlin_module","name":"META-INF/graphics-path_release.kotlin_module","size":107,"crc":1457114750}]