service

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(args *CmdArgs) (err error)

func ReadMetaDataFromLocal

func ReadMetaDataFromLocal(file string, data any) error

ReadMetaDataFromLocal 读取本地 json 文件

func WriteMetaDataToLocal

func WriteMetaDataToLocal(file string, data interface{}) error

WriteMetaDataToLocal 覆盖写入本地 json 文件

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App 应用程序包定义

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)

func (*AppleService) Ipa

func (s *AppleService) Ipa() error

Ipa ipa 命令处理

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

func (*GoogleService) InitLocal

func (s *GoogleService) InitLocal(ctx context.Context) error

尝试拉取远程数据

type GoogleVersionLocalization

type GoogleVersionLocalization struct {
	ReleaseNotes string `json:"releaseNotes"`
}

type Service

type Service struct {
	CmdArgs *CmdArgs
}

type VersionOnline

type VersionOnline struct {
	VersionData asc.AppStoreVersionLocalization
	IsWhatNew   bool
}

VersionOnline 从线上读取版本信息

type VersionOnlineMap

type VersionOnlineMap map[string]VersionOnline

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL