Module: Deliver::Loader

Defined in:
lib/deliver/loader.rb

Constant Summary collapse

APPLE_TV_DIR_NAME =

The directory ‘appleTV’ and ‘iMessage` are special folders that will cause our screenshot gathering code to iterate through it as well searching for language folders.

"appleTV".freeze
IMESSAGE_DIR_NAME =
"iMessage".freeze
DEFAULT_DIR_NAME =
"default".freeze
ALL_LANGUAGES =
(FastlaneCore::Languages::ALL_LANGUAGES + [APPLE_TV_DIR_NAME, APPLE_TV_DIR_NAME, IMESSAGE_DIR_NAME, DEFAULT_DIR_NAME]).map(&:downcase).freeze

Class Method Summary collapse

Class Method Details

.language_folders(root) ⇒ Object



12
13
14
15
16
# File 'lib/deliver/loader.rb', line 12

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