Sha256: ffa29b1447fd8901c979dc9d66488535897ccc107c52a6be36ad2e274dc502eb

Contents?: true

Size: 1.15 KB

Versions: 11

Compression:

Stored size: 1.15 KB

Contents

require 'json'
require 'gym/version'
require 'gym/manager'
require 'gym/generators/build_command_generator'
require 'gym/generators/package_command_generator'
require 'gym/runner'
require 'gym/error_handler'
require 'gym/options'
require 'gym/detect_values'
require 'gym/xcode'

require 'fastlane_core'
require 'terminal-table'
require 'shellwords'

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/swift_fix'
      require 'gym/xcodebuild_fixes/watchkit_fix'
      require 'gym/xcodebuild_fixes/watchkit2_fix'
      require 'gym/xcodebuild_fixes/generic_archive_fix'
      require 'gym/xcodebuild_fixes/package_application_fix'
    end
  end

  Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
  UI = FastlaneCore::UI
  ROOT = Pathname.new(File.expand_path('../..', __FILE__))

  Gym.init_libs
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gym-2.0.0 lib/gym.rb
gym-1.13.0 lib/gym.rb
gym-1.12.1 lib/gym.rb
gym-1.12.0 lib/gym.rb
gym-1.11.3 lib/gym.rb
gym-1.11.2 lib/gym.rb
gym-1.11.1 lib/gym.rb
gym-1.11.0 lib/gym.rb
gym-1.10.0 lib/gym.rb
gym-1.9.0 lib/gym.rb
gym-1.8.0 lib/gym.rb