Sha256: 0a86c6138b9e748dcd28af5dc35d9c66f735570a082bcf7f4c12b974ef142676

Contents?: true

Size: 1.03 KB

Versions: 4

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

require 'app_store_connect/client'
require 'app_store_connect/factory'
require 'app_store_connect/object/type'
require 'app_store_connect/object/attributes'
require 'app_store_connect/object/properties'
require 'app_store_connect/object/data'
require 'app_store_connect/schema'
require 'app_store_connect/type'
require 'app_store_connect/version'

require 'app_store_connect/bundle_id_create_request'
require 'app_store_connect/certificate_create_request'
require 'app_store_connect/device_create_request'
require 'app_store_connect/user_invitation_create_request'
require 'app_store_connect/profile_create_request'

module AppStoreConnect
  @config = {}

  SCHEMA = Schema.new(File.join(__dir__, './config/schema.json'))

  class << self
    attr_accessor :config

    def load!
      SCHEMA.types.each do |type_schema|
        options = type_schema.options
        klass = Factory.type(type_schema)
        name = options[:type]

        AppStoreConnect::Type.const_set(name, klass)
      end
    end
  end

  load!
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
app_store_connect-0.12.2 lib/app_store_connect.rb
app_store_connect-0.12.1 lib/app_store_connect.rb
app_store_connect-0.12.0 lib/app_store_connect.rb
app_store_connect-0.11.0 lib/app_store_connect.rb