Sha256: 4ff891796cddaee43b15d0ae6a9bd8ae3d1c69e47c0e12ab834a95ace94bf014

Contents?: true

Size: 1.2 KB

Versions: 34

Compression:

Stored size: 1.2 KB

Contents

require 'json'

module Fastlane
  module Apprepo
    # Responsible for parsing and providing manifest.json
    class Manifest
      #
      # Translated internal key names from Fastlane to Apprepo
      #

      attr_accessor :appcode             # Apprepo Internal Code
      attr_accessor :filename            # IPA file name
      attr_accessor :bundle_identifier   # app_identifier
      attr_accessor :bundle_version      # app_version
      attr_accessor :title               # app_name
      attr_accessor :subtitle            # app_description
      attr_accessor :notify              # will send push notification / slack

      def initialize(appcode)
        self.appcode = appcode
        UI.message('Initializing requires APPCODE. ' + self.appcode)
      end

      def parse_json(json)
        # TODO: load values from JSON
      end

      # Provide JSON serialized data
      def manifest_as_json
        structure = {
          appcode: appcode,
          filename: filename,
          bundle_identifier: bundle_identifier,
          bundle_version: bundle_version,
          title: title,
          subtitle: subtitle,
          notify: notify
        }

        fputs structure
      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/manifest.rb
fastlane-plugin-apprepo-0.5.4 lib/fastlane/plugin/apprepo/helper/manifest.rb
fastlane-plugin-apprepo-0.5.3 lib/fastlane/plugin/apprepo/manifest.rb
fastlane-plugin-apprepo-0.5.3 lib/fastlane/plugin/apprepo/helper/manifest.rb
fastlane-plugin-apprepo-0.5.2 lib/fastlane/plugin/apprepo/helper/manifest.rb
fastlane-plugin-apprepo-0.5.2 lib/fastlane/plugin/apprepo/manifest.rb
fastlane-plugin-apprepo-0.5.1 lib/fastlane/plugin/apprepo/helper/manifest.rb
fastlane-plugin-apprepo-0.5.1 lib/fastlane/plugin/apprepo/manifest.rb
fastlane-plugin-apprepo-0.5.0 lib/fastlane/plugin/apprepo/manifest.rb
fastlane-plugin-apprepo-0.5.0 lib/fastlane/plugin/apprepo/helper/manifest.rb
fastlane-plugin-apprepo-0.4.3 lib/fastlane/plugin/apprepo/manifest.rb
fastlane-plugin-apprepo-0.4.3 lib/fastlane/plugin/apprepo/helper/manifest.rb
fastlane-plugin-apprepo-0.4.2 lib/fastlane/plugin/apprepo/helper/manifest.rb
fastlane-plugin-apprepo-0.4.2 lib/fastlane/plugin/apprepo/manifest.rb
fastlane-plugin-apprepo-0.4.1 lib/fastlane/plugin/apprepo/manifest.rb
fastlane-plugin-apprepo-0.4.1 lib/fastlane/plugin/apprepo/helper/manifest.rb
fastlane-plugin-apprepo-0.4.0 lib/fastlane/plugin/apprepo/manifest.rb
fastlane-plugin-apprepo-0.4.0 lib/fastlane/plugin/apprepo/helper/manifest.rb
fastlane-plugin-apprepo-0.3.9 lib/fastlane/plugin/apprepo/manifest.rb
fastlane-plugin-apprepo-0.3.9 lib/fastlane/plugin/apprepo/helper/manifest.rb