sdk

package
v2.0.0-...-968468f Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AndroidSdkInterface

type AndroidSdkInterface interface {
	GetAndroidHome() string
	CmdlineToolsPath() (string, error)
}

AndroidSdkInterface ...

type Environment

type Environment struct {
	AndroidHome    string // ANDROID_HOME
	AndroidSDKRoot string // ANDROID_SDK_ROOT
}

Environment is used to pass in environment variables used to locate Android SDK

func NewEnvironment

func NewEnvironment() *Environment

NewEnvironment gets needed environment variables

type Model

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

Model ...

func New

func New(androidHome string) (*Model, error)

New creates a Model with a supplied Android SDK path

func NewDefaultModel

func NewDefaultModel(envs Environment) (*Model, error)

NewDefaultModel locates Android SDK based on environement variables

func (*Model) CmdlineToolsPath

func (model *Model) CmdlineToolsPath() (string, error)

CmdlineToolsPath locates the command-line tools directory

func (*Model) GetAndroidHome

func (model *Model) GetAndroidHome() string

GetAndroidHome ...

func (*Model) LatestBuildToolPath

func (model *Model) LatestBuildToolPath(name string) (string, error)

LatestBuildToolPath ...

func (*Model) LatestBuildToolsDir

func (model *Model) LatestBuildToolsDir() (string, error)

LatestBuildToolsDir ...

Jump to

Keyboard shortcuts

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