Sha256: 37e25af779ffe4515800a785d516bf002f3bcb29acd6dacae1233d35d52c4ab7

Contents?: true

Size: 948 Bytes

Versions: 32

Compression:

Stored size: 948 Bytes

Contents

require 'rubygems'
require 'json'
require 'net/ssh'
require 'net/sftp'
require 'fastlane_core'

require_relative 'uploader'

module Fastlane
  module Apprepo
    # Should provide metadata for current appcode
    class Analyser
      attr_accessor :options

      def initialize(options)
        self.options = options
      end

      # Fetches remote app version from metadata
      def fetch_app_version(options)
        metadata = Apprepo::Uploader.new(options).download_manifest_only
        FastlaneCore::UI.command_output('TODO: Parse version out from metadata')
        puts JSON.pretty_generate(metadata) unless metadata.nil?
        FastlaneCore::UI.important('TODO: parse out the bundle-version')
        metadata['bundle-version']
      end

      # only for testing, should be empty
      def run
        FastlaneCore::UI.message('Analyser run, will fetch_app_version...')
        fetch_app_version(options)
      end
    end
  end
end

Version data entries

32 entries across 16 versions & 1 rubygems

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