You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Using type alias is more resource effective but also makes it hard to write unit tests and support configuration changes.
In case of a wrapper it'd be possible to write unit tests instead of instrumented tests as values could be compared by resource id
Describe the solution you'd like
Create wrappers like
interface KalugaColor {
val value: PlatformSpecificColor
}
class DefaultKalugaColor(private val id: String) {
override fun equals(other: Any?): Boolean = ... // compare by id
override fun toString(): String = // print debug info, like id and maybe hex representation
val value: PlatformSpecificColor get() = // load color by id every time to seamlessly support config change, the loading itself is cached on the system level
}
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Using type alias is more resource effective but also makes it hard to write unit tests and support configuration changes.
In case of a wrapper it'd be possible to write unit tests instead of instrumented tests as values could be compared by resource id
Describe the solution you'd like
Create wrappers like
The text was updated successfully, but these errors were encountered: