Documentation ¶
Index ¶
- func AndroidBuildToolsPath() string
- func CopyExeFile(src, tgt string) error
- func CopyFile(source, target string) error
- func EnsureSubDir(parent, name string) string
- func Exists(path string) bool
- func IsAndroid(os string) bool
- func IsIOS(os string) bool
- func IsMobile(os string) bool
- func RequireAndroidSDK() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AndroidBuildToolsPath ¶
func AndroidBuildToolsPath() string
AndroidBuildToolsPath tries to find the location of the "build-tools" directory. This depends on ANDROID_HOME variable, so you should call RequireAndroidSDK() first.
func CopyExeFile ¶
CopyExeFile copies the content of an executable file, source, into target path.
func EnsureSubDir ¶
EnsureSubDir will make sure a named directory exists within the parent - creating it if not.
func IsAndroid ¶
IsAndroid returns true if the given os parameter represents one of the Android targets.
func IsIOS ¶
IsIOS returns true if the given os parameter represents one of the iOS targets (ios, iossimulator)
func IsMobile ¶
IsMobile returns true if the given os parameter represents a platform handled by gomobile.
func RequireAndroidSDK ¶
func RequireAndroidSDK() error
RequireAndroidSDK will return an error if it cannot establish the location of a valid Android SDK installation. This is currently deduced using ANDROID_HOME environment variable.
Types ¶
This section is empty.