Documentation ¶
Index ¶
- func AndroidEnv(f *Flags, goarch string) ([]string, error)
- func AndroidPlatformPath(f *Flags) (string, error)
- func AndroidSDKPath(f *Flags) (string, error)
- func BuildAAR(f *Flags, androidDir string, pkgs []*build.Package, androidArchs []string, ...) (err error)
- func BuildJar(f *Flags, w io.Writer, srcDir string, tmpdir string) error
- func GetAndroidABI(arch string) string
- func NDKPath(f *Flags) (string, error)
- func ValidateAndroidInstall(f *Flags) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AndroidEnv ¶
func AndroidPlatformPath ¶
AndroidPlatformPath returns an android SDK platform directory under ANDROID_HOME. If there are multiple platforms that satisfy the minimum version requirement AndroidPlatformPath returns the latest one among them.
func AndroidSDKPath ¶
func BuildAAR ¶
func BuildAAR(f *Flags, androidDir string, pkgs []*build.Package, androidArchs []string, tmpdir string, aarPath string) (err error)
AAR is the format for the binary distribution of an Android Library Project and it is a ZIP archive with extension .aar. http://tools.android.com/tech-docs/new-build-system/aar-format
These entries are directly at the root of the archive.
AndroidManifest.xml (mandatory) classes.jar (mandatory) assets/ (optional) jni/<abi>/libgojni.so R.txt (mandatory) res/ (mandatory) libs/*.jar (optional, not relevant) proguard.txt (optional) lint.jar (optional, not relevant) aidl (optional, not relevant)
javac and jar commands are needed to build classes.jar.
func GetAndroidABI ¶
func ValidateAndroidInstall ¶
func ValidateAndroidInstall(f *Flags) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.