Sha256: 80e19722fee16337e998be72d9947c40b87044a1ad517ef425435aae1ceb322d

Contents?: true

Size: 1015 Bytes

Versions: 13

Compression:

Stored size: 1015 Bytes

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

      # 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

13 entries across 13 versions & 1 rubygems

Version Path
gym-1.5.0 lib/gym/generators/package_command_generator.rb
gym-1.4.0 lib/gym/generators/package_command_generator.rb
gym-1.3.0 lib/gym/generators/package_command_generator.rb
gym-1.2.0 lib/gym/generators/package_command_generator.rb
gym-1.1.6 lib/gym/generators/package_command_generator.rb
gym-1.1.5 lib/gym/generators/package_command_generator.rb
gym-1.1.4 lib/gym/generators/package_command_generator.rb
gym-1.1.3 lib/gym/generators/package_command_generator.rb
gym-1.1.2 lib/gym/generators/package_command_generator.rb
gym-1.1.1 lib/gym/generators/package_command_generator.rb
gym-1.1.0 lib/gym/generators/package_command_generator.rb
gym-1.0.0 lib/gym/generators/package_command_generator.rb
gym-0.9.1 lib/gym/generators/package_command_generator.rb