Sha256: 534b08f3d2cb14baa7fd4bc1e099af85505271a1ff8edaea561995d759cd24f6

Contents?: true

Size: 506 Bytes

Versions: 3

Compression:

Stored size: 506 Bytes

Contents

require_relative "display_family"

module Spaceship
  module Tunes
    # identifiers of devices that App Store Connect accepts screenshots for
    class DeviceType
      def self.types
        warn("Spaceship::Tunes::DeviceType has been deprecated, use Spaceship::Tunes::DisplayFamily instead. (https://github.com/fastlane/fastlane/pull/14574).")
        return DisplayFamily.all.map(&:name)
      end

      def self.exists?(type)
        types.include?(type)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fastlane_hotfix-2.165.1 spaceship/lib/spaceship/tunes/device_type.rb
fastlane_hotfix-2.165.0 spaceship/lib/spaceship/tunes/device_type.rb
fastlane_hotfix-2.187.0 spaceship/lib/spaceship/tunes/device_type.rb