Sha256: 1ea304f510c2897d274305fe46cbd668318c0a8c48cfec82ed1862c0916463c0

Contents?: true

Size: 1.04 KB

Versions: 29

Compression:

Stored size: 1.04 KB

Contents

require 'fastlane_core/helper'
require 'fastlane/boolean'
require_relative 'detect_values'

module Gym
  class << self
    attr_accessor :config

    attr_accessor :project

    attr_accessor :cache

    def config=(value)
      @config = value
      DetectValues.set_additional_default_values
      @cache = {}
    end

    def gymfile_name
      "Gymfile"
    end

    def init_libs
      # Import all the fixes
      require 'gym/xcodebuild_fixes/generic_archive_fix'
    end

    def building_mac_catalyst_for_ios?
      Gym.project.supports_mac_catalyst? && Gym.config[:catalyst_platform] == "ios"
    end

    def building_mac_catalyst_for_mac?
      Gym.project.supports_mac_catalyst? && Gym.config[:catalyst_platform] == "macos"
    end
  end

  Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
  UI = FastlaneCore::UI
  Boolean = Fastlane::Boolean
  ROOT = Pathname.new(File.expand_path('../../..', __FILE__))
  DESCRIPTION = "Building your iOS apps has never been easier"

  Gym.init_libs
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
fastlane-2.153.1 gym/lib/gym/module.rb
fastlane-2.153.0 gym/lib/gym/module.rb
fastlane-2.152.0 gym/lib/gym/module.rb
fastlane-2.151.2 gym/lib/gym/module.rb
fastlane-2.151.1 gym/lib/gym/module.rb
fastlane-2.151.0 gym/lib/gym/module.rb
fastlane-2.150.3 gym/lib/gym/module.rb
fastlane-2.150.2 gym/lib/gym/module.rb
fastlane-2.150.1 gym/lib/gym/module.rb
fastlane-2.150.0 gym/lib/gym/module.rb
fastlane-2.150.0.rc7 gym/lib/gym/module.rb
fastlane-2.150.0.rc6 gym/lib/gym/module.rb
fastlane-2.150.0.rc5 gym/lib/gym/module.rb
fastlane-2.150.0.rc4 gym/lib/gym/module.rb
fastlane-2.150.0.rc3 gym/lib/gym/module.rb
fastlane-2.150.0.rc2 gym/lib/gym/module.rb
fastlane-2.150.0.rc1 gym/lib/gym/module.rb
fastlane-2.149.1 gym/lib/gym/module.rb
fastlane-2.149.0 gym/lib/gym/module.rb
fastlane-2.148.1 gym/lib/gym/module.rb