מקצים את החבילה לטראק באמצעות קריאה ל-Edits.tracks: update.
כדי למנוע את פרסום הגרסה החדשה למשתמשי קצה בשלב הזה, צריך להגדיר את הסטטוס של הגרסה החדשה כ-draft.
מבצעים את העריכה.
מורידים את חבילות ה-APK שנוצרו מהחבילה שהעליתם בשלב 2 באמצעות השיטות של ה-APKs שנוצרו ב-API.
אם אתם צריכים להשתמש בקובצי ה-APK באמצעות bundletool, עליכם לפעול לפי השלבים הבאים כדי ליצור אותם באמצעות ה-API של ה-APKs שנוצרו:
בקריאה לשיטה של רשימת חבילות ה-APK שנוצרו, התשובה תכלול את השדה TargetingInfo של כל מפתח חתימה. עליכם לכתוב את ערך השדה הזה בקובץ בשם toc.json.
מורידים את חבילות ה-APK ומציבים אותן בספרייה עם ה-toc.json שנוצר בשלב הקודם. שימו לב: השם של כל APK שהורדתם צריך להיות
"DownloadId.apk", כאשר DownloadId הוא המזהה המשמש להורדת ה-APK משיטת ההורדה של חבילות ה-APK שנוצרו.
עכשיו אפשר להשתמש בספרייה הזו בגרסה 1.15.2 ואילך של bundletool.
לדוגמה, bundletool install-apks --apks /path/to/created/directory.
[null,null,["עדכון אחרון: 2024-08-22 (שעון UTC)."],[[["Download all APKs generated by Google Play from your app bundle using the Generated APKs feature in the Google Play Developer API."],["A typical workflow involves uploading a bundle, assigning it to a track as a draft, downloading generated APKs, processing them, and then promoting the draft to a staged or full rollout."],["To use generated APKs with bundletool, create a directory containing a toc.json file with TargetingInfo from the API response and downloaded APKs named using their DownloadId."]]],["Generated APKs, from app bundles uploaded to Google Play Console, can be downloaded via the Google Play Developer API. The process involves creating an edit, uploading a bundle, assigning it to a draft track, and committing the edit. Then, the APKs are downloaded. Optionally, a new edit is created to promote the draft release, followed by another commit. To use APKs with `bundletool`, a `toc.json` file is generated and combined with the downloaded APKs in a directory, each named \"DownloadId.apk\".\n"]]