Sha256: e73d103f7cd1986bf07313d81131be87fa5ff825562867f62ec9534bbeef699b

Contents?: true

Size: 856 Bytes

Versions: 34

Compression:

Stored size: 856 Bytes

Contents

module Fastlane
  module Apprepo
    # This class is responsible for detecting values from IPA.
    class DetectValues
      def run!(options)
        find_app_identifier(options)
        find_version(options)
      end

      def find_app_identifier(options)
        return if options[:app_identifier]
        if options[:ipa]
          # identifier = Apprepo::Analyser.fetch_app_identifier(options[:ipa])
        end
        options[:app_identifier] = identifier unless identifier.to_s.empty?
        input_message = 'The Bundle Identifier of your App: '
        options[:app_identifier] ||= UI.input(input_message)
      end

      def find_version(options)
        unless options[:ipa].nil?
          opt = Apprepo::Analyser.new(options)
          options[:app_version] ||= opt.fetch_app_version(options[:ipa])
        end
      end
    end
  end
end

Version data entries

34 entries across 17 versions & 1 rubygems

Version Path
fastlane-plugin-apprepo-0.5.4 lib/fastlane/plugin/apprepo/helper/detect_values.rb
fastlane-plugin-apprepo-0.5.4 lib/fastlane/plugin/apprepo/detect_values.rb
fastlane-plugin-apprepo-0.5.3 lib/fastlane/plugin/apprepo/helper/detect_values.rb
fastlane-plugin-apprepo-0.5.3 lib/fastlane/plugin/apprepo/detect_values.rb
fastlane-plugin-apprepo-0.5.2 lib/fastlane/plugin/apprepo/detect_values.rb
fastlane-plugin-apprepo-0.5.2 lib/fastlane/plugin/apprepo/helper/detect_values.rb
fastlane-plugin-apprepo-0.5.1 lib/fastlane/plugin/apprepo/detect_values.rb
fastlane-plugin-apprepo-0.5.1 lib/fastlane/plugin/apprepo/helper/detect_values.rb
fastlane-plugin-apprepo-0.5.0 lib/fastlane/plugin/apprepo/helper/detect_values.rb
fastlane-plugin-apprepo-0.5.0 lib/fastlane/plugin/apprepo/detect_values.rb
fastlane-plugin-apprepo-0.4.3 lib/fastlane/plugin/apprepo/helper/detect_values.rb
fastlane-plugin-apprepo-0.4.3 lib/fastlane/plugin/apprepo/detect_values.rb
fastlane-plugin-apprepo-0.4.2 lib/fastlane/plugin/apprepo/detect_values.rb
fastlane-plugin-apprepo-0.4.2 lib/fastlane/plugin/apprepo/helper/detect_values.rb
fastlane-plugin-apprepo-0.4.1 lib/fastlane/plugin/apprepo/helper/detect_values.rb
fastlane-plugin-apprepo-0.4.1 lib/fastlane/plugin/apprepo/detect_values.rb
fastlane-plugin-apprepo-0.4.0 lib/fastlane/plugin/apprepo/helper/detect_values.rb
fastlane-plugin-apprepo-0.4.0 lib/fastlane/plugin/apprepo/detect_values.rb
fastlane-plugin-apprepo-0.3.9 lib/fastlane/plugin/apprepo/helper/detect_values.rb
fastlane-plugin-apprepo-0.3.9 lib/fastlane/plugin/apprepo/detect_values.rb