กิจกรรม privacysandbox

  
สิ่งที่ต้องทำ
อัปเดตล่าสุด รุ่นที่เสถียร รุ่นที่อาจได้รับการเผยแพร่ รุ่นเบต้า เวอร์ชันอัลฟ่า
26 มีนาคม 2025 - - - 1.0.0-alpha02

การประกาศทรัพยากร Dependency

หากต้องการเพิ่มทรัพยากร Dependency ของ privacysandbox-activity คุณต้องเพิ่มที่เก็บ Google Maven ลงในโปรเจ็กต์ อ่านข้อมูลเพิ่มเติมในที่เก็บ Maven ของ Google

เพิ่มการอ้างอิงสำหรับอาร์ติแฟกต์ที่คุณต้องการในไฟล์ build.gradle สำหรับแอปหรือโมดูล

ดึงดูด

dependencies {
    // Use to implement privacysandbox activitys
    // TODO: Confirm these dependencies
    implementation "androidx.privacysandbox.activity:activity:1.0.0-alpha02"

    // Use to implement privacysandbox activity complications
    // TODO: Confirm these dependencies
    implementation "androidx.privacysandbox.activity:activity-complications-data-source:1.0.0-alpha02"
    // (Kotlin-specific extensions)
    // TODO: Confirm these dependencies
    implementation "androidx.privacysandbox.activity:activity-complications-data-source-ktx:1.0.0-alpha02"

    // Use to implement a activity style and complication editor
    // TODO: Confirm these dependencies
    implementation "androidx.privacysandbox.activity:activity-editor:1.0.0-alpha02"

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

Kotlin

dependencies {
    // Use to implement privacysandbox activitys
    // TODO: Confirm these dependencies
    implementation("androidx.privacysandbox.activity:activity:1.0.0-alpha02")

    // Use to implement privacysandbox activity complications
    // TODO: Confirm these dependencies
    implementation "androidx.privacysandbox.activity:activity-complications-data-source:1.0.0-alpha02"
    // (Kotlin-specific extensions)
    // TODO: Confirm these dependencies
    implementation "androidx.privacysandbox.activity:activity-complications-data-source-ktx:1.0.0-alpha02"

    // Use to implement a activity style and complication editor
    // TODO: Confirm these dependencies
    implementation("androidx.privacysandbox.activity:activity-editor:1.0.0-alpha02")

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

ดูข้อมูลเพิ่มเติมเกี่ยวกับการพึ่งพาได้ที่เพิ่มการพึ่งพิงบิวด์

ความคิดเห็น

ความคิดเห็นของคุณช่วยปรับปรุง Jetpack ได้ โปรดแจ้งให้เราทราบหากพบปัญหาใหม่หรือมีแนวคิดในการปรับปรุงคลังนี้ โปรดดูปัญหาที่มีอยู่ในคลังนี้ก่อนสร้างปัญหาใหม่ คุณสามารถเพิ่มการโหวตให้กับปัญหาที่มีอยู่ได้โดยคลิกปุ่มดาว

สร้างปัญหาใหม่

ดูข้อมูลเพิ่มเติมได้ที่เอกสารประกอบของเครื่องมือติดตามปัญหา

รุ่น 1.0

เวอร์ชัน 1.0.0-alpha02

26 มีนาคม 2025

androidx.privacysandbox.activity:activity-client:1.0.0-alpha02, androidx.privacysandbox.activity:activity-core:1.0.0-alpha02 และ androidx.privacysandbox.activity:activity-provider:1.0.0-alpha02 เผยแพร่แล้ว เวอร์ชัน 1.0.0-alpha02 มีการคอมมิตเหล่านี้

ฟีเจอร์ใหม่

  • ตอนนี้คุณสร้างตัวเปิดใช้งานกิจกรรม SDK สําหรับกิจกรรมที่ไม่รับรู้วงจรได้แล้ว เช่น กิจกรรมที่ไม่ได้ใช้อินเทอร์เฟซ LifecycleOwner ผู้เรียกใช้จะต้องกำจัดตัวเปิดเหล่านี้ด้วยตนเอง

การเปลี่ยนแปลง API

  • เพิ่ม LocalUnmanagedSdkActivityLauncher และ createUnmanagedSdkActivityLauncher ซึ่งเป็นคลาสตัวเปิดสำหรับกิจกรรมที่ไม่รับรู้วงจร และวิธีการสร้างตัวเปิดดังกล่าว
  • เปลี่ยนชื่อจาก LocalSdkActivityLauncher เป็น LocalManagedSdkActivityLauncher เพื่อเน้นความแตกต่างระหว่างประเภท Launcher นี้กับประเภทที่ไม่รู้เกี่ยวกับวงจรของลูกค้า

เวอร์ชัน 1.0.0-alpha01

15 พฤศจิกายน 2023

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 มีการคอมมิตเหล่านี้

ฟีเจอร์ใหม่

  • ขอแนะนําคลังกิจกรรม Privacy Sandbox โดยเฉพาะ
  • ซึ่งมีอินเทอร์เฟซสําหรับการเริ่มกิจกรรมจากรันไทม์ SDK ก่อนหน้านี้อินเทอร์เฟซได้รับการกําหนดไว้ในคลัง UI ของ Privacy Sandbox