Privacy Sandbox-Aktivität

  
Aufgaben
Letzte Aktualisierung Stabile Version Releasekandidat Beta-Ausgabe Alpharelease
15. November 2023 - - - 1.0.0-alpha01

Abhängigkeiten deklarieren

Wenn Sie eine Abhängigkeit von der Privacysandbox-Aktivität hinzufügen möchten, müssen Sie Ihrem Projekt das Google Maven-Repository hinzufügen. Weitere Informationen finden Sie im Maven-Repository von Google.

Fügen Sie der Datei build.gradle für Ihre Anwendung oder Ihr Modul die Abhängigkeiten für die benötigten Artefakte hinzu:

Groovig

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"
}

Weitere Informationen zu Abhängigkeiten finden Sie unter Build-Abhängigkeiten hinzufügen.

Feedback

Dein Feedback hilft uns, Jetpack zu verbessern. Lassen Sie uns wissen, wenn Sie neue Probleme entdecken oder Ideen zur Verbesserung dieser Bibliothek haben. Sehen Sie sich die vorhandenen Probleme in dieser Bibliothek an, bevor Sie eine neue erstellen. Durch Klicken auf die Stern-Schaltfläche können Sie zu einem vorhandenen Problem abstimmen.

Neues Problem erstellen

Weitere Informationen finden Sie in der Dokumentation zum Issue Tracker.

Version 1.0

Version 1.0.0-alpha01

15. November 2023

androidx.privacysandbox.activity:activity-client:1.0.0-alpha01, androidx.privacysandbox.activity:activity-core:1.0.0-alpha01 und androidx.privacysandbox.activity:activity-provider:1.0.0-alpha01 wurden veröffentlicht. Version 1.0.0-alpha01 enthält diese Commits.

Neue Funktionen

  • Einführung einer eigenen Privacy Sandbox-Aktivitätsbibliothek.
  • Sie enthält Schnittstellen zum Starten von Aktivitäten aus der SDK-Laufzeit. Die Oberflächen wurden zuvor in der UI-Bibliothek der Privacy Sandbox definiert.