Documentation ¶
Index ¶
- Constants
- Variables
- func FilterRelevantCartFile(fileList []string) ([]string, error)
- func FilterRelevantPodfiles(fileList []string) ([]string, error)
- func FilterRelevantProjectFiles(fileList []string, projectTypes ...XcodeProjectType) ([]string, error)
- func FilterRelevantWorkspaceFiles(fileList []string, projectTypes ...XcodeProjectType) ([]string, error)
- func GemVersionFromGemfileLock(gem, gemfileLockPth string) (string, error)
- func GemVersionFromGemfileLockContent(gem, content string) string
- func GenerateConfig(projectType XcodeProjectType, configDescriptors []ConfigDescriptor, ...) (models.BitriseConfigMap, error)
- func GenerateConfigBuilder(projectType XcodeProjectType, sshKeyActivation models.SSHKeyActivation, ...) models.ConfigBuilderModel
- func GenerateDefaultConfig(projectType XcodeProjectType) (models.BitriseConfigMap, error)
- func GenerateDefaultOptions(projectType XcodeProjectType) models.OptionNode
- func HasCartfileInDirectoryOf(pth string) bool
- func HasCartfileResolvedInDirectoryOf(pth string) bool
- func HasSPMDependencies(fileList []string) (bool, error)
- type ConfigDescriptor
- func GenerateOptions(projectType XcodeProjectType, result DetectResult) (models.OptionNode, []ConfigDescriptor, models.Icons, models.Warnings, error)
- func NewConfigDescriptor(hasPodfile bool, carthageCommand string, ...) ConfigDescriptor
- func RemoveDuplicatedConfigDescriptors(configDescriptors []ConfigDescriptor, projectType XcodeProjectType) []ConfigDescriptor
- type DetectResult
- type Project
- type Scanner
- func (scanner *Scanner) Configs(sshKeyActivation models.SSHKeyActivation) (models.BitriseConfigMap, error)
- func (scanner *Scanner) DefaultConfigs() (models.BitriseConfigMap, error)
- func (scanner *Scanner) DefaultOptions() models.OptionNode
- func (scanner *Scanner) DetectPlatform(searchDir string) (bool, error)
- func (scanner *Scanner) ExcludedScannerNames() []string
- func (scanner *Scanner) GetProjectType() string
- func (scanner *Scanner) Name() string
- func (scanner *Scanner) Options() (models.OptionNode, models.Warnings, models.Icons, error)
- type Scheme
- type XcodeProjectType
Constants ¶
View Source
const ( ProjectPathInputKey = "project_path" ProjectPathInputEnvKey = "BITRISE_PROJECT_PATH" ProjectPathInputTitle = "Project or Workspace path" ProjectPathInputSummary = "" /* 171-byte string literal not displayed */ )
View Source
const ( SchemeInputKey = "scheme" SchemeInputEnvKey = "BITRISE_SCHEME" SchemeInputTitle = "Scheme name" SchemeInputSummary = "" /* 287-byte string literal not displayed */ )
View Source
const ( DistributionMethodInputKey = "distribution_method" DistributionMethodEnvKey = "BITRISE_DISTRIBUTION_METHOD" DistributionMethodInputTitle = "Distribution method" DistributionMethodInputSummary = "" /* 212-byte string literal not displayed */ )
View Source
const ( ExportMethodInputKey = "export_method" ExportMethodEnvKey = "BITRISE_EXPORT_METHOD" ExportMethodInputTitle = "Application export method\nNOTE: `none` means: Export a copy of the application without re-signing." ExportMethodInputSummary = "" /* 212-byte string literal not displayed */ )
View Source
const ( ExportXCArchiveProductInputKey = "product" ExportXCArchiveProductInputAppClipValue = "app-clip" )
View Source
const ( AutomaticCodeSigningInputKey = "automatic_code_signing" AutomaticCodeSigningInputAPIKeyValue = "api-key" )
View Source
const ( TestRepetitionModeKey = "test_repetition_mode" TestRepetitionModeRetryOnFailureValue = "retry_on_failure" BuildForTestDestinationKey = "destination" BuildForTestDestinationValue = "platform=iOS Simulator,name=iPhone 8 Plus,OS=latest" AutomaticCodeSigningKey = "automatic_code_signing" AutomaticCodeSigningValue = "api-key" CacheLevelKey = "cache_level" CacheLevelNone = "none" )
View Source
const (
CarthageCommandInputKey = "carthage_command"
)
View Source
const (
ConfigurationInputKey = "configuration"
)
Variables ¶
View Source
var AllowCartfileBaseFilter = pathutil.BaseFilter(cartfileBase, true)
View Source
var AllowPodfileBaseFilter = pathutil.BaseFilter(podfileBase, true)
AllowPodfileBaseFilter ...
View Source
var IosExportMethods = []string{"app-store", "ad-hoc", "enterprise", "development"}
View Source
var MacExportMethods = []string{"app-store", "developer-id", "development", "none"}
Functions ¶
func FilterRelevantCartFile ¶
FilterRelevantCartFile ...
func FilterRelevantPodfiles ¶
FilterRelevantPodfiles ...
func FilterRelevantProjectFiles ¶
func FilterRelevantProjectFiles(fileList []string, projectTypes ...XcodeProjectType) ([]string, error)
FilterRelevantProjectFiles ...
func FilterRelevantWorkspaceFiles ¶
func FilterRelevantWorkspaceFiles(fileList []string, projectTypes ...XcodeProjectType) ([]string, error)
FilterRelevantWorkspaceFiles ...
func GemVersionFromGemfileLock ¶
GemVersionFromGemfileLock ...
func GemVersionFromGemfileLockContent ¶
GemVersionFromGemfileLockContent ...
func GenerateConfig ¶
func GenerateConfig(projectType XcodeProjectType, configDescriptors []ConfigDescriptor, sshKeyActivation models.SSHKeyActivation) (models.BitriseConfigMap, error)
func GenerateConfigBuilder ¶
func GenerateConfigBuilder( projectType XcodeProjectType, sshKeyActivation models.SSHKeyActivation, hasPodfile, hasTest, hasAppClip, hasSPMDependencies, isSPMProject bool, carthageCommand, exportMethod string, ) models.ConfigBuilderModel
func GenerateDefaultConfig ¶
func GenerateDefaultConfig(projectType XcodeProjectType) (models.BitriseConfigMap, error)
func GenerateDefaultOptions ¶
func GenerateDefaultOptions(projectType XcodeProjectType) models.OptionNode
func HasSPMDependencies ¶
Types ¶
type ConfigDescriptor ¶
type ConfigDescriptor struct { HasPodfile bool CarthageCommand string HasTest bool HasAppClip bool HasSPMDependencies bool ExportMethod string // contains filtered or unexported fields }
func GenerateOptions ¶
func GenerateOptions(projectType XcodeProjectType, result DetectResult) (models.OptionNode, []ConfigDescriptor, models.Icons, models.Warnings, error)
func NewConfigDescriptor ¶
func NewConfigDescriptor(hasPodfile bool, carthageCommand string, hasXCTest, hasAppClip, hasSPMDependencies, isSPMProject bool, exportMethod string) ConfigDescriptor
func RemoveDuplicatedConfigDescriptors ¶
func RemoveDuplicatedConfigDescriptors(configDescriptors []ConfigDescriptor, projectType XcodeProjectType) []ConfigDescriptor
func (ConfigDescriptor) ConfigName ¶
func (descriptor ConfigDescriptor) ConfigName(projectType XcodeProjectType) string
type DetectResult ¶
type DetectResult struct { Projects []Project // HasSPMDependencies is true if SPM usage is detected, either in one of the Xcode Projects or as a pure Swift package HasSPMDependencies bool Warnings models.Warnings }
func ParseProjects ¶
func ParseProjects(projectType XcodeProjectType, searchDir string, excludeAppIcon, suppressPodFileParseError bool) (DetectResult, error)
ParseProjects collects available iOS/macOS projects
func ParseSPMProject ¶
func ParseSPMProject(projectType XcodeProjectType, searchDir string) (DetectResult, error)
type Project ¶
type Project struct { RelPath string // Is it a standalone project or a workspace? IsWorkspace bool IsPodWorkspace bool IsSPMProject bool // Carthage command to run: bootstrap/update CarthageCommand string Warnings models.Warnings Schemes []Scheme }
Project is an Xcode project on the filesystem
type Scanner ¶
type Scanner struct { DetectResult DetectResult ConfigDescriptors []ConfigDescriptor ExcludeAppIcon bool SuppressPodFileParseError bool }
Scanner ...
func (*Scanner) Configs ¶
func (scanner *Scanner) Configs(sshKeyActivation models.SSHKeyActivation) (models.BitriseConfigMap, error)
func (*Scanner) DefaultConfigs ¶
func (scanner *Scanner) DefaultConfigs() (models.BitriseConfigMap, error)
DefaultConfigs ...
func (*Scanner) DefaultOptions ¶
func (scanner *Scanner) DefaultOptions() models.OptionNode
DefaultOptions ...
func (*Scanner) DetectPlatform ¶
DetectPlatform ...
func (*Scanner) ExcludedScannerNames ¶
ExcludedScannerNames ...
func (*Scanner) GetProjectType ¶
GetProjectType returns the project_type property used in a bitrise config
type XcodeProjectType ¶
type XcodeProjectType string
XcodeProjectType ...
const ( // XcodeProjectTypeIOS ... XcodeProjectTypeIOS XcodeProjectType = "ios" // XcodeProjectTypeMacOS ... XcodeProjectTypeMacOS XcodeProjectType = "macos" )
Click to show internal directories.
Click to hide internal directories.