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
Compose for Wear OS 1.2.0-alpha03 release introduce package name changes for number of existing classes, like ScalingLazyColumn: androidx.wear.compose.material -> androidx.wear.foundation.lazy.
For seamless migration in your app you can apply the script below:
* Update dependencies Jetpack dependencies and bump Compose for Wear OS to version 1.2.
* Migrate ScalingLazyColumn to use from the foundation.lazy package (used script from android/wear-os-samples#663)
* - Update Preview annotations to use wear configuration mode (with round views) for component preview
- Use multi-device preview for main app screen
- Remove obsolete PreviewConstants
* Bump Compose for Wear OS to v1.2 stable
Compose for Wear OS 1.2.0-alpha03 release introduce package name changes for number of existing classes, like ScalingLazyColumn:
androidx.wear.compose.material
->androidx.wear.foundation.lazy
.For seamless migration in your app you can apply the script below:
grep -rl 'import androidx.wear.compose.material' . | xargs perl -p -i -e 's/import androidx.wear.compose.material.rememberScalingLazyListState/import androidx.wear.compose.foundation.lazy.rememberScalingLazyListState/;' -e 's/import androidx.wear.compose.material.Scaling/import androidx.wear.compose.foundation.lazy.Scaling/;' -e 's/import androidx.wear.compose.material.items/import androidx.wear.compose.foundation.lazy.items/;' -e 's/import androidx.wear.compose.material.AutoCenteringParams/import androidx.wear.compose.foundation.lazy.AutoCenteringParams/;'
The text was updated successfully, but these errors were encountered: