בדיקת ההעברה של נכסים
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
השלבים במדריך הזה מאפשרים לכם לבדוק איך האפליקציה שלכם משתלבת עם Play Asset Delivery
כדי לאחזר חבילות נכסים.
בדיקות מקומיות
ב-Play Asset Delivery יש תמיכה בבדיקות מקומיות על ידי התקנת גרסה חדשה של
המשחק באמצעות bundletool
. שימוש בבדיקות מקומיות
למחזורים מהירים ואיטרטיביים, שלא צריך להעלות את המשחק ל-Google
שרתי Play. השלבים שצריך לבצע תלויים בשאלה אם
לפתח ב-Java, ב-Native או ב-Unity.
Java או Native
פועלים לפי השלבים הבאים כדי לבדוק את האפליקציה באופן מקומי:
יוצרים את ה-App Bundle.
יוצרים חבילות APK עם הדגל --local-testing
:
java -jar bundletool-all.jar build-apks --bundle=path/to/your/bundle.aab \
--output=output.apks --local-testing
מחברים מכשיר ומריצים את הפקודה bundletool
כדי לטעון את חבילות ה-APK ממקור אחר:
java -jar bundletool.jar install-apks --apks=output.apks
אחדות
ב-Unity Editor, בוחרים באפשרות Google > יצירה והפעלה.
התנהגות
install-time
חבילות יותקנו במהלך התקנת האפליקציות.
fast-follow
חבילות פועלות כמו on-demand
חבילות. כלומר, הם לא
מאוחזר באופן אוטומטי כשהמשחק מותקן ממקור לא ידוע. המפתחים צריכים לבקש
ידנית כשהמשחק מתחיל. לא נדרשים שינויים בקוד
באפליקציה שלך.
מגבלות
אלה המגבלות של הבדיקה המקומית:
- חבילות נשלפות מאחסון חיצוני במקום מ-Play, כך שאי אפשר לבדוק
אופן הפעולה של הקוד במקרה של שגיאות רשת.
- בדיקות מקומיות לא כוללות את תרחיש ההמתנה לרשת Wi-Fi.
- העדכונים לא נתמכים. לפני שתתקינו גרסה חדשה של
לבנות, להסיר באופן ידני את הגרסה הקודמת.
בדיקות באמצעות שיתוף פנימי של אפליקציות
ככל שמתקרבים אל רשימת המועמדים לפרסום, אפשר לנסות
להשתמש בהגדרות מציאותיות ככל האפשר כדי לוודא שהמשחק יניב ביצועים טובים.
טוב למשתמשים בסביבת הייצור. כדי לאמת את זה, אפשר להשתמש
שיתוף פנימי של אפליקציות
כדי לקבל קישור ניתן לשיתוף להורדת המשחק מ-Play בזמן
התנהגות זהה לזו של המשתמשים ברגע שהמשחק
פורסמה בחנות Play.
כדי לבדוק את העברת הנכסים באמצעות שיתוף פנימי של אפליקציות:
- יוצרים את ה-App Bundle.
- פועלים לפי ההוראות של Play Console
לשתף את האפליקציה עם גורמים פנימיים.
- במכשיר הבדיקה, לוחצים על הקישור הפנימי לשיתוף אפליקציות של הגרסה של
האפליקציה שהעלית עכשיו.
- מתקינים את האפליקציה מהדף של חנות Google Play שמופיע אחרי שלוחצים על
קישור.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[],null,["# Test asset delivery\n\nUse the steps in this guide to test how your app integrates Play Asset Delivery\nto retrieve asset packs.\n\nLocal testing\n-------------\n\nPlay Asset Delivery supports local testing by installing a new version of the\ngame using [`bundletool`](/studio/command-line/bundletool). Use local testing\nfor quick, iterative cycles as it avoids the need to upload the game to Google\nPlay servers. The steps you need to take depend on whether you're\ndeveloping in Java, native, or Unity.\n\n- [Java](#steps-native-java)\n- [Native](#steps-native-java)\n- [Unity](#steps-unity)\n\n### Java or native\n\nFollow these steps to test your app locally:\n\n1. [Build your app bundle](/guide/playcore/asset-delivery#next-step-instructions).\n\n2. Generate APKs with the `--local-testing` flag:\n\n ```\n java -jar bundletool-all.jar build-apks --bundle=path/to/your/bundle.aab \\\n --output=output.apks --local-testing\n ```\n3. Connect a device and run `bundletool` to sideload the APKs:\n\n ```\n java -jar bundletool.jar install-apks --apks=output.apks\n ```\n\n### Unity\n\nIn the Unity Editor, select **Google \\\u003e Build and Run**.\n\n### Behavior\n\n`install-time` packs will be installed during the app installation process.\n\n`fast-follow` packs behave as `on-demand` packs. That is, they won't be\nautomatically fetched when the game is sideloaded. Developers need to request\nthem manually when the game starts; this does not require any code changes in\nyour app.\n\n### Limitations\n\nThe following are limitations of local testing:\n\n- Packs fetch from external storage instead of Play, so you cannot test how your code behaves in the case of network errors.\n- Local testing does not cover the wait-for-Wi-Fi scenario.\n- Updates are not supported. Before installing a new version of your build, manually uninstall the previous version.\n\nTesting with internal app sharing\n---------------------------------\n\nAs you get closer to having a release candidate, test\nyour game using as realistic a configuration as possible to make sure that your game will perform\nwell for your users in production. To validate this, you can use\n[internal app sharing](https://support.google.com/googleplay/android-developer/answer/9303479)\nto get a sharable link that you can use to download the game from Play while\ngetting the exact same behaviour as your users will once the game is\npublished to the Play Store.\n\nTo test Asset Delivery using internal app sharing, do the following:\n\n1. Build your app bundle.\n2. Follow the Play Console instructions on how to [share your app internally](https://support.google.com/googleplay/android-developer/answer/9303479).\n3. On the test device, click the internal app-sharing link for the version of your app you just uploaded.\n4. Install the app from the Google Play Store page you see after clicking the link."]]