Wear 远程 Compose Material 3
| 最近更新时间 | 稳定版 | 候选版 | Beta 版 | Alpha 版 |
|---|---|---|---|---|
| 2026 年 6 月 17 日 | - | - | - | 1.0.0-alpha06 |
声明依赖项
如需添加 wear compose remote 的依赖项,您必须将 Google Maven 制品库添加到项目中。如需了解详情,请参阅 Google 的 Maven 制品库。
在应用或模块的 build.gradle 文件中添加所需工件的依赖项:
Groovy
dependencies { implementation "androidx.wear.compose.remote:remote-material3:1.0.0-alpha06" }
Kotlin
dependencies { implementation("androidx.wear.compose.remote:remote-material3:1.0.0-alpha06") }
如需详细了解依赖项,请参阅添加 build 依赖项。
反馈
您的反馈将帮助我们改进 Jetpack。如果您发现了新问题,或对此库有任何改进建议,请告诉我们。创建新问题前,请先查看此库中的现有问题。您可以点击星标按钮,为现有问题投票。
如需了解详情,请参阅问题跟踪器文档。
版本 1.0
版本 1.0.0-alpha06
2026 年 6 月 17 日
发布了 androidx.wear.compose.remote:remote-material3:1.0.0-alpha06。版本 1.0.0-alpha06 中包含这些提交内容。
API 变更
- 更新了
containerPainter方法,现在该方法会采用RemoteImageBitmap(I68a92、b/494562308) - 将
RemoteBitmap重命名为RemoteImageBitmap,以提高命名一致性。(I4fde1、b/513228889) - 公开了
captureRemoteDocumentFlow API 和新的captureSingleRemoteDocument重载(采用RemoteCreationDisplayInfo)作为公共 API。(I87b0e、b/513228889) - 将现有的
ValueChange工厂函数重命名为小写valueChange。(I812b9、b/513228889)
版本 1.0.0-alpha05
2026 年 6 月 3 日
发布了 androidx.wear.compose.remote:remote-material3:1.0.0-alpha05。版本 1.0.0-alpha05 中包含这些提交内容。
bug 修复
- 修复了
RemoteTypography构造函数。(bf0c0b2)
版本 1.0.0-alpha04
2026 年 5 月 19 日
发布了 androidx.wear.compose.remote:remote-material3:1.0.0-alpha04。版本 1.0.0-alpha04 中包含这些提交内容。
API 变更
- 公开了
RemoteState静态工厂(I544f0、b/484137042) - 更新了
RemoteText,使其使用RemoteFontFamily而不是FontFamily(Ib76b6、b/502907551)
版本 1.0.0-alpha03
2026 年 5 月 6 日
发布了 androidx.wear.compose.remote:remote-material3:1.0.0-alpha03。版本 1.0.0-alpha03 中包含这些提交内容。
API 变更
- 将修饰符 clickable 更改为不接受 action 参数的 null 值。应改用
Action.Empty。(I21be9、b/498881738) - 修饰符
clickable(varargs action)已更改为clickable(action)。使用CombinedAction表示一系列操作。(I8432d、b/498881738)
版本 1.0.0-alpha02
2026 年 4 月 8 日
发布了 androidx.wear.compose.remote:remote-material3:1.0.0-alpha02。版本 1.0.0-alpha02 中包含这些提交内容。
API 变更
- 公开
RemoteCircularProgressIndicator、RemoteProgressIndicatorDefaults和RemoteProgressIndicatorColors(I64481、b/492476015) - 泄露了
RemoteTitleCard(Ic65ff, b/492476015) - 公开了
RemoteMaterialTheme(I07329、b/492476015) - 公开
RemoteAppCard(Ib6fbc、b/492476015) - 泄露了
RemoteCard、RemoteOutlinedCard、RemoteCardDefaults和RemoteCardColors(I2bcfd、b/492476015) - 泄露了
RemoteColorScheme(Id0e88、b/492476015) - 公开
RemoteTypography(Ib6f88、b/492476015) - 公开
RemoteShapes(I6c356、b/492476015)
其他更改
- 将 Compose
compileSdk更新为 API 37。这意味着,使用 Compose 时,AGP 的最低版本为 9.2.0。(Id45cd、b/413674743)
版本 1.0.0-alpha01
2026 年 3 月 25 日
发布了 androidx.wear.compose.remote:remote-material3:1.0.0-alpha01。版本 1.0.0-alpha01 中包含这些提交内容。
API 变更
- 公开了
RemoteTextButton公共 API。(I169e3、b/492476015) - 公开了
RemoteIconButton公共 API。(Id7c71、b/492476015) - 公开了
RemoteButtonGroup公共 API。(Ibfc22、b/492476015) - 将
RemoteButton、RemoteCompactButton、RemoteButtonDefaults和RemoteButtonColors作为公共 API 进行公开(I3bcdd、b/492476015) - 将
RemoteIcon作为公共 API 进行公开(I0cc79、b/492476015) - 将
RemoteText作为公共 API 进行公开(I8a11a、b/492476015) - 公开
RemoteFloat.asRemoteDp()(I28b36、b/446824085)