Sha256: 633618e11342b73f14ccf1b02c9ca81f9ffa636bd3cdef093ffa7a073e616170

Contents?: true

Size: 1.29 KB

Versions: 131

Compression:

Stored size: 1.29 KB

Contents

# encoding: utf-8

# from https://stackoverflow.com/a/9857493/445598
# because of
# `incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string) (Encoding::CompatibilityError)`

require 'shellwords'

# The concrete implementations
require 'gym/generators/package_command_generator_legacy'
require 'gym/generators/package_command_generator_xcode7'

module Gym
  class PackageCommandGenerator
    class << self
      def generate
        generator.generate
      end

      def appfile_path
        generator.appfile_path
      end

      # The path in which the ipa file will be available after executing the command
      def ipa_path
        generator.ipa_path
      end

      def dsym_path
        generator.dsym_path
      end

      def manifest_path
        generator.manifest_path
      end

      def app_thinning_path
        generator.app_thinning_path
      end

      def app_thinning_size_report_path
        generator.app_thinning_size_report_path
      end

      def apps_path
        generator.apps_path
      end

      # The generator we need to use for the currently used Xcode version
      def generator
        if Gym.config[:use_legacy_build_api]
          PackageCommandGeneratorLegacy
        else
          PackageCommandGeneratorXcode7
        end
      end
    end
  end
end

Version data entries

131 entries across 131 versions & 1 rubygems

Version Path
fastlane-2.42.0 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.42.0.beta.20170628010031 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.42.0.beta.20170627010007 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.42.0.beta.20170626010017 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.42.0.beta.20170625010032 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.42.0.beta.20170624010047 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.41.0 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.41.0.beta.20170623010027 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.40.0 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.40.0.beta.20170622010014 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.40.0.beta.20170621010038 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.40.0.beta.20170620010029 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.39.2 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.40.0.beta.20170619010029 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.40.0.beta.20170618010039 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.40.0.beta.20170617010037 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.39.1 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.40.0.beta.20170616010015 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.39.0 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.39.0.beta.20170615010031 gym/lib/gym/generators/package_command_generator.rb