# EditorConfig configuration for XMTP iOS SDK
# https://editorconfig.org/

root = true

# Default settings for all files
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

# Swift source files
[*.swift]
indent_style = tab
indent_size = 4
max_line_length = 120

# Swift Package Manager files
[Package.swift]
indent_style = tab
indent_size = 4

# Configuration files (YAML, JSON, etc.)
[*.{yml,yaml,json}]
indent_style = space
indent_size = 2

# Markdown files
[*.md]
indent_style = space
indent_size = 2
trim_trailing_whitespace = false

# Podspec files
[*.podspec]
indent_style = space
indent_size = 2

# Shell scripts
[*.sh]
indent_style = space
indent_size = 2

# Xcode project files
[*.{pbxproj,plist}]
indent_style = tab
indent_size = 4

# Git files
[{.gitignore,.gitattributes}]
indent_style = space
indent_size = 2
