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

[{"key":"androidx/sqlite/DataType.class","name":"androidx/sqlite/DataType.class","size":824,"crc":-2110309625},{"key":"androidx/sqlite/SQLite.class","name":"androidx/sqlite/SQLite.class","size":3133,"crc":-167489274},{"key":"androidx/sqlite/SQLiteConnection.class","name":"androidx/sqlite/SQLiteConnection.class","size":1313,"crc":-1148666399},{"key":"androidx/sqlite/SQLiteDriver.class","name":"androidx/sqlite/SQLiteDriver.class","size":981,"crc":951197047},{"key":"androidx/sqlite/SQLiteException_androidKt.class","name":"androidx/sqlite/SQLiteException_androidKt.class","size":476,"crc":194226630},{"key":"androidx/sqlite/SQLiteStatement.class","name":"androidx/sqlite/SQLiteStatement.class","size":3811,"crc":-1797424253},{"key":"androidx/sqlite/db/SimpleSQLiteQuery$Companion.class","name":"androidx/sqlite/db/SimpleSQLiteQuery$Companion.class","size":3325,"crc":515008315},{"key":"androidx/sqlite/db/SimpleSQLiteQuery.class","name":"androidx/sqlite/db/SimpleSQLiteQuery.class","size":2464,"crc":-806019681},{"key":"androidx/sqlite/db/SupportSQLiteCompat$Api16Impl.class","name":"androidx/sqlite/db/SupportSQLiteCompat$Api16Impl.class","size":1840,"crc":-1750000777},{"key":"androidx/sqlite/db/SupportSQLiteCompat$Api19Impl.class","name":"androidx/sqlite/db/SupportSQLiteCompat$Api19Impl.class","size":2103,"crc":553591297},{"key":"androidx/sqlite/db/SupportSQLiteCompat$Api21Impl.class","name":"androidx/sqlite/db/SupportSQLiteCompat$Api21Impl.class","size":1621,"crc":1819369262},{"key":"androidx/sqlite/db/SupportSQLiteCompat$Api23Impl.class","name":"androidx/sqlite/db/SupportSQLiteCompat$Api23Impl.class","size":1659,"crc":281052518},{"key":"androidx/sqlite/db/SupportSQLiteCompat$Api29Impl.class","name":"androidx/sqlite/db/SupportSQLiteCompat$Api29Impl.class","size":2340,"crc":-332068317},{"key":"androidx/sqlite/db/SupportSQLiteCompat.class","name":"androidx/sqlite/db/SupportSQLiteCompat.class","size":1206,"crc":815060393},{"key":"androidx/sqlite/db/SupportSQLiteDatabase.class","name":"androidx/sqlite/db/SupportSQLiteDatabase.class","size":5486,"crc":-148862379},{"key":"androidx/sqlite/db/SupportSQLiteOpenHelper$Callback$Companion.class","name":"androidx/sqlite/db/SupportSQLiteOpenHelper$Callback$Companion.class","size":982,"crc":2132276799},{"key":"androidx/sqlite/db/SupportSQLiteOpenHelper$Callback.class","name":"androidx/sqlite/db/SupportSQLiteOpenHelper$Callback.class","size":7140,"crc":-1980889870},{"key":"androidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder.class","name":"androidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder.class","size":4726,"crc":-348620906},{"key":"androidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Companion.class","name":"androidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Companion.class","size":1715,"crc":985311507},{"key":"androidx/sqlite/db/SupportSQLiteOpenHelper$Configuration.class","name":"androidx/sqlite/db/SupportSQLiteOpenHelper$Configuration.class","size":2760,"crc":813906850},{"key":"androidx/sqlite/db/SupportSQLiteOpenHelper$Factory.class","name":"androidx/sqlite/db/SupportSQLiteOpenHelper$Factory.class","size":1030,"crc":1445773790},{"key":"androidx/sqlite/db/SupportSQLiteOpenHelper.class","name":"androidx/sqlite/db/SupportSQLiteOpenHelper.class","size":1375,"crc":-611819530},{"key":"androidx/sqlite/db/SupportSQLiteProgram.class","name":"androidx/sqlite/db/SupportSQLiteProgram.class","size":975,"crc":-2084043137},{"key":"androidx/sqlite/db/SupportSQLiteQuery.class","name":"androidx/sqlite/db/SupportSQLiteQuery.class","size":861,"crc":66145227},{"key":"androidx/sqlite/db/SupportSQLiteQueryBuilder$Companion.class","name":"androidx/sqlite/db/SupportSQLiteQueryBuilder$Companion.class","size":1622,"crc":-1156415973},{"key":"androidx/sqlite/db/SupportSQLiteQueryBuilder.class","name":"androidx/sqlite/db/SupportSQLiteQueryBuilder.class","size":7753,"crc":1787324910},{"key":"androidx/sqlite/db/SupportSQLiteStatement.class","name":"androidx/sqlite/db/SupportSQLiteStatement.class","size":860,"crc":-384677763},{"key":"META-INF/androidx.sqlite_sqlite.version","name":"META-INF/androidx.sqlite_sqlite.version","size":6,"crc":1823991704},{"key":"META-INF/sqlite.kotlin_module","name":"META-INF/sqlite.kotlin_module","size":78,"crc":1270407248}]