<@U6Q90DDHR> hi, which is the last horologist vers...
# compose-wear
f
@yschimke hi, which is the last horologist version that uses all stable compose libs version? 0.4.13 ?
y
Yep.
Happy to backport specific fixes and release a 0.4.x as needed. But active development is only on 0.5.x
f
I had to downgrade from 0.5.x because onRotaryScrollEvent stopped working when applied to a Picker. Maybe there is some breaking changes that i miss :)
Maybe this:
y
Can you raise a bug?
Main are I think a lot more of this might be built in. The Horologist rotary modifiers are renamed, mostly through rotaryWithScroll and params now
f
Yup, i'll do it asap with an example
And ok thanks, i'll try the renamed modifiers
y
Thanks, I'll take a look tomorrow at work
❤️ 1
f
Thanks, have a nice sunday :)
y
The goal is really that you never need to implement onRotaryScrollEvent yourself. We definitely want this as central as possible, so every screen in every app gets this premium feeling (haptics, fling/snap).
I'll try to cleanup the code in Horologist, hopefully we can avoid copy pasting the Wear Compose Picker* classes since we bumped to Wear Compose 1.3.
Ideally you can simply use, although in the latest 0.5.6 release it is internal, so will be in next release.
Copy code
Picker(
        pickerState = pickerState,
        modifier = modifier.rotaryWithSnap(
            pickerState.toRotaryScrollAdapter(),
        ),
f
Nice, that's a great news, thanks!
y
Nice to see an OSS app! https://github.com/feduss/Tomatimer
❤️ 1
f
Yes, thanks! I developed also a bus app per Cagliari city (Sardinia, italy) and i'm considering to set it oss too. Moreover, i'm trying to develop telegram for wear os using compose (it's already public, but wip)
Hi @yschimke, toRotaryScrollAdapter extension for PickerState seems not visible in 0.5.7 because it's declared as internal --> https://github.com/google/horologist/blob/1248648d1266591df997bce22b6d5e457455fd84[…]roid/horologist/composables/picker/PickerRotaryScrollAdapter.kt
y
The new form is on the androidx Picker. The reason Horologist has a copy of the androidx Picker is because of internal API. Can you switch to the androidx imports?
f
Sorry for the late answer, i was busy 😕...btw, i tried as you suggested, but i can't find toRotoraryScrollAdapter.
y
I wonder what went wrong?
f
That was my fault, sorry. I only had this implementation in my gradle file:
Copy code
implementation 'com.google.android.horologist:horologist-compose-layout:0.5.7'
I fixed the problem by adding the following line:
Copy code
implementation 'com.google.android.horologist:horologist-composables:0.5.7'