# Matchfile

# URL of the Git repository to store the certificates
git_url(ENV["GIT_URL"])

# Define the type of match to run
# Default to "appstore" but can be overridden
type(ENV["MATCH_TYPE"] || "appstore")

# App identifiers for all BlueWallet apps
app_identifier([
  "io.bluewallet.bluewallet", 
  "io.bluewallet.bluewallet.Stickers", 
  "io.bluewallet.bluewallet.MarketWidget",
  "io.bluewallet.bluewallet.QuickLookPreview",
  "io.bluewallet.bluewallet.QuickLookThumbnail"
])

# Your Apple Developer account email address
username(ENV["APPLE_ID"]) unless ENV["APPLE_ID"].to_s.empty?

# The ID of your Apple Developer team
team_id(ENV["ITC_TEAM_ID"])

# Set readonly based on environment (default to true for safety)
# Set to false explicitly when new profiles need to be created
readonly(ENV["MATCH_READONLY"] == "false" ? false : true)

# Define the platform to use
platform("ios")

# Custom lanes pass Git authentication directly to Match so Fastlane treats it
# as sensitive and never prints it in the Matchfile detected-values table.

# Storage mode (git by default)
storage_mode("git")

# Optional: The Git branch that is used for match
# Default is 'master'
# branch("main")
