mobile

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: BSD-3-Clause Imports: 33 Imported by: 0

README

This directory is a partial clone of the golang.org/x/mobile/cmd/gomobile package.
It also includes the golang.org/x/mobile/internal/bindata as a subpackage.

The full project, it's license and command line tools can be found at https://github.com/golang/mobile

This package is for the purpose of removing a runtime dependency and will be removed in due course.

Documentation

Overview

This directory is a partial clone of the golang.org/x/mobile/cmd/gomobile package. It also includes the golang.org/x/mobile/internal/bindata as a subpackage.

The full project, it's license and command line tools can be found at https://github.com/golang/mobile

This package is for the purpose of removing a runtime dependency and will be removed in due course.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunNewBuild

func RunNewBuild(target, appID, icon string) error

Types

type Writer

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

Writer implements an APK file writer.

func NewWriter

func NewWriter(w io.Writer, priv *rsa.PrivateKey) *Writer

NewWriter returns a new Writer writing an APK file to w. The APK will be signed with key.

func (*Writer) Close

func (w *Writer) Close() error

Close finishes writing the APK. This includes writing the manifest and signing the archive, and writing the ZIP central directory.

It does not close the underlying writer.

func (*Writer) Create

func (w *Writer) Create(name string) (io.Writer, error)

Create adds a file to the APK archive using the provided name.

The name must be a relative path. The file's contents must be written to the returned io.Writer before the next call to Create or Close.

Directories

Path Synopsis
Package binres implements encoding and decoding of android binary resources.
Package binres implements encoding and decoding of android binary resources.

Jump to

Keyboard shortcuts

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