Skip to content

新功能:通过 API 上传 App 支持显示自定义字段 #178

Description

@icyleaf

起因

Zealot 在上传 App 的版本详情页提供默认一系列的字段参数值,包括:

  • 上传版本号:从 1 开始自增
  • 平台:支持 iOS 和 Android
  • 版本信息:1.0.0 (1.0)
  • 打包类型:debug/adhoc/inhouse/release
  • App 体积: 20MB
  • 上传渠道: Web/Fastlane/API/Jenkins 等
  • Git 分支名
  • Git Commit SHA
  • 上传时间: 时间戳

为了方便广大开发者不同的需求,现开放自定义字段用于展示你希望显示的字段信息,比如 API 环境:development/staging/production 等。

定义

App 上传接口新增一个 custom_fields 字段接收一个 json 的数组字符串,每个数组是一个字典,字典结构如下:

  • icon: 支持 fontawesome v4 的 icon 名,比如 building-o,不需要 fa- 开头
  • value: 显示的文字
  • title: 提示文案,可要可不要

举个例子:

[
  {
    "icon": "building-o",
    "value": "development",
    "title": "API 环境"
  }
]

Web 就会显示如下:

WX20200417-160051@2x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions