Skip to content

Conversation

@StylianosGakis
Copy link
Member

@StylianosGakis StylianosGakis commented Nov 28, 2025

For this to happen, some more things had to be migrated at the same time

Use HedvigDateTimeFormatterDefaults for all date formatting needs and introduce our own interface which defaults to the java.time impl for android (so impl is unchanged)

interface DateFormatter {
  fun format(date: LocalDate): String
  fun format(date: LocalDateTime): String
}

Migrate to Coil 3.x

Use CMP resources. Now it's Res.string... instead of R.string...

:design-system-internals
:design-system-api
:core-ui
:core-resources

StylianosGakis and others added 30 commits November 24, 2025 13:08
Move Android specific items to androidMain
Use R.string for cases where context.resources was used to access them
to avoid having to do runBlocking or find a way to get into a composable
context
# Conflicts:
#	app/feature/feature-terminate-insurance/src/main/kotlin/com/hedvig/android/feature/terminateinsurance/step/deflectAutoDecom/DeflectAutoDecomStepDestination.kt
Replace all `.` from string keys with `_`. They get translated to `_`
anyway in order to be able to access them
from Kotlin code so this has no change on the call sites.
Keeping the `.` breaks the code generation for CMP resources, this
fixes it.
Keep Android-specific code (video player, PDF renderer, date formatting)
in androidMain
Replace Android-only dependencies with multiplatform alternatives
(jetbrains.compose.*)
We've migrated to m3 sheet already anyway
Common interface which defaults to what we always used to do for android anyway
Move the date related formatters outside of the `.datepicker` package
which were there by accident
Apparently, when the android target is not specified in a project using
CMP, it sometimes is possible that when trying to use things that have
a different implementation on Android it will instead try to use the jvm
option which is not present on Android.

Adding the android target means that it now knows to pick the correct
actual implementation which works as intended.
Unsure how this bug surfaced itself after the switch to CMP, but keeping the
start angle as 0 degrees makes all shapes work as intended.
@panasetskaya panasetskaya changed the title Claim chat feature. KMPify everything related to this in the process. Claim chat feature. KMPify everything related to this in the process (GEN-4661) Dec 17, 2025
@notion-workspace
Copy link

foundation work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants