1

我有一个带有一些托管配置的 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 不返回捆绑包的整个配置吗?

4

1 回答 1

1

谷歌已经修复了它,现在整个模式都被发送了。

{
  "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"
            }
          ]
        }
      ]
    }
  ]
}
于 2019-11-26T10:59:20.757 回答