Sha256: 23dd53b6f4c9d436b04e5692b00c844ce179eed5563ee9d3f17ab54c22377119

Contents?: true

Size: 646 Bytes

Versions: 4

Compression:

Stored size: 646 Bytes

Contents

require 'fastlane_core/languages'

module Deliver
  module Loader
    # The directory 'appleTV' is a special folder that will cause our screenshot gathering code to iterate
    # through it as well searching for language folders.
    APPLE_TV_DIR_NAME = "appleTV".freeze
    DEFAULT_DIR_NAME = "default".freeze
    ALL_LANGUAGES = (FastlaneCore::Languages::ALL_LANGUAGES + [APPLE_TV_DIR_NAME, APPLE_TV_DIR_NAME]).map(&:downcase).freeze

    def self.language_folders(root)
      Dir.glob(File.join(root, '*')).select do |path|
        File.directory?(path) && ALL_LANGUAGES.include?(File.basename(path).downcase)
      end.sort
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
deliver-1.10.3 lib/deliver/loader.rb
deliver-1.10.2 lib/deliver/loader.rb
deliver-1.10.1 lib/deliver/loader.rb
deliver-1.10.0 lib/deliver/loader.rb