upload

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(paths []string, options map[string]string, endpoint string, timeout int, retries int, overwrite bool,
	apiKey string, failOnUploadError bool) error

func Dart

func Dart(paths []string, version string, versionCode string, bundleVersion string, iosAppPath string, endpoint string, timeout int, retries int, overwrite bool, apiKey string, failOnUploadError bool) error

func DwarfDumpUuid

func DwarfDumpUuid(symbolFile string, dwarfFile string, arch string) (string, error)

DwarfDumpUuid - Gets the UUID/Build ID from the Dwarf debug info of a file for a given Arch

func GetArchFromElfFile

func GetArchFromElfFile(symbolFile string) (string, error)

GetArchFromElfFile - Gets the Arch from the symbol file to help with getting the UUID from the built iOS app

func GetBuildIdFromElfFile

func GetBuildIdFromElfFile(symbolFile string) (string, error)

GetBuildIdFromElfFile - Gets the build ID from the symbol file

func GetIosAppPath

func GetIosAppPath(symbolFile string) (string, error)

GetIosAppPath - Gets the path to the built iOS app relative to the symbol files

func ProcessAndroidAab added in v1.1.0

func ProcessAndroidAab(apiKey string, applicationId string, buildUuid string, paths []string, projectRoot string, versionCode string, versionName string, endpoint string, failOnUploadError bool, retries int, timeout int, overwrite bool, dryRun bool) error

func ProcessAndroidNDK added in v1.1.0

func ProcessAndroidNDK(apiKey string, applicationId string, androidNdkRoot string, appManifestPath string, paths []string, projectRoot string, variant string, versionCode string, versionName string, endpoint string, failOnUploadError bool, retries int, timeout int, overwrite bool, dryRun bool) error

func ProcessAndroidProguard added in v1.1.0

func ProcessAndroidProguard(apiKey string, applicationId string, appManifestPath string, buildUuid string, paths []string, variant string, versionCode string, versionName string, endpoint string, retries int, timeout int, overwrite bool, dryRun bool) error

func ProcessReactNativeAndroid added in v1.1.0

func ProcessReactNativeAndroid(apiKey string, appManifestPath string, bundlePath string, codeBundleId string, dev bool, paths []string, projectRoot string, variant string, versionName string, versionCode string, sourceMapPath string, endpoint string, timeout int, retries int, overwrite bool, dryRun bool) error

func ReadElfFile

func ReadElfFile(symbolFile string) (*elf.File, error)

ReadElfFile - Gets all data from the symbol file

Types

type AndroidAabMapping added in v1.1.0

type AndroidAabMapping struct {
	ApplicationId string            `help:"Module application identifier"`
	BuildUuid     string            `help:"Module Build UUID"`
	Path          utils.UploadPaths `arg:"" name:"path" help:"(required) Path to directory or file to upload" type:"path"`
	ProjectRoot   string            `help:"path to remove from the beginning of the filenames in the mapping file" type:"path"`
	VersionCode   string            `help:"Module version code"`
	VersionName   string            `help:"Module version name"`
}

type AndroidNdkMapping added in v1.1.0

type AndroidNdkMapping struct {
	ApplicationId  string            `help:"Module application identifier"`
	AndroidNdkRoot string            `help:"Path to Android NDK installation ($ANDROID_NDK_ROOT)"`
	AppManifest    string            `help:"Path to app manifest file" type:"path"`
	Path           utils.UploadPaths `arg:"" name:"path" help:"Path to directory or file to upload" type:"path" default:"."`
	ProjectRoot    string            `help:"path to remove from the beginning of the filenames in the mapping file" type:"path"`
	Variant        string            `help:"Build type, like 'debug' or 'release'"`
	VersionCode    string            `help:"Module version code"`
	VersionName    string            `help:"Module version name"`
}

type AndroidProguardMapping added in v1.1.0

type AndroidProguardMapping struct {
	ApplicationId string            `help:"Module application identifier"`
	AppManifest   string            `help:"Path to app manifest file" type:"path"`
	BuildUuid     string            `help:"Module Build UUID"`
	Path          utils.UploadPaths `arg:"" name:"path" help:"Path to directory or file to upload" type:"path" default:"."`
	Variant       string            `help:"Build type, like 'debug' or 'release'"`
	VersionCode   string            `help:"Module version code"`
	VersionName   string            `help:"Module version name"`
}

type DartSymbol

type DartSymbol struct {
	Path             utils.UploadPaths `arg:"" name:"path" help:"(required) Path to directory or file to upload" type:"path"`
	IosAppPath       string            `help:"(optional) the path to the built iOS app."`
	VersionName      string            `help:"The version of the application." xor:"app-version,version-name"`
	AppVersion       string            `help:"(deprecated) The version of the application." xor:"app-version,version-name"`
	VersionCode      string            `help:"The version code for the application (Android only)." xor:"app-version-code,version-code"`
	AppVersionCode   string            `help:"(deprecated) The version code for the application (Android only)." xor:"app-version-code,version-code"`
	BundleVersion    string            `help:"The bundle version for the application (iOS only)." xor:"app-bundle-version,bundle-version"`
	AppBundleVersion string            `help:"(deprecated) The bundle version for the application (iOS only)." xor:"app-bundle-version,bundle-version"`
}

type DiscoverAndUploadAny

type DiscoverAndUploadAny struct {
	Path          utils.UploadPaths `arg:"" name:"path" help:"(required) Path to directory or file to upload" type:"path"`
	UploadOptions map[string]string `help:"Additional arguments to pass to the upload request" mapsep:","`
}

type ReactNativeAndroid added in v1.1.0

type ReactNativeAndroid struct {
	AppManifest  string            `help:"(required) Path to directory or file to upload" type:"path"`
	Bundle       string            `help:"Path to the bundle file" type:"path"`
	CodeBundleId string            `help:"A unique identifier to identify a code bundle release when using tools like CodePush"`
	Dev          bool              `help:"Indicates whether the application is a debug or release build"`
	Path         utils.UploadPaths `arg:"" name:"path" help:"Path to directory or file to upload" type:"path" default:"."`
	ProjectRoot  string            `help:"path to remove from the beginning of the filenames in the mapping file" type:"path"`
	SourceMap    string            `help:"Path to the source map file" type:"path"`
	Variant      string            `help:"Build type, like 'debug' or 'release'"`
	Version      string            `help:"(deprecated) The version name of the application."`
	VersionName  string            `help:"The version name of the application."`
	VersionCode  string            `help:"The version code for the application (Android only)."`
}

Jump to

Keyboard shortcuts

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