cocoapods

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2018 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CocoapodsBuilder

type CocoapodsBuilder struct {
	CocoapodsCmd     string
	CocoapodsVersion string
}

CocoapodsBuilder implements Builder for Cocoapods (podfile & podfile.lock) builds

func (*CocoapodsBuilder) Analyze

func (builder *CocoapodsBuilder) Analyze(m module.Module, allowUnresolved bool) ([]module.Dependency, error)

Analyze parses the `podfile.lock` YAML file and analyzes

func (*CocoapodsBuilder) Build

func (builder *CocoapodsBuilder) Build(m module.Module, force bool) error

Build runs `pod install`

func (*CocoapodsBuilder) DiscoverModules

func (builder *CocoapodsBuilder) DiscoverModules(dir string) ([]module.Config, error)

DiscoverModules returns ModuleConfigs that match Podfile(.lock) in the directory

func (*CocoapodsBuilder) Initialize

func (builder *CocoapodsBuilder) Initialize() error

Initialize collects metadata on Cocoapods

func (*CocoapodsBuilder) IsBuilt

func (builder *CocoapodsBuilder) IsBuilt(m module.Module, allowUnresolved bool) (bool, error)

IsBuilt checks whether `Podfile.lock` exists

func (*CocoapodsBuilder) IsModule

func (builder *CocoapodsBuilder) IsModule(target string) (bool, error)

IsModule is not implemented

type CocoapodsModule

type CocoapodsModule struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

CocoapodsModule implements Dependency for Cocoapods builds

func (CocoapodsModule) Fetcher

func (m CocoapodsModule) Fetcher() string

Fetcher always returns pod for CocoapodsModule

func (CocoapodsModule) Package

func (m CocoapodsModule) Package() string

Package returns the package spec for CocoapodsModule

func (CocoapodsModule) Revision

func (m CocoapodsModule) Revision() string

Revision returns the version spec for CocoapodsModule

type PodFileLock

type PodFileLock struct {
	Pods            []interface{}                `yaml:"PODS,omitempty"`         // transitive deps + path
	Dependencies    []string                     `yaml:"DEPENDENCIES,omitempty"` // top level deps
	CheckoutOptions map[string]map[string]string `yaml:"CHECKOUT OPTIONS,omitempty"`
}

PodFileLock models Podfile.lock yaml file

Note: we set Pods to `[]interface{}` because Golang doesn't support ADT's.
The PODS section of Podfile.lock is actually [](map[string][]string | string)

Jump to

Keyboard shortcuts

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