简体   繁体   English

Android:测试基于国家的条件特征交付

[英]Android: test conditional feature delivery based on country

I will use a dynamic feature in an android app.我将在 android 应用程序中使用动态功能。 This feature should be available in a specific country.此功能应在特定国家/地区可用。 So I use the country condition for the dynamic feature module:所以我将国家条件用于动态功能模块:

My code:我的代码:

 <dist:module dist:title="@string/title_dynamicfeaturede"> <dist:fusing dist:include="true" /> <dist:delivery> <dist:install-time> <dist:conditions> <dist:user-countries dist:exclude="false"> <dist:country dist:code="DE"/> </dist:user-countries> </dist:conditions> </dist:install-time> </dist:delivery> </dist:module>

When I try to test this condition using the bundleTool , the condition will be ignored.当我尝试使用bundleTool测试此条件时,该条件将被忽略。 Is there any way to test this condition without using the Playstore?有没有办法在不使用 Playstore 的情况下测试这种情况?

based on android doc, you should set the flag dist:user-countries dist:exclude=" true " to set the filter on.基于 android 文档,您应该设置标志 dist:user-countries dist:exclude=" true " 来设置过滤器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 基于用户国家的功能模块安装时动态交付 - Install-time dynamic delivery of feature module based on user's country 按需功能交付中的 Glance 或 Android RemoteView - Glance or Android RemoteView in on demand feature delivery Play 商店中是否有支持动态交付功能的 Android 应用程序? - Is there any Android app in Play Store that supports the dynamic delivery feature? 模拟器Android上的“ Now on Tap”功能测试 - “Now on Tap” feature test on emulator Android 在Android上编写Deeplink功能的单元测试? - Writing unit test for Deeplink feature on Android? Android Studio 2.2中的Espresso测试录制功能 - Espresso test recording feature in Android Studio 2.2 如何根据用户在Android中输入的国家/地区访问或获取ISO3国家/地区代码 - How to access or get ISO3 Country code based on country entered by user in Android 根据用户的当前位置获取国家/地区代码Android - Get country code based on user's current location Android 基于Android国家/地区的应用未显示在Google搜索中 - Android country-based App not showing on Google search android动态资产交付 - android dynamic asset delivery
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM