Android: S-22's unpaired server from AppBuildInfo.releaseServerUrl (D-122)

AppBuildInfo gains releaseServerUrl, which :app fills from RELEASE_SERVER_URL (https://<kvitt.publicHost>:8443,
D-121). AboutRepositoryImpl shows it while no server is paired, in place of DataModule.DEFAULT_SERVER_URL, which
is deleted: :data no longer names a host. The fakes' AboutState uses the fixture https://kvitt.example.org:8443;
30 S-21/S-22 goldens re-recorded (only the host changed; oxipng -o 4 --strip safe). New test: unpaired About shows
the release server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TQd3pEP9UeN2uifbHknQ7B
This commit is contained in:
2026-10-19 20:09:10 +02:00
parent dd07ca4395
commit 4a4e45fcd9
36 changed files with 27 additions and 14 deletions
@@ -6,11 +6,12 @@ import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import se.hagstedt.kvitt.BuildConfig
import se.hagstedt.kvitt.data.di.AppBuildInfo
import se.hagstedt.kvitt.link.RELEASE_SERVER_URL
import javax.inject.Singleton
/**
* Both variants: the app's version (§10.6) and build type for `:data`'s `DataModule`, which Hilt installs in debug and
* release alike (it binds no `:core:model` interface, D-041).
* Both variants: the app's version (§10.6), build type and release server ([RELEASE_SERVER_URL], D-121, D-122) for
* `:data`'s `DataModule`, which Hilt installs in debug and release alike (it binds no `:core:model` interface, D-041).
*/
@Module
@InstallIn(SingletonComponent::class)
@@ -20,5 +21,6 @@ object AppBuildInfoModule {
versionCode = BuildConfig.VERSION_CODE,
versionName = BuildConfig.VERSION_NAME,
debug = BuildConfig.DEBUG,
releaseServerUrl = RELEASE_SERVER_URL,
)
}