Add a dedicated target for SDK mocks to avoid type name conflicts on the generated code.

This commit is contained in:
Doug
2026-01-05 17:06:49 +00:00
committed by Doug
parent 9304c3cc65
commit a78a923b0d
34 changed files with 1241 additions and 979 deletions

View File

@@ -26,7 +26,7 @@ struct GenerateSDKMocks: AsyncParsableCommand {
/// Generates the SDK mocks using Sourcery.
func generateSDKMocks(ffiPath: String) throws {
try Zsh.run(command: "sourcery --sources \(ffiPath) --templates Tools/Sourcery/SDKAutoMockable.stencil --output ElementX/Sources/Mocks/Generated/SDKGeneratedMocks.swift")
try Zsh.run(command: "sourcery --sources \(ffiPath) --templates Tools/Sourcery/SDKAutoMockable.stencil --output SDKMocks/Sources/Generated/SDKGeneratedMocks.swift")
}
/// Downloads the specified version of the `matrix_sdk_ffi.swift` file and returns the path to the downloaded file.