Documentation ¶
Index ¶
- func InitConfig(args *CmdArgs) (err error)
- func ReadMetaDataFromLocal(file string, data any) error
- func WriteMetaDataToLocal(file string, data interface{}) error
- type App
- type AppStoreAuth
- type AppleAppInfo
- type AppleCmdArgs
- type AppleService
- type AppleVersionInfo
- type AppleVersionLocalization
- type CmdArgs
- type GoogleCmdArgs
- type GoogleService
- type GoogleVersionLocalization
- type Service
- type VersionOnline
- type VersionOnlineMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func ReadMetaDataFromLocal ¶
ReadMetaDataFromLocal 读取本地 json 文件
func WriteMetaDataToLocal ¶
WriteMetaDataToLocal 覆盖写入本地 json 文件
Types ¶
type AppStoreAuth ¶
type AppStoreAuth struct { // Key ID for the given private key, described in App Store Connect KeyID string `toml:"KeyID"` // Issuer ID for the App Store Connect team IssuerID string `toml:"IssuerID"` // A duration value for the lifetime of a token. App Store Connect does not accept a token with a lifetime of longer than 20 minutes ExpiryDuration time.Duration `toml:"ExpiryDuration"` // The bytes of the PKCS#8 private key created on App Store Connect. Keep this key safe as you can only download it once. PrivateKeyFile string `toml:"PrivateKeyFile"` // contains filtered or unexported fields }
type AppleAppInfo ¶
type AppleAppInfo struct { ID string `json:"id"` asc.AppAttributes }
AppleAppInfo 自定义 app info
type AppleCmdArgs ¶
type AppleCmdArgs struct { // Init 是否从 api 拉取数据并覆盖本地设置 Init bool // 是否将本地元数据同步到api Sync bool BundleID string Platform string Version string Auth AppStoreAuth }
AppleCmdArgs apple 关联的命令行参数
type AppleService ¶
type AppleService struct { Service AppleArgs *AppleCmdArgs SubDir string // contains filtered or unexported fields }
AppleService apple
func NewAppleService ¶
func NewAppleService(cmdArgs *CmdArgs, appleArgs *AppleCmdArgs) (*AppleService, error)
type AppleVersionInfo ¶
type AppleVersionInfo struct { ID string `json:"id"` asc.AppStoreVersionAttributes }
AppleVersionInfo 自定义 app 版本信息
type AppleVersionLocalization ¶
type AppleVersionLocalization struct {
asc.AppStoreVersionLocalizationAttributes
}
AppleAppStoreVersionLocalization 自定义本地化信息
type CmdArgs ¶
type CmdArgs struct { // Workdir 工作目录 Workdir com.Workdir RootPath string // ConfigFile 配置文件 ConfigFile string }
CmdLineArgs 命令行参数
type GoogleCmdArgs ¶
type GoogleCmdArgs struct { Platform string FilPath string PackageName string Track []string ReleaseNotesFilePath string Timeout string // Init 是否从 api 拉取数据并覆盖本地设置 Init bool // 是否将本地元数据同步到api Sync bool }
GoogleCmdArgs google 命令行操作
type GoogleService ¶
type GoogleService struct { Service GoogleArgs *GoogleCmdArgs App App SubDir string }
GoogleService google service
func NewGoogleService ¶
func NewGoogleService(cmdArgs *CmdArgs, googleArgs *GoogleCmdArgs) (*GoogleService, error)
func (*GoogleService) Do ¶
func (s *GoogleService) Do(ext string) (err error)
Do 开发处理 ext aab or apk
type GoogleVersionLocalization ¶
type GoogleVersionLocalization struct {
ReleaseNotes string `json:"releaseNotes"`
}
type VersionOnline ¶
type VersionOnline struct { VersionData asc.AppStoreVersionLocalization IsWhatNew bool }
VersionOnline 从线上读取版本信息
type VersionOnlineMap ¶
type VersionOnlineMap map[string]VersionOnline
Click to show internal directories.
Click to hide internal directories.