[英]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.