Update files following swiftformat upgrade

This commit is contained in:
Stefan Ceriu
2026-01-27 08:47:03 +02:00
committed by Stefan Ceriu
parent 2bb26efbe1
commit 04053ae69b
343 changed files with 1502 additions and 1048 deletions

View File

@@ -5,7 +5,9 @@ import Foundation
struct OutdatedPackages: ParsableCommand {
static let configuration = CommandConfiguration(abstract: "A tool to check outdated package dependencies. Please make sure you have already run setup-project before using this tool.")
private var projectSwiftPMDirectoryURL: URL { .projectDirectory.appendingPathComponent("ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm") }
private var projectSwiftPMDirectoryURL: URL {
.projectDirectory.appendingPathComponent("ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm")
}
func run() throws {
try checkToolsDependencies()

View File

@@ -2,7 +2,15 @@ import ArgumentParser
import Foundation
extension URL {
static var projectDirectory: URL { URL(fileURLWithPath: FileManager.default.currentDirectoryPath) }
static var parentDirectory: URL { .projectDirectory.deletingLastPathComponent() }
static var sdkDirectory: URL { .parentDirectory.appendingPathComponent("matrix-rust-sdk") }
static var projectDirectory: URL {
URL(fileURLWithPath: FileManager.default.currentDirectoryPath)
}
static var parentDirectory: URL {
.projectDirectory.deletingLastPathComponent()
}
static var sdkDirectory: URL {
.parentDirectory.appendingPathComponent("matrix-rust-sdk")
}
}