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
Add resolvers for Compose unit and geometry types: Dp, Sp, Offset, Size, Rect, IntOffset, and IntSize. Each lives in dev.appoutlet.some.android.resolver.compose. These are Compose inline/value classes and are handled directly rather than relying on ValueClassResolver.
Scope and constraints
DpResolver — Dp(value) with random float in 0..1000 range. Constructor receives random: Random only.
SpResolver — Sp(value) with random float in 0..100 range. Constructor receives random: Random only.
OffsetResolver — Offset(x, y) with random float coordinates. Constructor receives random: Random only.
SizeResolver — Size(width, height) with random positive float dimensions. Constructor receives random: Random only.
RectResolver — Rect(left, top, right, bottom) with randomized bounds ensuring left < right and top < bottom. Constructor receives random: Random only.
IntOffsetResolver — IntOffset(x, y) with random integer coordinates. Constructor receives random: Random only.
IntSizeResolver — IntSize(width, height) with random positive integer dimensions. Constructor receives random: Random only.
Each canResolve() uses exact type matching via typeOf<T>().
Each resolver has its own JVM unit test class verifying type output, canResolve behavior, and dimensional constraints where applicable.
Depends on androidx.compose.ui:ui (transitively provides ui-unit and ui-geometry).
Activity