为什么 AMAPI 从我的模式中遗漏了一些托管属性?
Why the AMAPI misses some managed properties from my schema?
我有一个带有一些托管配置的 Android 应用程序。但是当我向 AMAPI 询问此应用程序的模式时,并非所有限制都被检索到。
这是架构:
<restrictions xmlns:android="http://schemas.android.com/apk/res/android">
<restriction
android:description="@string/column_number_description"
android:key="column_number"
android:restrictionType="integer"
android:title="@string/column_number_title" />
<restriction
android:description="@string/status_bar_color_description"
android:key="status_bar_color"
android:restrictionType="string"
android:title="@string/status_bar_color_title" />
<restriction
android:description="@string/background_url_description"
android:key="background_url"
android:restrictionType="string"
android:title="@string/background_url_title" />
<restriction
android:description="@string/authorized_app_list_description"
android:key="authorized_app_list"
android:restrictionType="bundle_array"
android:title="@string/authorized_app_list_title">
<restriction
android:key="authorized_app"
android:restrictionType="bundle"
android:title="@string/authorized_app_title">
<restriction
android:key="package_name"
android:restrictionType="string"
android:title="@string/authorized_app_package_name_title" />
</restriction>
</restriction>
</restrictions>
这里是 AMAPI 对托管属性的响应:
{
"managedProperties": [
{
"key": "column_number",
"type": "INTEGER",
"title": "Column number",
"description": "Set the number of column"
},
{
"key": "status_bar_color",
"type": "STRING",
"title": "Status bar color",
"description": "Set the color of the status bar"
},
{
"key": "background_url",
"type": "STRING",
"title": "Background url",
"description": "Url of the background to download to be displayed in the application"
},
{
"key": "authorized_app_list",
"type": "BUNDLE_ARRAY",
"title": "Authorized app list",
"description": "Set the list of app that will be displayed",
"nestedProperties": [
{
"key": "authorized_app",
"type": "BUNDLE",
"title": "Authorized app"
}
]
}
]
}
您知道为什么 AMAPI 没有 return 捆绑包的整个配置吗?
已由 Google 修复,现在已发送整个架构。
{
"managedProperties": [
{
"key": "column_number",
"type": "INTEGER",
"title": "Column number",
"description": "Set the number of column"
},
{
"key": "status_bar_color",
"type": "STRING",
"title": "Status bar color",
"description": "Set the color of the status bar"
},
{
"key": "background_url",
"type": "STRING",
"title": "Background url",
"description": "Url of the background to download to be displayed in the application"
},
{
"key": "authorized_app_list",
"type": "BUNDLE_ARRAY",
"title": "Authorized app list",
"description": "Set the list of app that will be displayed",
"nestedProperties": [
{
"key": "authorized_app",
"type": "BUNDLE",
"title": "Authorized app",
"nestedProperties": [
{
"key": "package_name",
"type": "STRING",
"title": "App package name"
}
]
}
]
}
]
}
我有一个带有一些托管配置的 Android 应用程序。但是当我向 AMAPI 询问此应用程序的模式时,并非所有限制都被检索到。
这是架构:
<restrictions xmlns:android="http://schemas.android.com/apk/res/android">
<restriction
android:description="@string/column_number_description"
android:key="column_number"
android:restrictionType="integer"
android:title="@string/column_number_title" />
<restriction
android:description="@string/status_bar_color_description"
android:key="status_bar_color"
android:restrictionType="string"
android:title="@string/status_bar_color_title" />
<restriction
android:description="@string/background_url_description"
android:key="background_url"
android:restrictionType="string"
android:title="@string/background_url_title" />
<restriction
android:description="@string/authorized_app_list_description"
android:key="authorized_app_list"
android:restrictionType="bundle_array"
android:title="@string/authorized_app_list_title">
<restriction
android:key="authorized_app"
android:restrictionType="bundle"
android:title="@string/authorized_app_title">
<restriction
android:key="package_name"
android:restrictionType="string"
android:title="@string/authorized_app_package_name_title" />
</restriction>
</restriction>
</restrictions>
这里是 AMAPI 对托管属性的响应:
{
"managedProperties": [
{
"key": "column_number",
"type": "INTEGER",
"title": "Column number",
"description": "Set the number of column"
},
{
"key": "status_bar_color",
"type": "STRING",
"title": "Status bar color",
"description": "Set the color of the status bar"
},
{
"key": "background_url",
"type": "STRING",
"title": "Background url",
"description": "Url of the background to download to be displayed in the application"
},
{
"key": "authorized_app_list",
"type": "BUNDLE_ARRAY",
"title": "Authorized app list",
"description": "Set the list of app that will be displayed",
"nestedProperties": [
{
"key": "authorized_app",
"type": "BUNDLE",
"title": "Authorized app"
}
]
}
]
}
您知道为什么 AMAPI 没有 return 捆绑包的整个配置吗?
已由 Google 修复,现在已发送整个架构。
{
"managedProperties": [
{
"key": "column_number",
"type": "INTEGER",
"title": "Column number",
"description": "Set the number of column"
},
{
"key": "status_bar_color",
"type": "STRING",
"title": "Status bar color",
"description": "Set the color of the status bar"
},
{
"key": "background_url",
"type": "STRING",
"title": "Background url",
"description": "Url of the background to download to be displayed in the application"
},
{
"key": "authorized_app_list",
"type": "BUNDLE_ARRAY",
"title": "Authorized app list",
"description": "Set the list of app that will be displayed",
"nestedProperties": [
{
"key": "authorized_app",
"type": "BUNDLE",
"title": "Authorized app",
"nestedProperties": [
{
"key": "package_name",
"type": "STRING",
"title": "App package name"
}
]
}
]
}
]
}