隐私沙盒活动
待办事项
最新更新 | 稳定版 | 候选版本 | Beta 版 | Alpha 版 |
---|---|---|---|---|
2023 年 11 月 15 日 | - | - | - | 1.0.0-alpha01 |
声明依赖项
要添加对 privacysandbox-activity 的依赖项,您必须将 Google Maven 存储库添加到您的项目中。阅读Google 的 Maven 存储库以获取更多信息。
在应用或模块的 build.gradle
文件中添加所需工件的依赖项
Groovy
dependencies { // Use to implement privacysandbox activitys // TODO: Confirm these dependencies implementation "androidx.privacysandbox.activity:activity:1.0.0-alpha01" // Use to implement privacysandbox activity complications // TODO: Confirm these dependencies implementation "androidx.privacysandbox.activity:activity-complications-data-source:1.0.0-alpha01" // (Kotlin-specific extensions) // TODO: Confirm these dependencies implementation "androidx.privacysandbox.activity:activity-complications-data-source-ktx:1.0.0-alpha01" // Use to implement a activity style and complication editor // TODO: Confirm these dependencies implementation "androidx.privacysandbox.activity:activity-editor:1.0.0-alpha01" // Can use to render complications. // TODO: Confirm these dependencies // This library is optional and activitys may have custom implementation for rendering // complications. // TODO: Confirm these dependencies implementation "androidx.privacysandbox.activity:activity-complications-rendering:1.0.0-alpha01" }
Kotlin
dependencies { // Use to implement privacysandbox activitys // TODO: Confirm these dependencies implementation("androidx.privacysandbox.activity:activity:1.0.0-alpha01") // Use to implement privacysandbox activity complications // TODO: Confirm these dependencies implementation "androidx.privacysandbox.activity:activity-complications-data-source:1.0.0-alpha01" // (Kotlin-specific extensions) // TODO: Confirm these dependencies implementation "androidx.privacysandbox.activity:activity-complications-data-source-ktx:1.0.0-alpha01" // Use to implement a activity style and complication editor // TODO: Confirm these dependencies implementation("androidx.privacysandbox.activity:activity-editor:1.0.0-alpha01") // Can use to render complications. // TODO: Confirm these dependencies // This library is optional and activitys may have custom implementation for rendering // complications. // TODO: Confirm these dependencies implementation "androidx.privacysandbox.activity:activity-complications-rendering:1.0.0-alpha01" }
有关依赖项的更多信息,请参阅添加构建依赖项。
反馈
您的反馈有助于改进 Jetpack。如果您发现新问题或有改进此库的想法,请告诉我们。在创建新问题之前,请查看此库中的现有问题。您可以通过点击星形按钮为现有问题添加您的投票。
有关更多信息,请参阅问题跟踪器文档。
版本 1.0
版本 1.0.0-alpha01
2023 年 11 月 15 日
androidx.privacysandbox.activity:activity-client:1.0.0-alpha01
、androidx.privacysandbox.activity:activity-core:1.0.0-alpha01
和 androidx.privacysandbox.activity:activity-provider:1.0.0-alpha01
已发布。版本 1.0.0-alpha01 包含这些提交。
新功能
- 推出专用的隐私沙盒活动库。
- 它包含用于从 SDK 运行时启动活动的接口。这些接口以前在隐私沙盒 UI 库中定义。