module Gym

Constants

Boolean
DESCRIPTION
Helper
ROOT
UI

Attributes

cache[RW]
config[RW]
project[RW]

Public Class Methods

building_for_ios?() click to toggle source
# File gym/lib/gym/module.rb, line 28
def building_for_ios?
  if Gym.project.mac?
    # Can be building for iOS if mac project and catalyst
    return building_mac_catalyst_for_ios?
  else
    # Can be iOS project and build for mac if catalyst
    return false if building_mac_catalyst_for_mac?

    # Can be iOS project if iOS, tvOS, or watchOS
    return Gym.project.ios? || Gym.project.tvos? || Gym.project.watchos?
  end
end
building_for_mac?() click to toggle source
# File gym/lib/gym/module.rb, line 41
def building_for_mac?
  if Gym.project.supports_mac_catalyst?
    # Can be a mac project and not build mac if catalyst
    return building_mac_catalyst_for_mac?
  else
    return Gym.project.mac?
  end
end
building_mac_catalyst_for_ios?() click to toggle source
# File gym/lib/gym/module.rb, line 50
def building_mac_catalyst_for_ios?
  Gym.project.supports_mac_catalyst? && Gym.config[:catalyst_platform] == "ios"
end
building_mac_catalyst_for_mac?() click to toggle source
# File gym/lib/gym/module.rb, line 54
def building_mac_catalyst_for_mac?
  Gym.project.supports_mac_catalyst? && Gym.config[:catalyst_platform] == "macos"
end
config=(value) click to toggle source
# File gym/lib/gym/module.rb, line 13
def config=(value)
  @config = value
  DetectValues.set_additional_default_values
  @cache = {}
end
export_destination_upload?() click to toggle source
# File gym/lib/gym/module.rb, line 58
def export_destination_upload?
  config_path = Gym.cache[:config_path]
  return false if config_path.nil?

  result = CFPropertyList.native_types(CFPropertyList::List.new(file: config_path).value)
  return result["destination"] == "upload"
end
gymfile_name() click to toggle source
# File gym/lib/gym/module.rb, line 19
def gymfile_name
  "Gymfile"
end
init_libs() click to toggle source
# File gym/lib/gym/module.rb, line 23
def init_libs
  # Import all the fixes
  require 'gym/xcodebuild_fixes/generic_archive_fix'
end