pbxproj

package
v0.0.0-...-5853541 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildFile

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

BuildFile represent isa PBXBuildFile

type FileReference

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

FileReference represent isa PBXFileReference

func (FileReference) Children

func (f FileReference) Children(p Pbxproj) []GroupEntry

Children returns empty slice file does not have children

func (FileReference) Description

func (f FileReference) Description() string

Description returns file path

func (FileReference) IsGroup

func (f FileReference) IsGroup() bool

IsGroup returns false file is not group

type Group

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

Group represent isa PBXGroup

func (Group) Children

func (g Group) Children(p Pbxproj) []GroupEntry

Children returns GroupEntries group have childrens it is group or file

func (Group) Description

func (g Group) Description() string

Description returns group expression

func (Group) IsGroup

func (g Group) IsGroup() bool

IsGroup returns true group is group

type GroupEntry

type GroupEntry interface {
	IsGroup() bool
	Children(p Pbxproj) []GroupEntry
	Description() string
}

GroupEntry describes xcode project's entry it is file or group

type NativeTarget

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

NativeTarget represent isa PBXNativeTarget

type Pbxproj

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

Pbxproj represent project.pbxproj

func NewPbxproj

func NewPbxproj(path string) *Pbxproj

NewPbxproj constructor

func (Pbxproj) BuildFileNames

func (p Pbxproj) BuildFileNames() []string

BuildFileNames return all build file names

func (Pbxproj) BuildPhaseResourceFileNames

func (p Pbxproj) BuildPhaseResourceFileNames() map[string][]string

BuildPhaseResourceFileNames return resource file for build each target

func (Pbxproj) BuildPhaseSourceFileNames

func (p Pbxproj) BuildPhaseSourceFileNames() map[string][]string

BuildPhaseSourceFileNames return source file for build each target

func (Pbxproj) Exists

func (p Pbxproj) Exists(section string) bool

Exists specified section

func (Pbxproj) FileReferencePathNames

func (p Pbxproj) FileReferencePathNames() []string

FileReferencePathNames return file reference path names

func (Pbxproj) NativeTargetNames

func (p Pbxproj) NativeTargetNames() []string

NativeTargetNames return all target names

func (Pbxproj) SectionNames

func (p Pbxproj) SectionNames() []string

SectionNames return all distinct sorted section names

func (Pbxproj) VariantGroupNames

func (p Pbxproj) VariantGroupNames() []string

VariantGroupNames return all variant group names

func (Pbxproj) Walk

func (p Pbxproj) Walk(walkFn WalkFunc)

Walk walks the xcode project tree rooted at root calling walkFn for each group or file in the tree, including root

type ResourcesBuildPhase

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

ResourcesBuildPhase represent isa PBXResourcesBuildPhase

type SourcesBuildPhase

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

SourcesBuildPhase represent isa PBXSourcesBuildPhase

type VariantGroup

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

VariantGroup represent isa PBXVariantGroup

type WalkFunc

type WalkFunc func(entry GroupEntry, level int)

WalkFunc is the type of the function called for each fileReference or group visited by Walk.

Jump to

Keyboard shortcuts

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