这是indexloc提供的服务,不要输入任何密码
Skip to content

Migrate package name for v1.2.0-alpha03 release #663

@shumelchyk

Description

@shumelchyk

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/;'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions