隐私沙盒活动

  
待办事项
最新更新 稳定版 候选版 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-alpha01androidx.privacysandbox.activity:activity-core:1.0.0-alpha01androidx.privacysandbox.activity:activity-provider:1.0.0-alpha01已发布。1.0.0-alpha01 版包含这些提交。

新功能

  • 推出专用的隐私沙盒活动库。
  • 它包含从 SDK 运行时启动活动的接口。这些接口以前在隐私沙盒 UI 库中定义。