privacysandbox activity
העדכון האחרון | גרסה יציבה | גרסה מועמדת להפצה | גרסת בטא | גרסת אלפא |
---|---|---|---|---|
26 במרץ 2025 | - | - | - | 1.0.0-alpha02 |
הצהרת יחסי תלות
כדי להוסיף תלות ב-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" }
מידע נוסף על יחסי תלות זמין במאמר הוספת יחסי תלות ל-build.
משוב
המשוב שלכם עוזר לנו לשפר את Jetpack. אם נתקלתם בבעיות חדשות או שיש לכם רעיונות לשיפור הספרייה הזו, נשמח לשמוע מכם. לפני שיוצרים בעיה חדשה, כדאי לעיין בבעיות הקיימות בספרייה הזו. כדי להצביע על בעיה קיימת, לוחצים על לחצן הכוכב.
מידע נוסף זמין במסמכי התיעוד של Issue Tracker.
גירסה 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
כדי להדגיש את ההבדל בין סוג זה של מרכזי אפליקציות לבין סוגים אחרים של מרכזי אפליקציות שלא מביאים בחשבון את מחזור החיים של האפליקציות.
גרסה 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 מכילה את ההצהרות האלה.
תכונות חדשות
- אנחנו שמחים להציג ספרייה ייעודית של פעילויות בארגז החול לפרטיות.
- הוא מכיל ממשקים להפעלת פעילויות מסביבת זמן הריצה של ה-SDK. ממשקי המשתמש הוגדרו בעבר בספריית ממשק המשתמש של ארגז החול לפרטיות.