cmd

package
v0.0.0-...-164d800 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

README

android sdk and ndk

For Local and CI we need a clean way to install

https://github.com/google/mediapipe/blob/master/setup_android_sdk_and_ndk.sh

Test it and it is works we can then integrate into seeder

Make sure we output the changes to the bash or zsh also

Make sure we can update when they do fastlane ?

otehr ?

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AndroidEnv

func AndroidEnv(f *Flags, goarch string) ([]string, error)

func AndroidPlatformPath

func AndroidPlatformPath(f *Flags) (string, error)

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 AndroidSDKPath(f *Flags) (string, error)

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 BuildJar

func BuildJar(f *Flags, w io.Writer, srcDir string, tmpdir string) error

func GetAndroidABI

func GetAndroidABI(arch string) string

func NDKPath

func NDKPath(f *Flags) (string, error)

func ValidateAndroidInstall

func ValidateAndroidInstall(f *Flags) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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