Sha256: 65c245df48f406a1580081dfc41ddad8fc4227e70a9d3cbd57787d1649900915

Contents?: true

Size: 1.28 KB

Versions: 32

Compression:

Stored size: 1.28 KB

Contents

# encoding: utf-8
# from http://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

32 entries across 32 versions & 2 rubygems

Version Path
fastlane-2.7.0 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.6.0 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.5.0 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.4.0 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.3.1 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.3.0 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.2.0 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.1.3 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.1.2 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.1.1 gym/lib/gym/generators/package_command_generator.rb
gym-2.0.0 lib/gym/generators/package_command_generator.rb
fastlane-2.1.0 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.0.5 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.0.4 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.0.3 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.0.2 gym/lib/gym/generators/package_command_generator.rb
fastlane-2.0.1 gym/lib/gym/generators/package_command_generator.rb
gym-1.13.0 lib/gym/generators/package_command_generator.rb
gym-1.12.1 lib/gym/generators/package_command_generator.rb
gym-1.12.0 lib/gym/generators/package_command_generator.rb