Files
minstrel/android/app/build/intermediates/incremental/debug-mergeJavaRes/zip-cache/EuzSmlJe24uQTDqe_ihZ8A==
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
3.0 KiB
Plaintext

[{"key":"androidx/compose/ui/tooling/data/CallGroup.class","name":"androidx/compose/ui/tooling/data/CallGroup.class","size":2804,"crc":-1013213274},{"key":"androidx/compose/ui/tooling/data/CompositionCallStack.class","name":"androidx/compose/ui/tooling/data/CompositionCallStack.class","size":12087,"crc":-987783526},{"key":"androidx/compose/ui/tooling/data/CompositionDataTree.class","name":"androidx/compose/ui/tooling/data/CompositionDataTree.class","size":11217,"crc":-447996608},{"key":"androidx/compose/ui/tooling/data/CompositionDataTreeKt.class","name":"androidx/compose/ui/tooling/data/CompositionDataTreeKt.class","size":3037,"crc":-462802837},{"key":"androidx/compose/ui/tooling/data/ContextCache.class","name":"androidx/compose/ui/tooling/data/ContextCache.class","size":1419,"crc":-1035939494},{"key":"androidx/compose/ui/tooling/data/EmptyGroup.class","name":"androidx/compose/ui/tooling/data/EmptyGroup.class","size":1358,"crc":251276221},{"key":"androidx/compose/ui/tooling/data/Group.class","name":"androidx/compose/ui/tooling/data/Group.class","size":4702,"crc":1722996309},{"key":"androidx/compose/ui/tooling/data/JoinedKey.class","name":"androidx/compose/ui/tooling/data/JoinedKey.class","size":2980,"crc":2055501417},{"key":"androidx/compose/ui/tooling/data/NodeGroup.class","name":"androidx/compose/ui/tooling/data/NodeGroup.class","size":2574,"crc":726127412},{"key":"androidx/compose/ui/tooling/data/ParameterInformation.class","name":"androidx/compose/ui/tooling/data/ParameterInformation.class","size":5003,"crc":802589021},{"key":"androidx/compose/ui/tooling/data/SlotTreeKt$extractFromIndyLambdaFields$$inlined$sortedBy$1.class","name":"androidx/compose/ui/tooling/data/SlotTreeKt$extractFromIndyLambdaFields$$inlined$sortedBy$1.class","size":2615,"crc":-1320342914},{"key":"androidx/compose/ui/tooling/data/SlotTreeKt$extractFromLegacyFields$$inlined$sortedBy$1.class","name":"androidx/compose/ui/tooling/data/SlotTreeKt$extractFromLegacyFields$$inlined$sortedBy$1.class","size":2198,"crc":1647661385},{"key":"androidx/compose/ui/tooling/data/SlotTreeKt.class","name":"androidx/compose/ui/tooling/data/SlotTreeKt.class","size":33812,"crc":1186842722},{"key":"androidx/compose/ui/tooling/data/SourceContext.class","name":"androidx/compose/ui/tooling/data/SourceContext.class","size":1575,"crc":-1754176192},{"key":"androidx/compose/ui/tooling/data/SourceInformationContext.class","name":"androidx/compose/ui/tooling/data/SourceInformationContext.class","size":4804,"crc":-1039199537},{"key":"androidx/compose/ui/tooling/data/SourceLocation.class","name":"androidx/compose/ui/tooling/data/SourceLocation.class","size":3971,"crc":1100360212},{"key":"androidx/compose/ui/tooling/data/UiToolingDataApi.class","name":"androidx/compose/ui/tooling/data/UiToolingDataApi.class","size":806,"crc":598318033},{"key":"META-INF/androidx.compose.ui_ui-tooling-data.version","name":"META-INF/androidx.compose.ui_ui-tooling-data.version","size":7,"crc":1165938089},{"key":"META-INF/ui-tooling-data.kotlin_module","name":"META-INF/ui-tooling-data.kotlin_module","size":95,"crc":-1955250876}]