Sha256: 06bf1cd491c1b8f6c6bd2518a1f39265b30f33f378165554733a6c1b1924be7b

Contents?: true

Size: 1.8 KB

Versions: 22

Compression:

Stored size: 1.8 KB

Contents

# frozen_string_literal: true
require 'shopify_app/version'

# deps
require 'shopify_api'
require 'omniauth-shopify-oauth2'
require 'redirect_safely'

module ShopifyApp
  def self.rails6?
    Rails::VERSION::MAJOR >= 6
  end

  def self.use_webpacker?
    rails6? &&
      defined?(Webpacker) == 'constant' &&
      !configuration.disable_webpacker
  end

  # config
  require 'shopify_app/configuration'

  # engine
  require 'shopify_app/engine'

  # utils
  require 'shopify_app/utils'

  # controller concerns
  require 'shopify_app/controller_concerns/csrf_protection'
  require 'shopify_app/controller_concerns/localization'
  require 'shopify_app/controller_concerns/itp'
  require 'shopify_app/controller_concerns/login_protection'
  require 'shopify_app/controller_concerns/embedded_app'
  require 'shopify_app/controller_concerns/payload_verification'
  require 'shopify_app/controller_concerns/app_proxy_verification'
  require 'shopify_app/controller_concerns/webhook_verification'

  # jobs
  require 'shopify_app/jobs/webhooks_manager_job'
  require 'shopify_app/jobs/scripttags_manager_job'

  # managers
  require 'shopify_app/managers/webhooks_manager'
  require 'shopify_app/managers/scripttags_manager'

  # middleware
  require 'shopify_app/middleware/jwt_middleware'
  require 'shopify_app/middleware/same_site_cookie_middleware'

  # session
  require 'shopify_app/session/in_memory_session_store'
  require 'shopify_app/session/in_memory_shop_session_store'
  require 'shopify_app/session/in_memory_user_session_store'
  require 'shopify_app/session/jwt'
  require 'shopify_app/session/null_user_session_store'
  require 'shopify_app/session/session_repository'
  require 'shopify_app/session/session_storage'
  require 'shopify_app/session/shop_session_storage'
  require 'shopify_app/session/user_session_storage'
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
shopify_app-17.0.5 lib/shopify_app.rb
shopify_app-17.0.4 lib/shopify_app.rb
shopify_app-17.0.3 lib/shopify_app.rb
shopify_app-17.0.2 lib/shopify_app.rb
shopify_app-17.0.1 lib/shopify_app.rb
shopify_app-17.0.0 lib/shopify_app.rb
shopify_app-16.1.0 lib/shopify_app.rb
shopify_app-16.0.0 lib/shopify_app.rb
shopify_app-15.0.1 lib/shopify_app.rb
shopify_app-15.0.0 lib/shopify_app.rb
shopify_app-14.4.4 lib/shopify_app.rb
shopify_app-14.4.3 lib/shopify_app.rb
shopify_app-14.4.2 lib/shopify_app.rb
shopify_app-14.4.1 lib/shopify_app.rb
shopify_app-14.4.0 lib/shopify_app.rb
shopify_app-14.3.0 lib/shopify_app.rb
shopify_app-14.2.0 lib/shopify_app.rb
shopify_app-14.1.0 lib/shopify_app.rb
shopify_app-14.0.0 lib/shopify_app.rb
shopify_app-13.5.0 lib/shopify_app.rb