# https://docs.fastlane.tools/actions/snapshot/

# Per vedere quale è il codice di un dispositivo: UIDevice.current.modelIdentifier
devices([
    "iPhone 16 Plus", # 6.9" Display
    "iPhone 17",      # 6.3" Display
    "iPhone 16e",     # 6.1" Display
    "iPhone 8 Plus",  # 5.5" Display
    "iPad Pro 13-inch (M5)",                 # 13" Display
    "iPad Pro (12.9-inch) (2nd generation)", # 12.9" Display
    "iPad Pro 11-inch (M5)",                 # 11" Display
    "iPad Pro (10.5-inch)"                   # 10.5" Display
])

languages([
    "de-de",
    "es-es",
    "fr-fr",
    "ja-jp",
    "ko-kr",
    "zh-tw",
    "zh-cn",
    "it-it",
    "ru-ru",
    "en-us"
])

# The name of the scheme which contains the UI Tests
scheme("Snapshot")

output_directory("../App Store/Versione 2.6.0/screenshots")
clear_previous_screenshots(false)
localize_simulator(true)
dark_mode(false)
number_of_retries(0)
launch_arguments(["-is-taking-screenshots"])

#Purtroppo non posso usare --time '2007-04-29T09:41:00+02:00' perchè la data non tiene conto della localizzazione del device.
override_status_bar(true)
override_status_bar_arguments("--dataNetwork wifi --cellularMode active --cellularBars 4 --batteryState charged --batteryLevel 100 --operatorName ''")

# For more information about all available options run
# fastlane action snapshot

# To create snapshots:
# fastlane snapshot
