diff --git a/SDKMocks/Sources/Generated/SDKGeneratedMocks.swift b/Components/SDKMocks/Sources/Generated/SDKGeneratedMocks.swift similarity index 100% rename from SDKMocks/Sources/Generated/SDKGeneratedMocks.swift rename to Components/SDKMocks/Sources/Generated/SDKGeneratedMocks.swift diff --git a/SDKMocks/SupportingFiles/target.yml b/Components/SDKMocks/SupportingFiles/target.yml similarity index 100% rename from SDKMocks/SupportingFiles/target.yml rename to Components/SDKMocks/SupportingFiles/target.yml diff --git a/ElementX.xcodeproj/project.pbxproj b/ElementX.xcodeproj/project.pbxproj index 1a65911be..41ace6059 100644 --- a/ElementX.xcodeproj/project.pbxproj +++ b/ElementX.xcodeproj/project.pbxproj @@ -373,7 +373,6 @@ 3A64A93A651A3CB8774ADE8E /* SwiftOGG in Frameworks */ = {isa = PBXBuildFile; productRef = 3FE40E79C36E7903121E6E3B /* SwiftOGG */; }; 3A68752BB9D51B8713C0FC2C /* AuthenticationStartScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = A768CA51A59B8A5D8C8FD599 /* AuthenticationStartScreen.swift */; }; 3AA9E878FDCFF85664AC071F /* ComposerDraftService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1D70253004A5AEC9C73D6A4F /* ComposerDraftService.swift */; }; - 3B0718607B0665D163142DAE /* SDKGeneratedMocks.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C5BFCB7257F7A3CF70F5DA9 /* SDKGeneratedMocks.swift */; }; 3B0F9B57D25B07E66F15762A /* MediaUploadPreviewScreenModels.swift in Sources */ = {isa = PBXBuildFile; fileRef = B2E7C987AE5DC9087BB19F7D /* MediaUploadPreviewScreenModels.swift */; }; 3B277D9538090766DA6C4566 /* StateRoomTimelineView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B2AF1828A5B76B7C371240FE /* StateRoomTimelineView.swift */; }; 3B5AB5CF8D8163599C5BF19B /* PillViewOnBubblePreviews.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2005B4AD70A792340E2694F1 /* PillViewOnBubblePreviews.swift */; }; @@ -786,6 +785,7 @@ 7C9BDF1FC7BD46C4676536AB /* AuthenticationStartScreenBackgroundImage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 682BC7BAF0EFEF512A8C5140 /* AuthenticationStartScreenBackgroundImage.swift */; }; 7CD16990BA843BE9ED639129 /* ImageRoomTimelineItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3DFE4453AB0B34C203447162 /* ImageRoomTimelineItem.swift */; }; 7D249465ED00988EEEC14E05 /* JoinedRoomProxyMock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 867DC9530C42F7B5176BE465 /* JoinedRoomProxyMock.swift */; }; + 7D24CF1697AD93F1F52B44BB /* SDKGeneratedMocks.swift in Sources */ = {isa = PBXBuildFile; fileRef = 162F321D3DB0729AF30FD967 /* SDKGeneratedMocks.swift */; }; 7D58B4F46CAA9A7C3E4C6A30 /* UserDetailsEditScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88410BD213FDF9B28E8B671F /* UserDetailsEditScreen.swift */; }; 7D6DC832DE7A3DE874E2E9BC /* MatrixRustSDK in Frameworks */ = {isa = PBXBuildFile; productRef = BB111AE9D390233CDD2C7FD5 /* MatrixRustSDK */; }; 7DCFC31B49BDD2BC32184E58 /* TimelineControllerFactory.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8C0D5AE752AF87DA0A920812 /* TimelineControllerFactory.swift */; }; @@ -1853,6 +1853,7 @@ 1575947B7A6FE08C57FE5EE4 /* NetworkMonitorProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NetworkMonitorProtocol.swift; sourceTree = ""; }; 161CD412E75F4086F422AE39 /* SessionVerificationScreenStateMachine.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SessionVerificationScreenStateMachine.swift; sourceTree = ""; }; 1627F2D56477BD331F6D732C /* RoomHeaderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RoomHeaderView.swift; sourceTree = ""; }; + 162F321D3DB0729AF30FD967 /* SDKGeneratedMocks.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SDKGeneratedMocks.swift; sourceTree = ""; }; 166D45E1861A73B232109843 /* RoomDetailsScreenViewModelTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RoomDetailsScreenViewModelTests.swift; sourceTree = ""; }; 16D09C79746BDCD9173EB3A7 /* RoomDetailsEditScreenModels.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RoomDetailsEditScreenModels.swift; sourceTree = ""; }; 16D353E10A64172D863769BF /* TombstonedAvatarImage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TombstonedAvatarImage.swift; sourceTree = ""; }; @@ -2340,7 +2341,6 @@ 6B5E29E9A22F45534FBD5B58 /* EmojiPickerScreenHeaderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPickerScreenHeaderView.swift; sourceTree = ""; }; 6C113E0CB7E15E9765B1817A /* EmojiProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiProvider.swift; sourceTree = ""; }; 6C2DB32B72EA4772E2C9E3B3 /* CallIntent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CallIntent.swift; sourceTree = ""; }; - 6C5BFCB7257F7A3CF70F5DA9 /* SDKGeneratedMocks.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SDKGeneratedMocks.swift; sourceTree = ""; }; 6C8EC6EA7EDFCE46710DA306 /* AnalyticsPromptScreenViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnalyticsPromptScreenViewModel.swift; sourceTree = ""; }; 6C9651CD1066F239C7739240 /* NSEUserSession.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NSEUserSession.swift; sourceTree = ""; }; 6CD4823EAB4B4E8BAB4F6B8C /* TimelineStyle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimelineStyle.swift; sourceTree = ""; }; @@ -3370,6 +3370,14 @@ path = View; sourceTree = ""; }; + 01C939DDDF02F155F115DEF5 /* Sources */ = { + isa = PBXGroup; + children = ( + EA42E2904D9D746014F63CA5 /* Generated */, + ); + path = Sources; + sourceTree = ""; + }; 0210F4932B59277E2EEEF7BC /* RoomNotificationSettingsScreen */ = { isa = PBXGroup; children = ( @@ -3812,6 +3820,14 @@ path = Resources; sourceTree = ""; }; + 2971193D56994881809FD4FA /* SDKMocks */ = { + isa = PBXGroup; + children = ( + 01C939DDDF02F155F115DEF5 /* Sources */, + ); + path = SDKMocks; + sourceTree = ""; + }; 29CB9F2D011BB5649B3E86BE /* MapLibre */ = { isa = PBXGroup; children = ( @@ -4340,7 +4356,7 @@ D7117C32909844BCF5AF30BA /* AccessibilityTests */, 8A9C09B6A392465E03B8D1B1 /* IntegrationTests */, A8002CB4F20B6282850A614C /* DevelopmentAssets */, - C4212E8FD72132802765FBBB /* SDKMocks */, + B72D140D3102EA113F2D77C8 /* Components */, 2197234282B4BC0CE79AAC74 /* Secrets */, 823ED0EC3F1B6CF47D284011 /* Tools */, 9413F680ECDFB2B0DDB0DEF2 /* Packages */, @@ -5828,14 +5844,6 @@ path = UserProfileScreen; sourceTree = ""; }; - 93F8FFD5651EFD1CA6B14EE7 /* Generated */ = { - isa = PBXGroup; - children = ( - 6C5BFCB7257F7A3CF70F5DA9 /* SDKGeneratedMocks.swift */, - ); - path = Generated; - sourceTree = ""; - }; 9413F680ECDFB2B0DDB0DEF2 /* Packages */ = { isa = PBXGroup; children = ( @@ -6324,14 +6332,6 @@ path = Generated; sourceTree = ""; }; - B2D6763B5D6F9A24A468B45E /* Sources */ = { - isa = PBXGroup; - children = ( - 93F8FFD5651EFD1CA6B14EE7 /* Generated */, - ); - path = Sources; - sourceTree = ""; - }; B329D7B5D250717039B2814A /* RoomThreadListScreen */ = { isa = PBXGroup; children = ( @@ -6408,6 +6408,14 @@ path = UserIndicator; sourceTree = ""; }; + B72D140D3102EA113F2D77C8 /* Components */ = { + isa = PBXGroup; + children = ( + 2971193D56994881809FD4FA /* SDKMocks */, + ); + path = Components; + sourceTree = ""; + }; B7AAC1DB9CBE8947CC05A0D5 /* SpacesScreen */ = { isa = PBXGroup; children = ( @@ -6591,14 +6599,6 @@ path = SpaceScreen; sourceTree = ""; }; - C4212E8FD72132802765FBBB /* SDKMocks */ = { - isa = PBXGroup; - children = ( - B2D6763B5D6F9A24A468B45E /* Sources */, - ); - path = SDKMocks; - sourceTree = ""; - }; C45CF12DD74BF5B6C970C5E1 /* RoomDirectorySearchScreen */ = { isa = PBXGroup; children = ( @@ -7114,6 +7114,14 @@ path = View; sourceTree = ""; }; + EA42E2904D9D746014F63CA5 /* Generated */ = { + isa = PBXGroup; + children = ( + 162F321D3DB0729AF30FD967 /* SDKGeneratedMocks.swift */, + ); + path = Generated; + sourceTree = ""; + }; EA9EB1A95977581772ACF99A /* SpaceAddRoomsScreen */ = { isa = PBXGroup; children = ( @@ -9577,7 +9585,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 3B0718607B0665D163142DAE /* SDKGeneratedMocks.swift in Sources */, + 7D24CF1697AD93F1F52B44BB /* SDKGeneratedMocks.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/Tools/Sources/Commands/GenerateSDKMocks.swift b/Tools/Sources/Commands/GenerateSDKMocks.swift index aa04bbb67..826b54245 100644 --- a/Tools/Sources/Commands/GenerateSDKMocks.swift +++ b/Tools/Sources/Commands/GenerateSDKMocks.swift @@ -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 SDKMocks/Sources/Generated/SDKGeneratedMocks.swift") + try Zsh.run(command: "sourcery --sources \(ffiPath) --templates Tools/Sourcery/SDKAutoMockable.stencil --output Components/SDKMocks/Sources/Generated/SDKGeneratedMocks.swift") } /// Downloads the specified version of the `matrix_sdk_ffi.swift` file and returns the path to the downloaded file. diff --git a/codecov.yml b/codecov.yml index 9b92dccb3..c59656df5 100644 --- a/codecov.yml +++ b/codecov.yml @@ -15,7 +15,7 @@ ignore: - "ElementX/Sources/UITests" - "ElementX/Sources/UnitTests" - "ElementX/Sources/Settings/DeveloperOptionsScreen" - - "SDKMocks/Sources/Generated" + - "Components/SDKMocks/Sources/Generated" - "Tools" - "**/Mock*.swift" - "**/*Mock.swift" diff --git a/project.yml b/project.yml index 28c0ef35c..0c4c7870b 100644 --- a/project.yml +++ b/project.yml @@ -25,7 +25,7 @@ options: - AccessibilityTests - IntegrationTests - DevelopmentAssets - - SDKMocks + - Components - Secrets - Tools - pattern: ElementX @@ -64,7 +64,7 @@ include: - path: ElementX/SupportingFiles/target.yml - path: NSE/SupportingFiles/target.yml - path: ShareExtension/SupportingFiles/target.yml -- path: SDKMocks/SupportingFiles/target.yml +- path: Components/SDKMocks/SupportingFiles/target.yml - path: UnitTests/SupportingFiles/target.yml - path: PreviewTests/SupportingFiles/target.yml - path: UITests/SupportingFiles/target.yml