برای محدود کردن توزیع برنامه خود از محدودیت مخاطب انتشار استفاده کنید
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
با استفاده از محدودیت مخاطب انتشار در بسته برنامه یا APK خود، میتوانید احتمال توزیع تصادفی نسخهای از برنامهتان را که هنوز آماده نیست تا حد زیادی کاهش دهید. میتوانید از این برای جلوگیری از انتشار یک ساخت برای کاربران تولیدی از طریق کنسول Play یا حتی توزیع آن از طریق کنسول Play استفاده کنید.
استفاده از محدودیت های مخاطب را آزاد کنید
برای استفاده از محدودیت مخاطب انتشار، باید یک عنصر <meta-data> را به عنصر <application> در فایل AndroidManifest.xml خود اضافه کنید. این عنصر کنترل می کند که توزیع ساخت تا چه اندازه می تواند پیشرفت کند. تگ <meta-data> باید دارای ویژگی android:value که روی رشته خالی تنظیم شده باشد و ویژگی android:name باید یکی از مقادیر زیر باشد:
بسته نرم افزاری یا APK را می توان در Play Console آپلود کرد و از طریق اشتراک گذاری داخلی برنامه یا هر مسیر آزمایشی، از جمله آزمایش باز، بین کاربران توزیع کرد. نمی توان آن را در یک نسخه در مسیر تولید گنجاند.
این برای جلوگیری از انتشار تصادفی نسخه های آزمایشی برنامه ها برای کاربران تولیدی در نظر گرفته شده است.
بسته نرم افزاری یا APK را می توان در Play Console آپلود کرد و از طریق اشتراک گذاری داخلی برنامه یا هر مسیر آزمایشی بسته ای بین کاربران توزیع کرد. نمی توان آن را در یک نسخه در آهنگ های تولید یا تست باز گنجاند.
این به منظور جلوگیری از انتشار تصادفی نسخه های آزمایشی برنامه ها برای تعداد زیادی از کاربران است.
بسته نرم افزاری یا APK را می توان در Play Console آپلود کرد و از طریق اشتراک گذاری داخلی برنامه یا آهنگ تست داخلی بین کاربران توزیع کرد. نمیتوان آن را در نسخههای تولید، تست باز یا تست بسته گنجاند.
هدف از این کار جلوگیری از انتشار تصادفی نسخه های آزمایشی برنامه های خارج از تیم شماست.
بسته نرم افزاری یا APK را نمی توان در Play Console آپلود کرد یا از طریق آن توزیع کرد.
هدف از این کار جلوگیری از انتشار نسخههای توسعهدهنده برنامهها برای هر کاربر است. به عنوان مثال، ساختنی که ویژگیهای امنیتی کلیدی آن برای رفع اشکال آسانتر غیرفعال شده است.
به عنوان مثال، برای جلوگیری از انتشار بیلد برای کاربران تولیدی، فایل AndroidManifest.xml خود را به صورت زیر به روز کنید:
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و 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,["# Use a release audience restriction to limit your app's distribution\n\nYou can greatly reduce the chances of accidentally distributing a version of\nyour app that isn't ready yet by using a release audience restriction in your\napp bundle or APK. You can use this to prevent a build from being released to\nproduction users through Play Console, or even from being distributed through\nPlay Console at all.\n\nRelease audience restrictions usage\n-----------------------------------\n\nTo use a release audience restriction, you must add a `\u003cmeta-data\u003e` element to\nthe `\u003capplication\u003e` element in your `AndroidManifest.xml` file. This element\ncontrols how far the distribution of the build can progress.\nThe `\u003cmeta-data\u003e` tag must have its `android:value` attribute set to the empty\nstring, and the `android:name` attribute must be one of the following values:\n\n| Name | Effect |\n|-----------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` com.google.android.play.largest_release_audience.NONPRODUCTION ` | The app bundle or APK can be uploaded to Play Console and distributed to users through Internal App Sharing or any testing track, including open testing. It **cannot** be included in a release on the Production track. This is intended to prevent accidental release of test versions of apps to production users. |\n| ` com.google.android.play.largest_release_audience.CLOSED_TESTING ` | The app bundle or APK can be uploaded to Play Console and distributed to users through Internal App Sharing or any closed testing track. It **cannot** be included in a release on the Production or Open Testing tracks. This is intended to prevent accidental release of test versions of apps to a large number of users. |\n| ` com.google.android.play.largest_release_audience.INTERNAL_TESTING ` | The app bundle or APK can be uploaded to Play Console and distributed to users through Internal App Sharing or the Internal Test Track. It **cannot** be included in a release on the Production, Open Testing, or Closed Testing tracks. This is intended to prevent accidental release of test versions of apps outside your immediate team. |\n| ` com.google.android.play.largest_release_audience.STOPSHIP ` | The app bundle or APK cannot be uploaded to or distributed through Play Console. This is intended to prevent releasing development-only versions of apps to any users. For example, a build which has key security features disabled for easier debugging. |\n\n| **Note:** Because the restriction is built into your app bundle or APK, you can only change it by compiling a new build of your app with a new versionCode.\n\nFor example, to prevent a build being released to production users, update your\n`AndroidManifest.xml` file as follows: \n\n \u003cmanifest ... \u003e\n \u003capplication ... \u003e\n ...\n \u003cmeta-data\n android:name=\"com.google.android.play.largest_release_audience.NONPRODUCTION\"\n android:value=\"\" /\u003e\n \u003c/application\u003e\n \u003c/manifest\u003e\n\n| **Important:** The `\u003cmeta-data\u003e` element must be a direct child of the `\u003capplication\u003e` element in order for it to be detected by Google Play. It won't be detected if it is part of an `\u003cactivity\u003e` or `\u003cservice\u003e` element. If there are multiple restrictions in your application manifest, then the most restrictive will be applied.\n| **Tip:** If you have an Android library that adds some optional features for testing or internal debugging, you can add the restriction to the library's manifest. Any build which includes the library will then automatically include the release audience restriction."]]