آزمایش تحویل دارایی
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
از مراحل این راهنما برای آزمایش نحوه ادغام برنامه Play Asset Delivery برای بازیابی بستههای دارایی استفاده کنید.
تست محلی
Play Asset Delivery با نصب نسخه جدیدی از بازی با استفاده از bundletool
از آزمایش محلی پشتیبانی می کند. از تست محلی برای چرخه های سریع و تکراری استفاده کنید زیرا از آپلود بازی در سرورهای Google Play جلوگیری می کند. مراحلی که باید بردارید بستگی به این دارد که در جاوا، بومی یا Unity در حال توسعه هستید.
جاوا یا بومی
این مراحل را برای آزمایش برنامه خود به صورت محلی دنبال کنید:
بسته نرم افزاری خود را بسازید .
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، Google > Build and Run را انتخاب کنید.
رفتار
بسته های install-time
در طول فرآیند نصب برنامه نصب می شوند.
بسته های fast-follow
مانند بسته های on-demand
عمل می کنند. به این معنی که هنگام بارگذاری جانبی بازی، آنها به طور خودکار واکشی نمی شوند. هنگام شروع بازی، توسعه دهندگان باید آنها را به صورت دستی درخواست کنند. این نیازی به تغییر کد در برنامه شما ندارد.
محدودیت ها
موارد زیر محدودیت های آزمایش محلی است:
- بستهها به جای Play از حافظه خارجی واکشی میشوند، بنابراین نمیتوانید نحوه عملکرد کدتان را در صورت بروز خطاهای شبکه آزمایش کنید.
- آزمایش محلی سناریوی انتظار برای Wi-Fi را پوشش نمی دهد.
- به روز رسانی ها پشتیبانی نمی شوند. قبل از نصب نسخه جدید بیلد خود، نسخه قبلی را به صورت دستی حذف نصب کنید.
تست با اشتراک گذاری برنامه داخلی
با نزدیکتر شدن به داشتن یک نامزد انتشار، بازی خود را با استفاده از یک پیکربندی واقعی تا حد ممکن آزمایش کنید تا مطمئن شوید که بازی شما برای کاربران شما در تولید عملکرد خوبی دارد. برای تأیید این موضوع، میتوانید از اشتراکگذاری داخلی برنامه برای دریافت یک پیوند قابل اشتراکگذاری استفاده کنید که میتوانید از آن برای دانلود بازی از Play استفاده کنید و در عین حال دقیقاً همان رفتاری را که کاربران شما پس از انتشار بازی در فروشگاه Play منتشر میکنند، نشان دهید.
برای آزمایش تحویل دارایی با استفاده از اشتراکگذاری داخلی برنامه، موارد زیر را انجام دهید:
- بسته نرم افزاری خود را بسازید.
- دستورالعملهای کنسول Play را در مورد نحوه اشتراکگذاری داخلی برنامه خود دنبال کنید.
- در دستگاه آزمایشی، روی پیوند اشتراکگذاری داخلی برنامه برای نسخه برنامهای که به تازگی آپلود کردهاید، کلیک کنید.
- برنامه را از صفحه فروشگاه Google Play که پس از کلیک روی پیوند مشاهده می کنید، نصب کنید.
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-29 بهوقت ساعت هماهنگ جهانی."],[],[],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."]]