ios

package
v0.0.0-...-c11d38b Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProjectPathInputKey ...
	ProjectPathInputKey = "project_path"
	// ProjectPathInputEnvKey ...
	ProjectPathInputEnvKey = "BITRISE_PROJECT_PATH"
	// ProjectPathInputTitle ...
	ProjectPathInputTitle = "Project or Workspace path"
	// ProjectPathInputSummary ...
	ProjectPathInputSummary = "" /* 159-byte string literal not displayed */
)
View Source
const (
	// SchemeInputKey ...
	SchemeInputKey = "scheme"
	// SchemeInputEnvKey ...
	SchemeInputEnvKey = "BITRISE_SCHEME"
	// SchemeInputTitle ...
	SchemeInputTitle = "Scheme name"
	// SchemeInputSummary ...
	SchemeInputSummary = "" /* 287-byte string literal not displayed */
)
View Source
const (
	// ExportMethodInputKey ...
	ExportMethodInputKey = "export_method"
	// ExportMethodInputEnvKey ...
	ExportMethodInputEnvKey = "BITRISE_EXPORT_METHOD"
	// IosExportMethodInputTitle ...
	IosExportMethodInputTitle = "ipa export method"
	// MacExportMethodInputTitle ...
	MacExportMethodInputTitle = "Application export method\nNOTE: `none` means: Export a copy of the application without re-signing."
	// IosExportMethodInputSummary ...
	IosExportMethodInputSummary = "" /* 212-byte string literal not displayed */
	// MacExportMethodInputSummary ...
	MacExportMethodInputSummary = "" /* 212-byte string literal not displayed */
)
View Source
const (
	// ExportXCArchiveProductInputKey ...
	ExportXCArchiveProductInputKey = "product"

	// ExportXCArchiveProductInputAppClipValue ...
	ExportXCArchiveProductInputAppClipValue = "app-clip"
)
View Source
const (
	// CarthageCommandInputKey ...
	CarthageCommandInputKey = "carthage_command"
)
View Source
const (
	// ConfigurationInputKey ...
	ConfigurationInputKey = "configuration"
)

Variables

View Source
var AllowCartfileBaseFilter = utility.BaseFilter(cartfileBase, true)

AllowCartfileBaseFilter ...

View Source
var AllowIphoneosSDKFilter = SDKFilter("iphoneos", true)

AllowIphoneosSDKFilter ...

View Source
var AllowIsDirectoryFilter = utility.IsDirectoryFilter(true)

AllowIsDirectoryFilter ...

View Source
var AllowMacosxSDKFilter = SDKFilter("macosx", true)

AllowMacosxSDKFilter ...

View Source
var AllowPodfileBaseFilter = utility.BaseFilter(podfileBase, true)

AllowPodfileBaseFilter ...

View Source
var AllowXCWorkspaceExtFilter = utility.ExtensionFilter(xcodeproj.XCWorkspaceExt, true)

AllowXCWorkspaceExtFilter ...

View Source
var AllowXcodeProjExtFilter = utility.ExtensionFilter(xcodeproj.XCodeProjExt, true)

AllowXcodeProjExtFilter ...

View Source
var ForbidCarthageDirComponentFilter = utility.ComponentFilter(carthageDirName, false)

ForbidCarthageDirComponentFilter ...

View Source
var ForbidCordovaLibDirComponentFilter = utility.ComponentFilter(cordovaLibDirName, false)

ForbidCordovaLibDirComponentFilter ...

View Source
var ForbidEmbeddedWorkspaceRegexpFilter = utility.RegexpFilter(embeddedWorkspacePathPattern, false)

ForbidEmbeddedWorkspaceRegexpFilter ...

View Source
var ForbidFramworkComponentWithExtensionFilter = utility.ComponentWithExtensionFilter(frameworkExt, false)

ForbidFramworkComponentWithExtensionFilter ...

View Source
var ForbidGitDirComponentFilter = utility.ComponentFilter(gitDirName, false)

ForbidGitDirComponentFilter ...

View Source
var ForbidNodeModulesComponentFilter = utility.ComponentFilter(xamarin.NodeModulesDirName, false)

ForbidNodeModulesComponentFilter ...

View Source
var ForbidPodsDirComponentFilter = utility.ComponentFilter(podsDirName, false)

ForbidPodsDirComponentFilter ...

View Source
var IosExportMethods = []string{"app-store", "ad-hoc", "enterprise", "development"}

IosExportMethods ...

View Source
var MacExportMethods = []string{"app-store", "developer-id", "development", "none"}

MacExportMethods ...

Functions

func CreateStandaloneProjectsAndWorkspaces

func CreateStandaloneProjectsAndWorkspaces(projectFiles, workspaceFiles []string) ([]xcodeproj.ProjectModel, []xcodeproj.WorkspaceModel, error)

CreateStandaloneProjectsAndWorkspaces ...

func Detect

func Detect(projectType XcodeProjectType, searchDir string) (bool, error)

Detect ...

func FilterRelevantCartFile

func FilterRelevantCartFile(fileList []string) ([]string, error)

FilterRelevantCartFile ...

func FilterRelevantPodfiles

func FilterRelevantPodfiles(fileList []string) ([]string, error)

FilterRelevantPodfiles ...

func FilterRelevantProjectFiles

func FilterRelevantProjectFiles(fileList []string, projectTypes ...XcodeProjectType) ([]string, error)

FilterRelevantProjectFiles ...

func FilterRelevantWorkspaceFiles

func FilterRelevantWorkspaceFiles(fileList []string, projectTypes ...XcodeProjectType) ([]string, error)

FilterRelevantWorkspaceFiles ...

func FindProjectInList

func FindProjectInList(projectPth string, projects []xcodeproj.ProjectModel) (xcodeproj.ProjectModel, bool)

FindProjectInList ...

func FindWorkspaceInList

func FindWorkspaceInList(workspacePth string, workspaces []xcodeproj.WorkspaceModel) (xcodeproj.WorkspaceModel, bool)

FindWorkspaceInList ...

func GemVersionFromGemfileLock

func GemVersionFromGemfileLock(gem, gemfileLockPth string) (string, error)

GemVersionFromGemfileLock ...

func GemVersionFromGemfileLockContent

func GemVersionFromGemfileLockContent(gem, content string) string

GemVersionFromGemfileLockContent ...

func GenerateConfig

func GenerateConfig(projectType XcodeProjectType, configDescriptors []ConfigDescriptor, isIncludeCache bool) (models.BitriseConfigMap, error)

GenerateConfig ...

func GenerateConfigBuilder

func GenerateConfigBuilder(
	projectType XcodeProjectType,
	hasPodfile,
	hasTest,
	hasAppClip,
	missingSharedSchemes bool,
	carthageCommand string,
	isIncludeCache bool,
	exportMethod string,
) models.ConfigBuilderModel

GenerateConfigBuilder ...

func GenerateDefaultConfig

func GenerateDefaultConfig(projectType XcodeProjectType, isIncludeCache bool) (models.BitriseConfigMap, error)

GenerateDefaultConfig ...

func GenerateDefaultOptions

func GenerateDefaultOptions(projectType XcodeProjectType) models.OptionNode

GenerateDefaultOptions ...

func HasCartfileInDirectoryOf

func HasCartfileInDirectoryOf(pth string) bool

HasCartfileInDirectoryOf ...

func HasCartfileResolvedInDirectoryOf

func HasCartfileResolvedInDirectoryOf(pth string) bool

HasCartfileResolvedInDirectoryOf ...

func MergePodWorkspaceProjectMap

func MergePodWorkspaceProjectMap(podWorkspaceProjectMap map[string]string, standaloneProjects []xcodeproj.ProjectModel, workspaces []xcodeproj.WorkspaceModel) ([]xcodeproj.ProjectModel, []xcodeproj.WorkspaceModel, error)

MergePodWorkspaceProjectMap ... Previously we separated standalone projects and workspaces. But pod workspace-project map may define workspace which is not in the repository, but will be created by `pod install`. Related project should be found in the standalone projects list. We will create this workspace model, join the related project and remove this project from standlone projects. If workspace is in the repository, both workspace and project should be find in the input lists.

func RemoveProjectFromList

func RemoveProjectFromList(projectPth string, projects []xcodeproj.ProjectModel) []xcodeproj.ProjectModel

RemoveProjectFromList ...

func ReplaceWorkspaceInList

func ReplaceWorkspaceInList(workspaces []xcodeproj.WorkspaceModel, workspace xcodeproj.WorkspaceModel) []xcodeproj.WorkspaceModel

ReplaceWorkspaceInList ...

func SDKFilter

func SDKFilter(sdk string, allowed bool) utility.FilterFunc

SDKFilter ...

Types

type ConfigDescriptor

type ConfigDescriptor struct {
	HasPodfile           bool
	CarthageCommand      string
	HasTest              bool
	HasAppClip           bool
	ExportMethod         string
	MissingSharedSchemes bool
}

ConfigDescriptor ...

func GenerateOptions

func GenerateOptions(projectType XcodeProjectType, searchDir string, excludeAppIcon, suppressPodFileParseError bool) (models.OptionNode, []ConfigDescriptor, models.Icons, models.Warnings, error)

GenerateOptions ...

func NewConfigDescriptor

func NewConfigDescriptor(hasPodfile bool, carthageCommand string, hasXCTest, hasAppClip bool, exportMethod string, missingSharedSchemes bool) ConfigDescriptor

NewConfigDescriptor ...

func RemoveDuplicatedConfigDescriptors

func RemoveDuplicatedConfigDescriptors(configDescriptors []ConfigDescriptor, projectType XcodeProjectType) []ConfigDescriptor

RemoveDuplicatedConfigDescriptors ...

func (ConfigDescriptor) ConfigName

func (descriptor ConfigDescriptor) ConfigName(projectType XcodeProjectType) string

ConfigName ...

type Scanner

type Scanner struct {
	SearchDir                 string
	ConfigDescriptors         []ConfigDescriptor
	ExcludeAppIcon            bool
	SuppressPodFileParseError bool
}

Scanner ...

func NewScanner

func NewScanner() *Scanner

NewScanner ...

func (*Scanner) Configs

func (scanner *Scanner) Configs() (models.BitriseConfigMap, error)

Configs ...

func (Scanner) DefaultConfigs

func (Scanner) DefaultConfigs() (models.BitriseConfigMap, error)

DefaultConfigs ...

func (Scanner) DefaultOptions

func (Scanner) DefaultOptions() models.OptionNode

DefaultOptions ...

func (*Scanner) DetectPlatform

func (scanner *Scanner) DetectPlatform(searchDir string) (bool, error)

DetectPlatform ...

func (Scanner) ExcludedScannerNames

func (Scanner) ExcludedScannerNames() []string

ExcludedScannerNames ...

func (Scanner) GetProjectType

func (Scanner) GetProjectType() string

GetProjectType returns the project_type property used in a bitrise config

func (Scanner) Name

func (Scanner) Name() string

Name ...

func (*Scanner) Options

func (scanner *Scanner) Options() (models.OptionNode, models.Warnings, models.Icons, error)

Options ...

type XcodeProjectType

type XcodeProjectType string

XcodeProjectType ...

const (
	// XcodeProjectTypeIOS ...
	XcodeProjectTypeIOS XcodeProjectType = "ios"
	// XcodeProjectTypeMacOS ...
	XcodeProjectTypeMacOS XcodeProjectType = "macos"
)

Jump to

Keyboard shortcuts

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