Files
minstrel/android/app/build/intermediates/incremental/debug-mergeJavaRes/zip-cache/Tqv78+6yl2VeVMVvc7nyaQ==
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
4.3 KiB
Plaintext

[{"key":"androidx/profileinstaller/BenchmarkOperation$Api21ContextHelper.class","name":"androidx/profileinstaller/BenchmarkOperation$Api21ContextHelper.class","size":784,"crc":732178386},{"key":"androidx/profileinstaller/BenchmarkOperation$Api24ContextHelper.class","name":"androidx/profileinstaller/BenchmarkOperation$Api24ContextHelper.class","size":826,"crc":-1911288740},{"key":"androidx/profileinstaller/BenchmarkOperation.class","name":"androidx/profileinstaller/BenchmarkOperation.class","size":2270,"crc":1836195242},{"key":"androidx/profileinstaller/DeviceProfileWriter.class","name":"androidx/profileinstaller/DeviceProfileWriter.class","size":10485,"crc":1050764492},{"key":"androidx/profileinstaller/DexProfileData.class","name":"androidx/profileinstaller/DexProfileData.class","size":1352,"crc":-447897183},{"key":"androidx/profileinstaller/Encoding.class","name":"androidx/profileinstaller/Encoding.class","size":6529,"crc":-593198795},{"key":"androidx/profileinstaller/FileSectionType.class","name":"androidx/profileinstaller/FileSectionType.class","size":2161,"crc":308132896},{"key":"androidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics.class","name":"androidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics.class","size":1363,"crc":1091862807},{"key":"androidx/profileinstaller/ProfileInstallReceiver.class","name":"androidx/profileinstaller/ProfileInstallReceiver.class","size":4768,"crc":194265677},{"key":"androidx/profileinstaller/ProfileInstaller$1.class","name":"androidx/profileinstaller/ProfileInstaller$1.class","size":898,"crc":2051655691},{"key":"androidx/profileinstaller/ProfileInstaller$2.class","name":"androidx/profileinstaller/ProfileInstaller$2.class","size":2193,"crc":-26531924},{"key":"androidx/profileinstaller/ProfileInstaller$DiagnosticCode.class","name":"androidx/profileinstaller/ProfileInstaller$DiagnosticCode.class","size":661,"crc":936946104},{"key":"androidx/profileinstaller/ProfileInstaller$DiagnosticsCallback.class","name":"androidx/profileinstaller/ProfileInstaller$DiagnosticsCallback.class","size":445,"crc":-1798863824},{"key":"androidx/profileinstaller/ProfileInstaller$ResultCode.class","name":"androidx/profileinstaller/ProfileInstaller$ResultCode.class","size":653,"crc":1328959836},{"key":"androidx/profileinstaller/ProfileInstaller.class","name":"androidx/profileinstaller/ProfileInstaller.class","size":11183,"crc":1978533757},{"key":"androidx/profileinstaller/ProfileInstallerInitializer$Handler28Impl.class","name":"androidx/profileinstaller/ProfileInstallerInitializer$Handler28Impl.class","size":776,"crc":-1124413785},{"key":"androidx/profileinstaller/ProfileInstallerInitializer$Result.class","name":"androidx/profileinstaller/ProfileInstallerInitializer$Result.class","size":471,"crc":1912206274},{"key":"androidx/profileinstaller/ProfileInstallerInitializer.class","name":"androidx/profileinstaller/ProfileInstallerInitializer.class","size":4476,"crc":-725592428},{"key":"androidx/profileinstaller/ProfileTranscoder.class","name":"androidx/profileinstaller/ProfileTranscoder.class","size":22689,"crc":-1613863532},{"key":"androidx/profileinstaller/ProfileVerifier$Api33Impl.class","name":"androidx/profileinstaller/ProfileVerifier$Api33Impl.class","size":1337,"crc":-173279940},{"key":"androidx/profileinstaller/ProfileVerifier$Cache.class","name":"androidx/profileinstaller/ProfileVerifier$Cache.class","size":2936,"crc":434135039},{"key":"androidx/profileinstaller/ProfileVerifier$CompilationStatus$ResultCode.class","name":"androidx/profileinstaller/ProfileVerifier$CompilationStatus$ResultCode.class","size":761,"crc":-438192104},{"key":"androidx/profileinstaller/ProfileVerifier$CompilationStatus.class","name":"androidx/profileinstaller/ProfileVerifier$CompilationStatus.class","size":2064,"crc":2010163300},{"key":"androidx/profileinstaller/ProfileVerifier.class","name":"androidx/profileinstaller/ProfileVerifier.class","size":6635,"crc":-471958964},{"key":"androidx/profileinstaller/ProfileVersion.class","name":"androidx/profileinstaller/ProfileVersion.class","size":1433,"crc":965504323},{"key":"androidx/profileinstaller/WritableFileSection.class","name":"androidx/profileinstaller/WritableFileSection.class","size":815,"crc":984045749},{"key":"META-INF/androidx.profileinstaller_profileinstaller.version","name":"META-INF/androidx.profileinstaller_profileinstaller.version","size":6,"crc":1795624574}]