mobile

package
v2.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: BSD-3-Clause Imports: 36 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

Package mobile 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 AppOutputName

func AppOutputName(os, name string, release bool) string

AppOutputName provides the name of a build resource for a given os - "ios" or "android".

func DetectIOSTeamID

func DetectIOSTeamID(optCert string) (string, error)

DetectIOSTeamID finds the team ID used by the app certificates. The optional parameter specifies the certificate name to use. If none is specified the code will check standard names

func RunNewBuild

func RunNewBuild(target, appID, icon, name, version string, build int, release, distribution bool, cert, profile string, tags []string) error

RunNewBuild executes a new mobile build for the specified configuration

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