Fix SwiftFormat/SwiftLint consistency

- Generate enum instead of struct in build script
- Prevents formatting conflicts during release process
- Maintains alignment with SwiftFormat enumNamespaces rule
This commit is contained in:
Peter Steinberger 2025-05-27 01:30:32 +02:00
parent a1505f3469
commit bd49a9c772

View file

@ -29,7 +29,7 @@ echo "💉 Injecting version into Swift code..."
VERSION_SWIFT_PATH="$SWIFT_PROJECT_PATH/Sources/peekaboo/Version.swift" VERSION_SWIFT_PATH="$SWIFT_PROJECT_PATH/Sources/peekaboo/Version.swift"
cat > "$VERSION_SWIFT_PATH" << EOF cat > "$VERSION_SWIFT_PATH" << EOF
// This file is auto-generated by the build script. Do not edit manually. // This file is auto-generated by the build script. Do not edit manually.
struct Version { enum Version {
static let current = "$VERSION" static let current = "$VERSION"
} }
EOF EOF