Sha256: 4a1c51b3d370157929dd2ebfc90d9a0b4f146156f470d8d09c9715240df185ba

Contents?: true

Size: 1.85 KB

Versions: 19

Compression:

Stored size: 1.85 KB

Contents

require 'fastlane_core/ui/ui'
require 'fastlane_core/helper'

module Sigh
  # Use this to just setup the configuration attribute and set it later somewhere else
  class << self
    attr_accessor :config

    def profile_pretty_type(profile_type)
      require 'spaceship'

      case profile_type
      when Spaceship::ConnectAPI::Profile::ProfileType::IOS_APP_DEVELOPMENT,
        Spaceship::ConnectAPI::Profile::ProfileType::MAC_APP_DEVELOPMENT,
        Spaceship::ConnectAPI::Profile::ProfileType::TVOS_APP_DEVELOPMENT,
        Spaceship::ConnectAPI::Profile::ProfileType::MAC_CATALYST_APP_DEVELOPMENT
        "Development"
      when Spaceship::ConnectAPI::Profile::ProfileType::IOS_APP_STORE,
        Spaceship::ConnectAPI::Profile::ProfileType::MAC_APP_STORE,
        Spaceship::ConnectAPI::Profile::ProfileType::TVOS_APP_STORE,
        Spaceship::ConnectAPI::Profile::ProfileType::MAC_CATALYST_APP_STORE
        "AppStore"
      when Spaceship::ConnectAPI::Profile::ProfileType::IOS_APP_ADHOC,
        Spaceship::ConnectAPI::Profile::ProfileType::TVOS_APP_ADHOC
        "AdHoc"
      when Spaceship::ConnectAPI::Profile::ProfileType::IOS_APP_INHOUSE,
        Spaceship::ConnectAPI::Profile::ProfileType::TVOS_APP_INHOUSE,
        Spaceship::ConnectAPI::Profile::ProfileType::MAC_APP_INHOUSE,
        Spaceship::ConnectAPI::Profile::ProfileType::MAC_CATALYST_APP_INHOUSE
        "InHouse"
      when Spaceship::ConnectAPI::Profile::ProfileType::MAC_APP_DIRECT,
        Spaceship::ConnectAPI::Profile::ProfileType::MAC_CATALYST_APP_DIRECT
        "Direct"
      end
    end
  end

  Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
  UI = FastlaneCore::UI
  ROOT = Pathname.new(File.expand_path('../../..', __FILE__))

  ENV['FASTLANE_TEAM_ID'] ||= ENV["SIGH_TEAM_ID"]
  ENV['DELIVER_USER'] ||= ENV["SIGH_USERNAME"]
end

Version data entries

19 entries across 19 versions & 4 rubygems

Version Path
fastlane-security-patched-2.216.0 sigh/lib/sigh/module.rb
fastlane-2.217.0 sigh/lib/sigh/module.rb
fastlane-2.216.0 sigh/lib/sigh/module.rb
fastlane-2.215.1 sigh/lib/sigh/module.rb
fastlane-2.215.0 sigh/lib/sigh/module.rb
fastlane-mercafacil-2.214.0 sigh/lib/sigh/module.rb
fastlane-2.214.0 sigh/lib/sigh/module.rb
fastlane-2.213.0 sigh/lib/sigh/module.rb
fastlane-2.212.2 sigh/lib/sigh/module.rb
fastlane_pricing_fix-2.212.1 sigh/lib/sigh/module.rb
fastlane-2.212.1 sigh/lib/sigh/module.rb
fastlane-2.212.0 sigh/lib/sigh/module.rb
fastlane-2.211.0 sigh/lib/sigh/module.rb
fastlane-2.210.1 sigh/lib/sigh/module.rb
fastlane-2.210.0 sigh/lib/sigh/module.rb
fastlane-2.209.1 sigh/lib/sigh/module.rb
fastlane-2.209.0 sigh/lib/sigh/module.rb
fastlane-2.208.0 sigh/lib/sigh/module.rb
fastlane-2.207.0 sigh/lib/sigh/module.rb