utils

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAndroidNDKUploadOptions added in v1.1.0

func BuildAndroidNDKUploadOptions(apiKey string, applicationId string, versionName string, versionCode string, projectRoot string, sharedObjectName string, overwrite bool) (map[string]string, error)

BuildAndroidNDKUploadOptions - Builds the upload options for processing dart files

func BuildAndroidProguardUploadOptions added in v1.1.0

func BuildAndroidProguardUploadOptions(apiKey string, applicationId string, versionName string, versionCode string, buildUuid string, overwrite bool) (map[string]string, error)

BuildAndroidProguardUploadOptions - Builds the upload options for processing dart files

func BuildDartUploadOptions added in v1.1.0

func BuildDartUploadOptions(apiKey string, uuid string, platform string, overwrite bool, appVersion string, appExtraVersion string) map[string]string

BuildDartUploadOptions - Builds the upload options for processing dart files

func BuildEndpointUrl

func BuildEndpointUrl(uri string, port int) (string, error)

func BuildFileList

func BuildFileList(paths []string) ([]string, error)

BuildFileList - Builds a list of files from a given path(s)

func BuildReactNativeAndroidUploadOptions added in v1.1.0

func BuildReactNativeAndroidUploadOptions(apiKey string, appVersion string, appVersionCode string, codeBundleId string, dev bool, projectRoot string, overwrite bool) (map[string]string, error)

func FileExists added in v1.1.0

func FileExists(path string) bool

func FilePathWalkDir

func FilePathWalkDir(root string) ([]string, error)

FilePathWalkDir - finds files within a given directory

func GetCommitHash added in v1.1.0

func GetCommitHash() string

GetCommitHash - Gets the commit hash from a repo

func GetRepoUrl added in v1.1.0

func GetRepoUrl(repoPath string) string

GetRepoUrl - Gets the URl of a git repo.

func GetSystemUser added in v1.1.0

func GetSystemUser() (string, error)

GetSystemUser - Gets username from the system

func GzipCompress added in v1.1.0

func GzipCompress(file string) (string, error)

func IsDir

func IsDir(path string) bool

IsDir - Checks if a provided path is a directory or not

func PrettyPrintJson added in v1.1.0

func PrettyPrintJson(str string) (string, error)

PrettyPrintJson - Prints JSON with indentations

func Unzip added in v1.1.0

func Unzip(path, outputPath string) error

func XorString added in v1.2.1

func XorString(string1 string, string2 string) string

XorString checks if one string is not empty and returns a second string if it is

Types

type AndroidOptions added in v1.1.0

type AndroidOptions struct {
	BuildUuid     string `help:"Module Build UUID"`
	Configuration string `help:"Build type, like 'debug' or 'release'"`
	VersionCode   string `help:"Module version code"`
	VersionName   string `help:"Module version name"`
}

type UploadPaths

type UploadPaths []string

func (UploadPaths) Validate

func (p UploadPaths) Validate() error

Validate that the path(s) exist

Jump to

Keyboard shortcuts

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