├── .gitignore ├── Content Generator.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── xcuserdata │ └── maykonmeneghel.xcuserdatad │ └── xcschemes │ └── xcschememanagement.plist ├── Content Generator ├── Assets.xcassets │ ├── AccentColor.colorset │ │ └── Contents.json │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── Contents.json ├── Content_Generator.entitlements ├── Content_GeneratorApp.swift ├── Extensions │ └── View+Extensions.swift ├── Features │ └── CreateContent │ │ ├── Domain │ │ ├── Entities │ │ │ └── ContentEntity.swift │ │ ├── Repositories │ │ │ └── ContentRepository.swift │ │ └── UseCases │ │ │ └── FetchContentsUseCase.swift │ │ ├── External │ │ └── Datasource │ │ │ └── Remote │ │ │ └── ContentRemoteDatasource.swift │ │ ├── Infra │ │ ├── Datasource │ │ │ └── ContentDatasource.swift │ │ ├── Mappers │ │ │ └── ContentMapper.swift │ │ ├── Models │ │ │ └── ContentModel.swift │ │ └── Repositories │ │ │ └── ContentRepositoryImpl.swift │ │ └── Presentation │ │ ├── ContentViewModel.swift │ │ └── UI │ │ └── ContentView.swift ├── Injectors │ ├── Dependency.swift │ ├── DependencyContainer.swift │ ├── FeatureInjectors │ │ └── ContentInjector.swift │ └── FeaturesContainer.swift └── Preview Content │ └── Preview Assets.xcassets │ └── Contents.json ├── Content GeneratorTests └── Content_GeneratorTests.swift ├── Content GeneratorUITests ├── Content_GeneratorUITests.swift └── Content_GeneratorUITestsLaunchTests.swift ├── LICENSE └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## User settings 6 | xcuserdata/ 7 | 8 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) 9 | *.xcscmblueprint 10 | *.xccheckout 11 | 12 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) 13 | build/ 14 | DerivedData/ 15 | *.moved-aside 16 | *.pbxuser 17 | !default.pbxuser 18 | *.mode1v3 19 | !default.mode1v3 20 | *.mode2v3 21 | !default.mode2v3 22 | *.perspectivev3 23 | !default.perspectivev3 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | 28 | ## App packaging 29 | *.ipa 30 | *.dSYM.zip 31 | *.dSYM 32 | 33 | ## Playgrounds 34 | timeline.xctimeline 35 | playground.xcworkspace 36 | 37 | # Swift Package Manager 38 | # 39 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 40 | # Packages/ 41 | # Package.pins 42 | # Package.resolved 43 | # *.xcodeproj 44 | # 45 | # Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata 46 | # hence it is not needed unless you have added a package configuration file to your project 47 | # .swiftpm 48 | 49 | .build/ 50 | 51 | # CocoaPods 52 | # 53 | # We recommend against adding the Pods directory to your .gitignore. However 54 | # you should judge for yourself, the pros and cons are mentioned at: 55 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 56 | # 57 | # Pods/ 58 | # 59 | # Add this line if you want to avoid checking in source code from the Xcode workspace 60 | # *.xcworkspace 61 | 62 | # Carthage 63 | # 64 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 65 | # Carthage/Checkouts 66 | 67 | Carthage/Build/ 68 | 69 | # Accio dependency management 70 | Dependencies/ 71 | .accio/ 72 | 73 | # fastlane 74 | # 75 | # It is recommended to not store the screenshots in the git repo. 76 | # Instead, use fastlane to re-generate the screenshots whenever they are needed. 77 | # For more information about the recommended setup visit: 78 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 79 | 80 | fastlane/report.xml 81 | fastlane/Preview.html 82 | fastlane/screenshots/**/*.png 83 | fastlane/test_output 84 | 85 | # Code Injection 86 | # 87 | # After new code Injection tools there's a generated folder /iOSInjectionProject 88 | # https://github.com/johnno1962/injectionforxcode 89 | 90 | iOSInjectionProject/ 91 | -------------------------------------------------------------------------------- /Content Generator.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 56; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | F021B6BA2A37C54C00993847 /* Content_GeneratorApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = F021B6B92A37C54C00993847 /* Content_GeneratorApp.swift */; }; 11 | F021B6BC2A37C54C00993847 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F021B6BB2A37C54C00993847 /* ContentView.swift */; }; 12 | F021B6BE2A37C55200993847 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F021B6BD2A37C55200993847 /* Assets.xcassets */; }; 13 | F021B6C22A37C55200993847 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F021B6C12A37C55200993847 /* Preview Assets.xcassets */; }; 14 | F021B6CC2A37C55300993847 /* Content_GeneratorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F021B6CB2A37C55300993847 /* Content_GeneratorTests.swift */; }; 15 | F021B6D62A37C55300993847 /* Content_GeneratorUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F021B6D52A37C55300993847 /* Content_GeneratorUITests.swift */; }; 16 | F021B6D82A37C55300993847 /* Content_GeneratorUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F021B6D72A37C55300993847 /* Content_GeneratorUITestsLaunchTests.swift */; }; 17 | F021B6EE2A37C63400993847 /* ContentEntity.swift in Sources */ = {isa = PBXBuildFile; fileRef = F021B6ED2A37C63400993847 /* ContentEntity.swift */; }; 18 | F021B6F02A37C6D600993847 /* ContentRepository.swift in Sources */ = {isa = PBXBuildFile; fileRef = F021B6EF2A37C6D600993847 /* ContentRepository.swift */; }; 19 | F021B6F22A37C72400993847 /* FetchContentsUseCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = F021B6F12A37C72400993847 /* FetchContentsUseCase.swift */; }; 20 | F021B6F72A37C7B600993847 /* ContentModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F021B6F62A37C7B600993847 /* ContentModel.swift */; }; 21 | F021B6F92A37C7F300993847 /* ContentMapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = F021B6F82A37C7F300993847 /* ContentMapper.swift */; }; 22 | F021B6FB2A37C88C00993847 /* ContentRepositoryImpl.swift in Sources */ = {isa = PBXBuildFile; fileRef = F021B6FA2A37C88C00993847 /* ContentRepositoryImpl.swift */; }; 23 | F021B7002A37C8EF00993847 /* ContentDatasource.swift in Sources */ = {isa = PBXBuildFile; fileRef = F021B6FF2A37C8EF00993847 /* ContentDatasource.swift */; }; 24 | F021B7032A37C9A400993847 /* ContentRemoteDatasource.swift in Sources */ = {isa = PBXBuildFile; fileRef = F021B7022A37C9A400993847 /* ContentRemoteDatasource.swift */; }; 25 | F021B7082A37CA0F00993847 /* ContentViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F021B7072A37CA0F00993847 /* ContentViewModel.swift */; }; 26 | F021B70B2A37CB1500993847 /* View+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = F021B70A2A37CB1500993847 /* View+Extensions.swift */; }; 27 | F021B70D2A37CB4400993847 /* DependencyContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = F021B70C2A37CB4400993847 /* DependencyContainer.swift */; }; 28 | F021B7132A37CD2100993847 /* ContentInjector.swift in Sources */ = {isa = PBXBuildFile; fileRef = F021B7122A37CD2100993847 /* ContentInjector.swift */; }; 29 | F021B7152A37CD3E00993847 /* Dependency.swift in Sources */ = {isa = PBXBuildFile; fileRef = F021B7142A37CD3E00993847 /* Dependency.swift */; }; 30 | F021B7172A37D1A100993847 /* FeaturesContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = F021B7162A37D1A100993847 /* FeaturesContainer.swift */; }; 31 | /* End PBXBuildFile section */ 32 | 33 | /* Begin PBXContainerItemProxy section */ 34 | F021B6C82A37C55300993847 /* PBXContainerItemProxy */ = { 35 | isa = PBXContainerItemProxy; 36 | containerPortal = F021B6AE2A37C54C00993847 /* Project object */; 37 | proxyType = 1; 38 | remoteGlobalIDString = F021B6B52A37C54C00993847; 39 | remoteInfo = "Content Generator"; 40 | }; 41 | F021B6D22A37C55300993847 /* PBXContainerItemProxy */ = { 42 | isa = PBXContainerItemProxy; 43 | containerPortal = F021B6AE2A37C54C00993847 /* Project object */; 44 | proxyType = 1; 45 | remoteGlobalIDString = F021B6B52A37C54C00993847; 46 | remoteInfo = "Content Generator"; 47 | }; 48 | /* End PBXContainerItemProxy section */ 49 | 50 | /* Begin PBXFileReference section */ 51 | F021B6B62A37C54C00993847 /* Content Generator.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Content Generator.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | F021B6B92A37C54C00993847 /* Content_GeneratorApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Content_GeneratorApp.swift; sourceTree = ""; }; 53 | F021B6BB2A37C54C00993847 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; 54 | F021B6BD2A37C55200993847 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 55 | F021B6BF2A37C55200993847 /* Content_Generator.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Content_Generator.entitlements; sourceTree = ""; }; 56 | F021B6C12A37C55200993847 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; 57 | F021B6C72A37C55300993847 /* Content GeneratorTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Content GeneratorTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 58 | F021B6CB2A37C55300993847 /* Content_GeneratorTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Content_GeneratorTests.swift; sourceTree = ""; }; 59 | F021B6D12A37C55300993847 /* Content GeneratorUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Content GeneratorUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | F021B6D52A37C55300993847 /* Content_GeneratorUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Content_GeneratorUITests.swift; sourceTree = ""; }; 61 | F021B6D72A37C55300993847 /* Content_GeneratorUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Content_GeneratorUITestsLaunchTests.swift; sourceTree = ""; }; 62 | F021B6ED2A37C63400993847 /* ContentEntity.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentEntity.swift; sourceTree = ""; }; 63 | F021B6EF2A37C6D600993847 /* ContentRepository.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentRepository.swift; sourceTree = ""; }; 64 | F021B6F12A37C72400993847 /* FetchContentsUseCase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FetchContentsUseCase.swift; sourceTree = ""; }; 65 | F021B6F62A37C7B600993847 /* ContentModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentModel.swift; sourceTree = ""; }; 66 | F021B6F82A37C7F300993847 /* ContentMapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentMapper.swift; sourceTree = ""; }; 67 | F021B6FA2A37C88C00993847 /* ContentRepositoryImpl.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentRepositoryImpl.swift; sourceTree = ""; }; 68 | F021B6FF2A37C8EF00993847 /* ContentDatasource.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentDatasource.swift; sourceTree = ""; }; 69 | F021B7022A37C9A400993847 /* ContentRemoteDatasource.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentRemoteDatasource.swift; sourceTree = ""; }; 70 | F021B7072A37CA0F00993847 /* ContentViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentViewModel.swift; sourceTree = ""; }; 71 | F021B70A2A37CB1500993847 /* View+Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "View+Extensions.swift"; sourceTree = ""; }; 72 | F021B70C2A37CB4400993847 /* DependencyContainer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DependencyContainer.swift; sourceTree = ""; }; 73 | F021B7122A37CD2100993847 /* ContentInjector.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentInjector.swift; sourceTree = ""; }; 74 | F021B7142A37CD3E00993847 /* Dependency.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Dependency.swift; sourceTree = ""; }; 75 | F021B7162A37D1A100993847 /* FeaturesContainer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeaturesContainer.swift; sourceTree = ""; }; 76 | /* End PBXFileReference section */ 77 | 78 | /* Begin PBXFrameworksBuildPhase section */ 79 | F021B6B32A37C54C00993847 /* Frameworks */ = { 80 | isa = PBXFrameworksBuildPhase; 81 | buildActionMask = 2147483647; 82 | files = ( 83 | ); 84 | runOnlyForDeploymentPostprocessing = 0; 85 | }; 86 | F021B6C42A37C55300993847 /* Frameworks */ = { 87 | isa = PBXFrameworksBuildPhase; 88 | buildActionMask = 2147483647; 89 | files = ( 90 | ); 91 | runOnlyForDeploymentPostprocessing = 0; 92 | }; 93 | F021B6CE2A37C55300993847 /* Frameworks */ = { 94 | isa = PBXFrameworksBuildPhase; 95 | buildActionMask = 2147483647; 96 | files = ( 97 | ); 98 | runOnlyForDeploymentPostprocessing = 0; 99 | }; 100 | /* End PBXFrameworksBuildPhase section */ 101 | 102 | /* Begin PBXGroup section */ 103 | F021B6AD2A37C54C00993847 = { 104 | isa = PBXGroup; 105 | children = ( 106 | F021B6B82A37C54C00993847 /* Content Generator */, 107 | F021B6CA2A37C55300993847 /* Content GeneratorTests */, 108 | F021B6D42A37C55300993847 /* Content GeneratorUITests */, 109 | F021B6B72A37C54C00993847 /* Products */, 110 | ); 111 | sourceTree = ""; 112 | }; 113 | F021B6B72A37C54C00993847 /* Products */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | F021B6B62A37C54C00993847 /* Content Generator.app */, 117 | F021B6C72A37C55300993847 /* Content GeneratorTests.xctest */, 118 | F021B6D12A37C55300993847 /* Content GeneratorUITests.xctest */, 119 | ); 120 | name = Products; 121 | sourceTree = ""; 122 | }; 123 | F021B6B82A37C54C00993847 /* Content Generator */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | F021B7092A37CB0900993847 /* Extensions */, 127 | F021B6E42A37C55C00993847 /* Features */, 128 | F021B70E2A37CBB700993847 /* Injectors */, 129 | F021B6B92A37C54C00993847 /* Content_GeneratorApp.swift */, 130 | F021B6BD2A37C55200993847 /* Assets.xcassets */, 131 | F021B6BF2A37C55200993847 /* Content_Generator.entitlements */, 132 | F021B6C02A37C55200993847 /* Preview Content */, 133 | ); 134 | path = "Content Generator"; 135 | sourceTree = ""; 136 | }; 137 | F021B6C02A37C55200993847 /* Preview Content */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | F021B6C12A37C55200993847 /* Preview Assets.xcassets */, 141 | ); 142 | path = "Preview Content"; 143 | sourceTree = ""; 144 | }; 145 | F021B6CA2A37C55300993847 /* Content GeneratorTests */ = { 146 | isa = PBXGroup; 147 | children = ( 148 | F021B6CB2A37C55300993847 /* Content_GeneratorTests.swift */, 149 | ); 150 | path = "Content GeneratorTests"; 151 | sourceTree = ""; 152 | }; 153 | F021B6D42A37C55300993847 /* Content GeneratorUITests */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | F021B6D52A37C55300993847 /* Content_GeneratorUITests.swift */, 157 | F021B6D72A37C55300993847 /* Content_GeneratorUITestsLaunchTests.swift */, 158 | ); 159 | path = "Content GeneratorUITests"; 160 | sourceTree = ""; 161 | }; 162 | F021B6E42A37C55C00993847 /* Features */ = { 163 | isa = PBXGroup; 164 | children = ( 165 | F021B6E52A37C56E00993847 /* CreateContent */, 166 | ); 167 | path = Features; 168 | sourceTree = ""; 169 | }; 170 | F021B6E52A37C56E00993847 /* CreateContent */ = { 171 | isa = PBXGroup; 172 | children = ( 173 | F021B6E62A37C5B800993847 /* Domain */, 174 | F021B6E72A37C5BD00993847 /* Infra */, 175 | F021B6E82A37C5CB00993847 /* External */, 176 | F021B6E92A37C5D300993847 /* Presentation */, 177 | ); 178 | path = CreateContent; 179 | sourceTree = ""; 180 | }; 181 | F021B6E62A37C5B800993847 /* Domain */ = { 182 | isa = PBXGroup; 183 | children = ( 184 | F021B6EB2A37C5F100993847 /* Entities */, 185 | F021B6EC2A37C61300993847 /* Repositories */, 186 | F021B6EA2A37C5E300993847 /* UseCases */, 187 | ); 188 | path = Domain; 189 | sourceTree = ""; 190 | }; 191 | F021B6E72A37C5BD00993847 /* Infra */ = { 192 | isa = PBXGroup; 193 | children = ( 194 | F021B6FC2A37C8C200993847 /* Datasource */, 195 | F021B6F42A37C7A200993847 /* Models */, 196 | F021B6F52A37C7A600993847 /* Mappers */, 197 | F021B6F32A37C79800993847 /* Repositories */, 198 | ); 199 | path = Infra; 200 | sourceTree = ""; 201 | }; 202 | F021B6E82A37C5CB00993847 /* External */ = { 203 | isa = PBXGroup; 204 | children = ( 205 | F021B7012A37C98E00993847 /* Datasource */, 206 | ); 207 | path = External; 208 | sourceTree = ""; 209 | }; 210 | F021B6E92A37C5D300993847 /* Presentation */ = { 211 | isa = PBXGroup; 212 | children = ( 213 | F021B7042A37C9D900993847 /* UI */, 214 | F021B7072A37CA0F00993847 /* ContentViewModel.swift */, 215 | ); 216 | path = Presentation; 217 | sourceTree = ""; 218 | }; 219 | F021B6EA2A37C5E300993847 /* UseCases */ = { 220 | isa = PBXGroup; 221 | children = ( 222 | F021B6F12A37C72400993847 /* FetchContentsUseCase.swift */, 223 | ); 224 | path = UseCases; 225 | sourceTree = ""; 226 | }; 227 | F021B6EB2A37C5F100993847 /* Entities */ = { 228 | isa = PBXGroup; 229 | children = ( 230 | F021B6ED2A37C63400993847 /* ContentEntity.swift */, 231 | ); 232 | path = Entities; 233 | sourceTree = ""; 234 | }; 235 | F021B6EC2A37C61300993847 /* Repositories */ = { 236 | isa = PBXGroup; 237 | children = ( 238 | F021B6EF2A37C6D600993847 /* ContentRepository.swift */, 239 | ); 240 | path = Repositories; 241 | sourceTree = ""; 242 | }; 243 | F021B6F32A37C79800993847 /* Repositories */ = { 244 | isa = PBXGroup; 245 | children = ( 246 | F021B6FA2A37C88C00993847 /* ContentRepositoryImpl.swift */, 247 | ); 248 | path = Repositories; 249 | sourceTree = ""; 250 | }; 251 | F021B6F42A37C7A200993847 /* Models */ = { 252 | isa = PBXGroup; 253 | children = ( 254 | F021B6F62A37C7B600993847 /* ContentModel.swift */, 255 | ); 256 | path = Models; 257 | sourceTree = ""; 258 | }; 259 | F021B6F52A37C7A600993847 /* Mappers */ = { 260 | isa = PBXGroup; 261 | children = ( 262 | F021B6F82A37C7F300993847 /* ContentMapper.swift */, 263 | ); 264 | path = Mappers; 265 | sourceTree = ""; 266 | }; 267 | F021B6FC2A37C8C200993847 /* Datasource */ = { 268 | isa = PBXGroup; 269 | children = ( 270 | F021B6FF2A37C8EF00993847 /* ContentDatasource.swift */, 271 | ); 272 | path = Datasource; 273 | sourceTree = ""; 274 | }; 275 | F021B6FE2A37C8DF00993847 /* Remote */ = { 276 | isa = PBXGroup; 277 | children = ( 278 | F021B7022A37C9A400993847 /* ContentRemoteDatasource.swift */, 279 | ); 280 | path = Remote; 281 | sourceTree = ""; 282 | }; 283 | F021B7012A37C98E00993847 /* Datasource */ = { 284 | isa = PBXGroup; 285 | children = ( 286 | F021B6FE2A37C8DF00993847 /* Remote */, 287 | ); 288 | path = Datasource; 289 | sourceTree = ""; 290 | }; 291 | F021B7042A37C9D900993847 /* UI */ = { 292 | isa = PBXGroup; 293 | children = ( 294 | F021B6BB2A37C54C00993847 /* ContentView.swift */, 295 | ); 296 | path = UI; 297 | sourceTree = ""; 298 | }; 299 | F021B7092A37CB0900993847 /* Extensions */ = { 300 | isa = PBXGroup; 301 | children = ( 302 | F021B70A2A37CB1500993847 /* View+Extensions.swift */, 303 | ); 304 | path = Extensions; 305 | sourceTree = ""; 306 | }; 307 | F021B70E2A37CBB700993847 /* Injectors */ = { 308 | isa = PBXGroup; 309 | children = ( 310 | F021B7142A37CD3E00993847 /* Dependency.swift */, 311 | F021B70C2A37CB4400993847 /* DependencyContainer.swift */, 312 | F021B7162A37D1A100993847 /* FeaturesContainer.swift */, 313 | F021B70F2A37CBC300993847 /* FeatureInjectors */, 314 | ); 315 | path = Injectors; 316 | sourceTree = ""; 317 | }; 318 | F021B70F2A37CBC300993847 /* FeatureInjectors */ = { 319 | isa = PBXGroup; 320 | children = ( 321 | F021B7122A37CD2100993847 /* ContentInjector.swift */, 322 | ); 323 | path = FeatureInjectors; 324 | sourceTree = ""; 325 | }; 326 | /* End PBXGroup section */ 327 | 328 | /* Begin PBXNativeTarget section */ 329 | F021B6B52A37C54C00993847 /* Content Generator */ = { 330 | isa = PBXNativeTarget; 331 | buildConfigurationList = F021B6DB2A37C55300993847 /* Build configuration list for PBXNativeTarget "Content Generator" */; 332 | buildPhases = ( 333 | F021B6B22A37C54C00993847 /* Sources */, 334 | F021B6B32A37C54C00993847 /* Frameworks */, 335 | F021B6B42A37C54C00993847 /* Resources */, 336 | ); 337 | buildRules = ( 338 | ); 339 | dependencies = ( 340 | ); 341 | name = "Content Generator"; 342 | productName = "Content Generator"; 343 | productReference = F021B6B62A37C54C00993847 /* Content Generator.app */; 344 | productType = "com.apple.product-type.application"; 345 | }; 346 | F021B6C62A37C55300993847 /* Content GeneratorTests */ = { 347 | isa = PBXNativeTarget; 348 | buildConfigurationList = F021B6DE2A37C55300993847 /* Build configuration list for PBXNativeTarget "Content GeneratorTests" */; 349 | buildPhases = ( 350 | F021B6C32A37C55300993847 /* Sources */, 351 | F021B6C42A37C55300993847 /* Frameworks */, 352 | F021B6C52A37C55300993847 /* Resources */, 353 | ); 354 | buildRules = ( 355 | ); 356 | dependencies = ( 357 | F021B6C92A37C55300993847 /* PBXTargetDependency */, 358 | ); 359 | name = "Content GeneratorTests"; 360 | productName = "Content GeneratorTests"; 361 | productReference = F021B6C72A37C55300993847 /* Content GeneratorTests.xctest */; 362 | productType = "com.apple.product-type.bundle.unit-test"; 363 | }; 364 | F021B6D02A37C55300993847 /* Content GeneratorUITests */ = { 365 | isa = PBXNativeTarget; 366 | buildConfigurationList = F021B6E12A37C55300993847 /* Build configuration list for PBXNativeTarget "Content GeneratorUITests" */; 367 | buildPhases = ( 368 | F021B6CD2A37C55300993847 /* Sources */, 369 | F021B6CE2A37C55300993847 /* Frameworks */, 370 | F021B6CF2A37C55300993847 /* Resources */, 371 | ); 372 | buildRules = ( 373 | ); 374 | dependencies = ( 375 | F021B6D32A37C55300993847 /* PBXTargetDependency */, 376 | ); 377 | name = "Content GeneratorUITests"; 378 | productName = "Content GeneratorUITests"; 379 | productReference = F021B6D12A37C55300993847 /* Content GeneratorUITests.xctest */; 380 | productType = "com.apple.product-type.bundle.ui-testing"; 381 | }; 382 | /* End PBXNativeTarget section */ 383 | 384 | /* Begin PBXProject section */ 385 | F021B6AE2A37C54C00993847 /* Project object */ = { 386 | isa = PBXProject; 387 | attributes = { 388 | BuildIndependentTargetsInParallel = 1; 389 | LastSwiftUpdateCheck = 1430; 390 | LastUpgradeCheck = 1430; 391 | TargetAttributes = { 392 | F021B6B52A37C54C00993847 = { 393 | CreatedOnToolsVersion = 14.3.1; 394 | }; 395 | F021B6C62A37C55300993847 = { 396 | CreatedOnToolsVersion = 14.3.1; 397 | TestTargetID = F021B6B52A37C54C00993847; 398 | }; 399 | F021B6D02A37C55300993847 = { 400 | CreatedOnToolsVersion = 14.3.1; 401 | TestTargetID = F021B6B52A37C54C00993847; 402 | }; 403 | }; 404 | }; 405 | buildConfigurationList = F021B6B12A37C54C00993847 /* Build configuration list for PBXProject "Content Generator" */; 406 | compatibilityVersion = "Xcode 14.0"; 407 | developmentRegion = en; 408 | hasScannedForEncodings = 0; 409 | knownRegions = ( 410 | en, 411 | Base, 412 | ); 413 | mainGroup = F021B6AD2A37C54C00993847; 414 | productRefGroup = F021B6B72A37C54C00993847 /* Products */; 415 | projectDirPath = ""; 416 | projectRoot = ""; 417 | targets = ( 418 | F021B6B52A37C54C00993847 /* Content Generator */, 419 | F021B6C62A37C55300993847 /* Content GeneratorTests */, 420 | F021B6D02A37C55300993847 /* Content GeneratorUITests */, 421 | ); 422 | }; 423 | /* End PBXProject section */ 424 | 425 | /* Begin PBXResourcesBuildPhase section */ 426 | F021B6B42A37C54C00993847 /* Resources */ = { 427 | isa = PBXResourcesBuildPhase; 428 | buildActionMask = 2147483647; 429 | files = ( 430 | F021B6C22A37C55200993847 /* Preview Assets.xcassets in Resources */, 431 | F021B6BE2A37C55200993847 /* Assets.xcassets in Resources */, 432 | ); 433 | runOnlyForDeploymentPostprocessing = 0; 434 | }; 435 | F021B6C52A37C55300993847 /* Resources */ = { 436 | isa = PBXResourcesBuildPhase; 437 | buildActionMask = 2147483647; 438 | files = ( 439 | ); 440 | runOnlyForDeploymentPostprocessing = 0; 441 | }; 442 | F021B6CF2A37C55300993847 /* Resources */ = { 443 | isa = PBXResourcesBuildPhase; 444 | buildActionMask = 2147483647; 445 | files = ( 446 | ); 447 | runOnlyForDeploymentPostprocessing = 0; 448 | }; 449 | /* End PBXResourcesBuildPhase section */ 450 | 451 | /* Begin PBXSourcesBuildPhase section */ 452 | F021B6B22A37C54C00993847 /* Sources */ = { 453 | isa = PBXSourcesBuildPhase; 454 | buildActionMask = 2147483647; 455 | files = ( 456 | F021B70D2A37CB4400993847 /* DependencyContainer.swift in Sources */, 457 | F021B6BC2A37C54C00993847 /* ContentView.swift in Sources */, 458 | F021B7132A37CD2100993847 /* ContentInjector.swift in Sources */, 459 | F021B6F02A37C6D600993847 /* ContentRepository.swift in Sources */, 460 | F021B7032A37C9A400993847 /* ContentRemoteDatasource.swift in Sources */, 461 | F021B7172A37D1A100993847 /* FeaturesContainer.swift in Sources */, 462 | F021B6EE2A37C63400993847 /* ContentEntity.swift in Sources */, 463 | F021B6FB2A37C88C00993847 /* ContentRepositoryImpl.swift in Sources */, 464 | F021B7002A37C8EF00993847 /* ContentDatasource.swift in Sources */, 465 | F021B6F92A37C7F300993847 /* ContentMapper.swift in Sources */, 466 | F021B7082A37CA0F00993847 /* ContentViewModel.swift in Sources */, 467 | F021B70B2A37CB1500993847 /* View+Extensions.swift in Sources */, 468 | F021B6F22A37C72400993847 /* FetchContentsUseCase.swift in Sources */, 469 | F021B6BA2A37C54C00993847 /* Content_GeneratorApp.swift in Sources */, 470 | F021B7152A37CD3E00993847 /* Dependency.swift in Sources */, 471 | F021B6F72A37C7B600993847 /* ContentModel.swift in Sources */, 472 | ); 473 | runOnlyForDeploymentPostprocessing = 0; 474 | }; 475 | F021B6C32A37C55300993847 /* Sources */ = { 476 | isa = PBXSourcesBuildPhase; 477 | buildActionMask = 2147483647; 478 | files = ( 479 | F021B6CC2A37C55300993847 /* Content_GeneratorTests.swift in Sources */, 480 | ); 481 | runOnlyForDeploymentPostprocessing = 0; 482 | }; 483 | F021B6CD2A37C55300993847 /* Sources */ = { 484 | isa = PBXSourcesBuildPhase; 485 | buildActionMask = 2147483647; 486 | files = ( 487 | F021B6D82A37C55300993847 /* Content_GeneratorUITestsLaunchTests.swift in Sources */, 488 | F021B6D62A37C55300993847 /* Content_GeneratorUITests.swift in Sources */, 489 | ); 490 | runOnlyForDeploymentPostprocessing = 0; 491 | }; 492 | /* End PBXSourcesBuildPhase section */ 493 | 494 | /* Begin PBXTargetDependency section */ 495 | F021B6C92A37C55300993847 /* PBXTargetDependency */ = { 496 | isa = PBXTargetDependency; 497 | target = F021B6B52A37C54C00993847 /* Content Generator */; 498 | targetProxy = F021B6C82A37C55300993847 /* PBXContainerItemProxy */; 499 | }; 500 | F021B6D32A37C55300993847 /* PBXTargetDependency */ = { 501 | isa = PBXTargetDependency; 502 | target = F021B6B52A37C54C00993847 /* Content Generator */; 503 | targetProxy = F021B6D22A37C55300993847 /* PBXContainerItemProxy */; 504 | }; 505 | /* End PBXTargetDependency section */ 506 | 507 | /* Begin XCBuildConfiguration section */ 508 | F021B6D92A37C55300993847 /* Debug */ = { 509 | isa = XCBuildConfiguration; 510 | buildSettings = { 511 | ALWAYS_SEARCH_USER_PATHS = NO; 512 | CLANG_ANALYZER_NONNULL = YES; 513 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 514 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; 515 | CLANG_ENABLE_MODULES = YES; 516 | CLANG_ENABLE_OBJC_ARC = YES; 517 | CLANG_ENABLE_OBJC_WEAK = YES; 518 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 519 | CLANG_WARN_BOOL_CONVERSION = YES; 520 | CLANG_WARN_COMMA = YES; 521 | CLANG_WARN_CONSTANT_CONVERSION = YES; 522 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 523 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 524 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 525 | CLANG_WARN_EMPTY_BODY = YES; 526 | CLANG_WARN_ENUM_CONVERSION = YES; 527 | CLANG_WARN_INFINITE_RECURSION = YES; 528 | CLANG_WARN_INT_CONVERSION = YES; 529 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 530 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 531 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 532 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 533 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 534 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 535 | CLANG_WARN_STRICT_PROTOTYPES = YES; 536 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 537 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 538 | CLANG_WARN_UNREACHABLE_CODE = YES; 539 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 540 | COPY_PHASE_STRIP = NO; 541 | DEBUG_INFORMATION_FORMAT = dwarf; 542 | ENABLE_STRICT_OBJC_MSGSEND = YES; 543 | ENABLE_TESTABILITY = YES; 544 | GCC_C_LANGUAGE_STANDARD = gnu11; 545 | GCC_DYNAMIC_NO_PIC = NO; 546 | GCC_NO_COMMON_BLOCKS = YES; 547 | GCC_OPTIMIZATION_LEVEL = 0; 548 | GCC_PREPROCESSOR_DEFINITIONS = ( 549 | "DEBUG=1", 550 | "$(inherited)", 551 | ); 552 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 553 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 554 | GCC_WARN_UNDECLARED_SELECTOR = YES; 555 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 556 | GCC_WARN_UNUSED_FUNCTION = YES; 557 | GCC_WARN_UNUSED_VARIABLE = YES; 558 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 559 | MTL_FAST_MATH = YES; 560 | ONLY_ACTIVE_ARCH = YES; 561 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 562 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 563 | }; 564 | name = Debug; 565 | }; 566 | F021B6DA2A37C55300993847 /* Release */ = { 567 | isa = XCBuildConfiguration; 568 | buildSettings = { 569 | ALWAYS_SEARCH_USER_PATHS = NO; 570 | CLANG_ANALYZER_NONNULL = YES; 571 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 572 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; 573 | CLANG_ENABLE_MODULES = YES; 574 | CLANG_ENABLE_OBJC_ARC = YES; 575 | CLANG_ENABLE_OBJC_WEAK = YES; 576 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 577 | CLANG_WARN_BOOL_CONVERSION = YES; 578 | CLANG_WARN_COMMA = YES; 579 | CLANG_WARN_CONSTANT_CONVERSION = YES; 580 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 581 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 582 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 583 | CLANG_WARN_EMPTY_BODY = YES; 584 | CLANG_WARN_ENUM_CONVERSION = YES; 585 | CLANG_WARN_INFINITE_RECURSION = YES; 586 | CLANG_WARN_INT_CONVERSION = YES; 587 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 588 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 589 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 590 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 591 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 592 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 593 | CLANG_WARN_STRICT_PROTOTYPES = YES; 594 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 595 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 596 | CLANG_WARN_UNREACHABLE_CODE = YES; 597 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 598 | COPY_PHASE_STRIP = NO; 599 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 600 | ENABLE_NS_ASSERTIONS = NO; 601 | ENABLE_STRICT_OBJC_MSGSEND = YES; 602 | GCC_C_LANGUAGE_STANDARD = gnu11; 603 | GCC_NO_COMMON_BLOCKS = YES; 604 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 605 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 606 | GCC_WARN_UNDECLARED_SELECTOR = YES; 607 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 608 | GCC_WARN_UNUSED_FUNCTION = YES; 609 | GCC_WARN_UNUSED_VARIABLE = YES; 610 | MTL_ENABLE_DEBUG_INFO = NO; 611 | MTL_FAST_MATH = YES; 612 | SWIFT_COMPILATION_MODE = wholemodule; 613 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 614 | }; 615 | name = Release; 616 | }; 617 | F021B6DC2A37C55300993847 /* Debug */ = { 618 | isa = XCBuildConfiguration; 619 | buildSettings = { 620 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 621 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 622 | CODE_SIGN_ENTITLEMENTS = "Content Generator/Content_Generator.entitlements"; 623 | CODE_SIGN_STYLE = Automatic; 624 | CURRENT_PROJECT_VERSION = 1; 625 | DEVELOPMENT_ASSET_PATHS = "\"Content Generator/Preview Content\""; 626 | DEVELOPMENT_TEAM = 3D684SCS2D; 627 | ENABLE_HARDENED_RUNTIME = YES; 628 | ENABLE_PREVIEWS = YES; 629 | GENERATE_INFOPLIST_FILE = YES; 630 | "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; 631 | "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES; 632 | "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES; 633 | "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphonesimulator*]" = YES; 634 | "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphoneos*]" = YES; 635 | "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphonesimulator*]" = YES; 636 | "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphoneos*]" = UIStatusBarStyleDefault; 637 | "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault; 638 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 639 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 640 | IPHONEOS_DEPLOYMENT_TARGET = 16.4; 641 | LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"; 642 | "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks"; 643 | MACOSX_DEPLOYMENT_TARGET = 13.3; 644 | MARKETING_VERSION = 1.0; 645 | PRODUCT_BUNDLE_IDENTIFIER = "com.meneghel.Content-Generator"; 646 | PRODUCT_NAME = "$(TARGET_NAME)"; 647 | SDKROOT = auto; 648 | SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; 649 | SWIFT_EMIT_LOC_STRINGS = YES; 650 | SWIFT_VERSION = 5.0; 651 | TARGETED_DEVICE_FAMILY = "1,2"; 652 | }; 653 | name = Debug; 654 | }; 655 | F021B6DD2A37C55300993847 /* Release */ = { 656 | isa = XCBuildConfiguration; 657 | buildSettings = { 658 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 659 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 660 | CODE_SIGN_ENTITLEMENTS = "Content Generator/Content_Generator.entitlements"; 661 | CODE_SIGN_STYLE = Automatic; 662 | CURRENT_PROJECT_VERSION = 1; 663 | DEVELOPMENT_ASSET_PATHS = "\"Content Generator/Preview Content\""; 664 | DEVELOPMENT_TEAM = 3D684SCS2D; 665 | ENABLE_HARDENED_RUNTIME = YES; 666 | ENABLE_PREVIEWS = YES; 667 | GENERATE_INFOPLIST_FILE = YES; 668 | "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; 669 | "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES; 670 | "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES; 671 | "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphonesimulator*]" = YES; 672 | "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphoneos*]" = YES; 673 | "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphonesimulator*]" = YES; 674 | "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphoneos*]" = UIStatusBarStyleDefault; 675 | "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault; 676 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 677 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 678 | IPHONEOS_DEPLOYMENT_TARGET = 16.4; 679 | LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"; 680 | "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks"; 681 | MACOSX_DEPLOYMENT_TARGET = 13.3; 682 | MARKETING_VERSION = 1.0; 683 | PRODUCT_BUNDLE_IDENTIFIER = "com.meneghel.Content-Generator"; 684 | PRODUCT_NAME = "$(TARGET_NAME)"; 685 | SDKROOT = auto; 686 | SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; 687 | SWIFT_EMIT_LOC_STRINGS = YES; 688 | SWIFT_VERSION = 5.0; 689 | TARGETED_DEVICE_FAMILY = "1,2"; 690 | }; 691 | name = Release; 692 | }; 693 | F021B6DF2A37C55300993847 /* Debug */ = { 694 | isa = XCBuildConfiguration; 695 | buildSettings = { 696 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 697 | BUNDLE_LOADER = "$(TEST_HOST)"; 698 | CODE_SIGN_STYLE = Automatic; 699 | CURRENT_PROJECT_VERSION = 1; 700 | DEVELOPMENT_TEAM = 3D684SCS2D; 701 | GENERATE_INFOPLIST_FILE = YES; 702 | IPHONEOS_DEPLOYMENT_TARGET = 16.4; 703 | MACOSX_DEPLOYMENT_TARGET = 13.3; 704 | MARKETING_VERSION = 1.0; 705 | PRODUCT_BUNDLE_IDENTIFIER = "com.meneghel.Content-GeneratorTests"; 706 | PRODUCT_NAME = "$(TARGET_NAME)"; 707 | SDKROOT = auto; 708 | SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; 709 | SWIFT_EMIT_LOC_STRINGS = NO; 710 | SWIFT_VERSION = 5.0; 711 | TARGETED_DEVICE_FAMILY = "1,2"; 712 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Content Generator.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Content Generator"; 713 | }; 714 | name = Debug; 715 | }; 716 | F021B6E02A37C55300993847 /* Release */ = { 717 | isa = XCBuildConfiguration; 718 | buildSettings = { 719 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 720 | BUNDLE_LOADER = "$(TEST_HOST)"; 721 | CODE_SIGN_STYLE = Automatic; 722 | CURRENT_PROJECT_VERSION = 1; 723 | DEVELOPMENT_TEAM = 3D684SCS2D; 724 | GENERATE_INFOPLIST_FILE = YES; 725 | IPHONEOS_DEPLOYMENT_TARGET = 16.4; 726 | MACOSX_DEPLOYMENT_TARGET = 13.3; 727 | MARKETING_VERSION = 1.0; 728 | PRODUCT_BUNDLE_IDENTIFIER = "com.meneghel.Content-GeneratorTests"; 729 | PRODUCT_NAME = "$(TARGET_NAME)"; 730 | SDKROOT = auto; 731 | SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; 732 | SWIFT_EMIT_LOC_STRINGS = NO; 733 | SWIFT_VERSION = 5.0; 734 | TARGETED_DEVICE_FAMILY = "1,2"; 735 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Content Generator.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Content Generator"; 736 | }; 737 | name = Release; 738 | }; 739 | F021B6E22A37C55300993847 /* Debug */ = { 740 | isa = XCBuildConfiguration; 741 | buildSettings = { 742 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 743 | CODE_SIGN_STYLE = Automatic; 744 | CURRENT_PROJECT_VERSION = 1; 745 | DEVELOPMENT_TEAM = 3D684SCS2D; 746 | GENERATE_INFOPLIST_FILE = YES; 747 | IPHONEOS_DEPLOYMENT_TARGET = 16.4; 748 | MACOSX_DEPLOYMENT_TARGET = 13.3; 749 | MARKETING_VERSION = 1.0; 750 | PRODUCT_BUNDLE_IDENTIFIER = "com.meneghel.Content-GeneratorUITests"; 751 | PRODUCT_NAME = "$(TARGET_NAME)"; 752 | SDKROOT = auto; 753 | SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; 754 | SWIFT_EMIT_LOC_STRINGS = NO; 755 | SWIFT_VERSION = 5.0; 756 | TARGETED_DEVICE_FAMILY = "1,2"; 757 | TEST_TARGET_NAME = "Content Generator"; 758 | }; 759 | name = Debug; 760 | }; 761 | F021B6E32A37C55300993847 /* Release */ = { 762 | isa = XCBuildConfiguration; 763 | buildSettings = { 764 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 765 | CODE_SIGN_STYLE = Automatic; 766 | CURRENT_PROJECT_VERSION = 1; 767 | DEVELOPMENT_TEAM = 3D684SCS2D; 768 | GENERATE_INFOPLIST_FILE = YES; 769 | IPHONEOS_DEPLOYMENT_TARGET = 16.4; 770 | MACOSX_DEPLOYMENT_TARGET = 13.3; 771 | MARKETING_VERSION = 1.0; 772 | PRODUCT_BUNDLE_IDENTIFIER = "com.meneghel.Content-GeneratorUITests"; 773 | PRODUCT_NAME = "$(TARGET_NAME)"; 774 | SDKROOT = auto; 775 | SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; 776 | SWIFT_EMIT_LOC_STRINGS = NO; 777 | SWIFT_VERSION = 5.0; 778 | TARGETED_DEVICE_FAMILY = "1,2"; 779 | TEST_TARGET_NAME = "Content Generator"; 780 | }; 781 | name = Release; 782 | }; 783 | /* End XCBuildConfiguration section */ 784 | 785 | /* Begin XCConfigurationList section */ 786 | F021B6B12A37C54C00993847 /* Build configuration list for PBXProject "Content Generator" */ = { 787 | isa = XCConfigurationList; 788 | buildConfigurations = ( 789 | F021B6D92A37C55300993847 /* Debug */, 790 | F021B6DA2A37C55300993847 /* Release */, 791 | ); 792 | defaultConfigurationIsVisible = 0; 793 | defaultConfigurationName = Release; 794 | }; 795 | F021B6DB2A37C55300993847 /* Build configuration list for PBXNativeTarget "Content Generator" */ = { 796 | isa = XCConfigurationList; 797 | buildConfigurations = ( 798 | F021B6DC2A37C55300993847 /* Debug */, 799 | F021B6DD2A37C55300993847 /* Release */, 800 | ); 801 | defaultConfigurationIsVisible = 0; 802 | defaultConfigurationName = Release; 803 | }; 804 | F021B6DE2A37C55300993847 /* Build configuration list for PBXNativeTarget "Content GeneratorTests" */ = { 805 | isa = XCConfigurationList; 806 | buildConfigurations = ( 807 | F021B6DF2A37C55300993847 /* Debug */, 808 | F021B6E02A37C55300993847 /* Release */, 809 | ); 810 | defaultConfigurationIsVisible = 0; 811 | defaultConfigurationName = Release; 812 | }; 813 | F021B6E12A37C55300993847 /* Build configuration list for PBXNativeTarget "Content GeneratorUITests" */ = { 814 | isa = XCConfigurationList; 815 | buildConfigurations = ( 816 | F021B6E22A37C55300993847 /* Debug */, 817 | F021B6E32A37C55300993847 /* Release */, 818 | ); 819 | defaultConfigurationIsVisible = 0; 820 | defaultConfigurationName = Release; 821 | }; 822 | /* End XCConfigurationList section */ 823 | }; 824 | rootObject = F021B6AE2A37C54C00993847 /* Project object */; 825 | } 826 | -------------------------------------------------------------------------------- /Content Generator.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Content Generator.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Content Generator.xcodeproj/xcuserdata/maykonmeneghel.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Content Generator.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Content Generator/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Content Generator/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "platform" : "ios", 6 | "size" : "1024x1024" 7 | }, 8 | { 9 | "idiom" : "mac", 10 | "scale" : "1x", 11 | "size" : "16x16" 12 | }, 13 | { 14 | "idiom" : "mac", 15 | "scale" : "2x", 16 | "size" : "16x16" 17 | }, 18 | { 19 | "idiom" : "mac", 20 | "scale" : "1x", 21 | "size" : "32x32" 22 | }, 23 | { 24 | "idiom" : "mac", 25 | "scale" : "2x", 26 | "size" : "32x32" 27 | }, 28 | { 29 | "idiom" : "mac", 30 | "scale" : "1x", 31 | "size" : "128x128" 32 | }, 33 | { 34 | "idiom" : "mac", 35 | "scale" : "2x", 36 | "size" : "128x128" 37 | }, 38 | { 39 | "idiom" : "mac", 40 | "scale" : "1x", 41 | "size" : "256x256" 42 | }, 43 | { 44 | "idiom" : "mac", 45 | "scale" : "2x", 46 | "size" : "256x256" 47 | }, 48 | { 49 | "idiom" : "mac", 50 | "scale" : "1x", 51 | "size" : "512x512" 52 | }, 53 | { 54 | "idiom" : "mac", 55 | "scale" : "2x", 56 | "size" : "512x512" 57 | } 58 | ], 59 | "info" : { 60 | "author" : "xcode", 61 | "version" : 1 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /Content Generator/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Content Generator/Content_Generator.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.files.user-selected.read-only 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Content Generator/Content_GeneratorApp.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | 3 | @main 4 | struct Content_GeneratorApp: App { 5 | var body: some Scene { 6 | WindowGroup { 7 | ContentView() 8 | .environmentObject(DependencyContainer()) 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Content Generator/Extensions/View+Extensions.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | 3 | extension View { 4 | /// Load the commonly used environment objects to use a view in Xcode Previews. 5 | /// - Returns: A view with loaded environment objects. 6 | func prepareForPreview() -> some View { 7 | preparePreview { _ in 8 | self 9 | } 10 | } 11 | } 12 | 13 | /// Prepare a view for Xcode Previews by loading the commonly used environment objects. 14 | /// - Parameter view: A closure to build the view that will be loaded with environment objets. 15 | /// - Returns: A view with loaded environment objects. 16 | func preparePreview(_ view: (PreviewPayload) -> Preview) -> some View { 17 | assertXcodePreviews() 18 | 19 | let dependencyContainer = DependencyContainer() 20 | let previewPayload = PreviewPayload(dependencyContainer: dependencyContainer) 21 | let view = view(previewPayload) 22 | return previewPayload.loadEnvironment(for: view) 23 | } 24 | 25 | 26 | struct PreviewPayload { 27 | 28 | /// The dependency container that will be used as an environment object for the Xcode Preview. 29 | let dependencyContainer: DependencyContainer 30 | 31 | /// Load all environment objects into a specific SwiftUI view. 32 | /// - Parameter view: The view to load all environment objects. 33 | /// - Returns: The provided `view` with updated environment objects. 34 | func loadEnvironment(for view: V) -> some View { 35 | assertXcodePreviews() 36 | return view.environmentObject(dependencyContainer) 37 | } 38 | } 39 | 40 | public extension ProcessInfo { 41 | /// Returns whether the process is currently running for Xcode Previews or not. 42 | var isXcodePreviews: Bool { 43 | ProcessInfo.processInfo.environment["XCODE_RUNNING_FOR_PREVIEWS"] == "1" 44 | } 45 | } 46 | 47 | /// Indicates that a Xcode Previews consistency check failed. 48 | /// 49 | /// Use this function to stop the program, without impacting the performance of shipping code, when control flow is only expected to reach the call when 50 | /// running in Xcode Previews —for example, a code that creates mock objects for a UI data source. 51 | /// 52 | /// - Parameters: 53 | /// - file: The filename to print with message. The default is the file where assertionFailure(_:file:line:) is called. 54 | /// - line: The line number to print along with message. The default is the line number where assertionFailure(_:file:line:) is called. 55 | @inlinable func assertXcodePreviews(_ file: StaticString = #file, line: UInt = #line) { 56 | if ProcessInfo.processInfo.isXcodePreviews == false { 57 | assertionFailure("App is not running in Xcode Preview mode", file: file, line: line) 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /Content Generator/Features/CreateContent/Domain/Entities/ContentEntity.swift: -------------------------------------------------------------------------------- 1 | struct ContentEntity { 2 | var theme: String 3 | var url: String 4 | var level: String 5 | } 6 | -------------------------------------------------------------------------------- /Content Generator/Features/CreateContent/Domain/Repositories/ContentRepository.swift: -------------------------------------------------------------------------------- 1 | protocol ContentRepository { 2 | func fetchContents() -> [ContentEntity] 3 | } 4 | -------------------------------------------------------------------------------- /Content Generator/Features/CreateContent/Domain/UseCases/FetchContentsUseCase.swift: -------------------------------------------------------------------------------- 1 | protocol FetchContentsUseCase { 2 | func call() -> [ContentEntity] 3 | } 4 | 5 | struct FetchContentsUseCaseImpl: FetchContentsUseCase { 6 | 7 | var repository: ContentRepository 8 | 9 | func call() -> [ContentEntity] { 10 | repository.fetchContents() 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Content Generator/Features/CreateContent/External/Datasource/Remote/ContentRemoteDatasource.swift: -------------------------------------------------------------------------------- 1 | struct ContentRemoteDatasource: ContentDatasource { 2 | func fetchContents() -> [ContentModel] { 3 | return [ 4 | ContentModel(theme: "Teste 1", url: "Url 1", level: "Level 1"), 5 | ContentModel(theme: "Teste 2", url: "Url 2", level: "Level 2"), 6 | ContentModel(theme: "Teste 3", url: "Url 3", level: "Level 3"), 7 | ContentModel(theme: "Teste 4", url: "Url 4", level: "Level 4"), 8 | ContentModel(theme: "Teste 5", url: "Url 5", level: "Level 5") 9 | ] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Content Generator/Features/CreateContent/Infra/Datasource/ContentDatasource.swift: -------------------------------------------------------------------------------- 1 | protocol ContentDatasource { 2 | func fetchContents() -> [ContentModel] 3 | } 4 | -------------------------------------------------------------------------------- /Content Generator/Features/CreateContent/Infra/Mappers/ContentMapper.swift: -------------------------------------------------------------------------------- 1 | struct ContentMapper { 2 | static func toEntity(from content: ContentModel) -> ContentEntity { 3 | return ContentEntity(theme: content.theme, url: content.url, level: content.level) 4 | } 5 | 6 | static func toModel(from content: ContentEntity) -> ContentModel { 7 | return ContentModel(theme: content.theme, url: content.url, level: content.level) 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Content Generator/Features/CreateContent/Infra/Models/ContentModel.swift: -------------------------------------------------------------------------------- 1 | struct ContentModel { 2 | var theme: String 3 | var url: String 4 | var level: String 5 | } 6 | -------------------------------------------------------------------------------- /Content Generator/Features/CreateContent/Infra/Repositories/ContentRepositoryImpl.swift: -------------------------------------------------------------------------------- 1 | struct ContentRepositoryImpl: ContentRepository { 2 | var datasource: ContentDatasource 3 | 4 | func fetchContents() -> [ContentEntity] { 5 | let contents: [ContentModel] = datasource.fetchContents() 6 | return contents.map({ ContentMapper.toEntity(from: $0) }) 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Content Generator/Features/CreateContent/Presentation/ContentViewModel.swift: -------------------------------------------------------------------------------- 1 | struct ContentViewModel { 2 | 3 | private var _fetchContentsUseCase: FetchContentsUseCase 4 | 5 | init(_ fetchContentsUseCase: FetchContentsUseCase) { 6 | self._fetchContentsUseCase = fetchContentsUseCase 7 | } 8 | 9 | func fetchContents() -> [ContentEntity] { 10 | return _fetchContentsUseCase.call() 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Content Generator/Features/CreateContent/Presentation/UI/ContentView.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | 3 | struct ContentView: View { 4 | 5 | // MARK: Properties 6 | @Dependency(\.features.contentFeature.contentViewModel) var viewModel 7 | 8 | @State var contents: [ContentEntity] = [] 9 | 10 | // MARK: - Body 11 | var body: some View { 12 | HStack { 13 | List { 14 | ForEach(contents, id: \.url) { content in 15 | Text(content.theme) 16 | } 17 | } 18 | } 19 | .task { 20 | contents = viewModel.fetchContents() 21 | } 22 | } 23 | } 24 | 25 | // MARK: - Previews 26 | struct ContentView_Previews: PreviewProvider { 27 | static var previews: some View { 28 | ContentView() 29 | .prepareForPreview() 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Content Generator/Injectors/Dependency.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | 3 | @propertyWrapper 4 | struct Dependency: DynamicProperty { 5 | @EnvironmentObject private var dependencyContainer: DependencyContainer 6 | 7 | var wrappedValue: Value { 8 | get { 9 | dependencyContainer[keyPath: key] 10 | } 11 | nonmutating set { 12 | dependencyContainer[keyPath: key] = newValue 13 | } 14 | } 15 | 16 | private let key: ReferenceWritableKeyPath 17 | 18 | init(_ key: ReferenceWritableKeyPath) { 19 | self.key = key 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Content Generator/Injectors/DependencyContainer.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | class DependencyContainer: ObservableObject { 4 | var features: FeaturesContainer 5 | 6 | init() { 7 | self.features = FeaturesContainer() 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Content Generator/Injectors/FeatureInjectors/ContentInjector.swift: -------------------------------------------------------------------------------- 1 | class ContentInjector { 2 | 3 | // Datasources 4 | lazy var contentRemoteDatasource: ContentDatasource = { 5 | ContentRemoteDatasource() 6 | }() 7 | 8 | // Repositories 9 | lazy var contentRepository: ContentRepository = { 10 | ContentRepositoryImpl(datasource: contentRemoteDatasource) 11 | }() 12 | 13 | // UseCases 14 | lazy var fetchContentsUseCase: FetchContentsUseCase = { 15 | FetchContentsUseCaseImpl(repository: contentRepository) 16 | }() 17 | 18 | // ViewModel 19 | lazy var contentViewModel: ContentViewModel = { 20 | ContentViewModel(fetchContentsUseCase) 21 | }() 22 | } 23 | -------------------------------------------------------------------------------- /Content Generator/Injectors/FeaturesContainer.swift: -------------------------------------------------------------------------------- 1 | class FeaturesContainer { 2 | 3 | // Content Feature 4 | lazy var contentFeature: ContentInjector = { 5 | ContentInjector() 6 | }() 7 | } 8 | -------------------------------------------------------------------------------- /Content Generator/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Content GeneratorTests/Content_GeneratorTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Content_GeneratorTests.swift 3 | // Content GeneratorTests 4 | // 5 | // Created by Maykon Meneghel on 12/06/23. 6 | // 7 | 8 | import XCTest 9 | 10 | final class Content_GeneratorTests: XCTestCase { 11 | 12 | override func setUpWithError() throws { 13 | // Put setup code here. This method is called before the invocation of each test method in the class. 14 | } 15 | 16 | override func tearDownWithError() throws { 17 | // Put teardown code here. This method is called after the invocation of each test method in the class. 18 | } 19 | 20 | func testExample() throws { 21 | // This is an example of a functional test case. 22 | // Use XCTAssert and related functions to verify your tests produce the correct results. 23 | // Any test you write for XCTest can be annotated as throws and async. 24 | // Mark your test throws to produce an unexpected failure when your test encounters an uncaught error. 25 | // Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards. 26 | } 27 | 28 | func testPerformanceExample() throws { 29 | // This is an example of a performance test case. 30 | measure { 31 | // Put the code you want to measure the time of here. 32 | } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /Content GeneratorUITests/Content_GeneratorUITests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Content_GeneratorUITests.swift 3 | // Content GeneratorUITests 4 | // 5 | // Created by Maykon Meneghel on 12/06/23. 6 | // 7 | 8 | import XCTest 9 | 10 | final class Content_GeneratorUITests: XCTestCase { 11 | 12 | override func setUpWithError() throws { 13 | // Put setup code here. This method is called before the invocation of each test method in the class. 14 | 15 | // In UI tests it is usually best to stop immediately when a failure occurs. 16 | continueAfterFailure = false 17 | 18 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 19 | } 20 | 21 | override func tearDownWithError() throws { 22 | // Put teardown code here. This method is called after the invocation of each test method in the class. 23 | } 24 | 25 | func testExample() throws { 26 | // UI tests must launch the application that they test. 27 | let app = XCUIApplication() 28 | app.launch() 29 | 30 | // Use XCTAssert and related functions to verify your tests produce the correct results. 31 | } 32 | 33 | func testLaunchPerformance() throws { 34 | if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) { 35 | // This measures how long it takes to launch your application. 36 | measure(metrics: [XCTApplicationLaunchMetric()]) { 37 | XCUIApplication().launch() 38 | } 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Content GeneratorUITests/Content_GeneratorUITestsLaunchTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Content_GeneratorUITestsLaunchTests.swift 3 | // Content GeneratorUITests 4 | // 5 | // Created by Maykon Meneghel on 12/06/23. 6 | // 7 | 8 | import XCTest 9 | 10 | final class Content_GeneratorUITestsLaunchTests: XCTestCase { 11 | 12 | override class var runsForEachTargetApplicationUIConfiguration: Bool { 13 | true 14 | } 15 | 16 | override func setUpWithError() throws { 17 | continueAfterFailure = false 18 | } 19 | 20 | func testLaunch() throws { 21 | let app = XCUIApplication() 22 | app.launch() 23 | 24 | // Insert steps here to perform after app launch but before taking a screenshot, 25 | // such as logging into a test account or navigating somewhere in the app 26 | 27 | let attachment = XCTAttachment(screenshot: app.screenshot()) 28 | attachment.name = "Launch Screen" 29 | attachment.lifetime = .keepAlways 30 | add(attachment) 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Maykon Meneghel 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SwiftUI Clean Architecture 2 | 3 | This repository contains an example implementation of a SwiftUI structure using the Clean architecture. 4 | 5 | ## Project Structure 6 | 7 | The project is organized into four main layers: 8 | 9 | ### Domain 10 | 11 | The domain layer contains the core structures of the application's business logic. 12 | 13 | - **Entities**: Contains the definitions of the data models that represent the domain entities. 14 | - **Repositories**: Interfaces that define the operations for accessing domain data. 15 | - **UseCases**: Implementations of the use cases that contain the application's business logic. 16 | 17 | ### Infra 18 | 19 | The infra layer is responsible for implementing the operations for accessing domain data. 20 | 21 | - **Datasource**: Interfaces that define data retrieval, both locally and remotely. 22 | - **Models**: Defines the data models specific to the infra layer. 23 | - **Repositories**: Implementations of the repositories defined in the domain layer. 24 | - **Mappers**: Mapping between the domain data models and the infra layer data models. 25 | 26 | ### External 27 | 28 | The external layer contains the concrete implementations of the datasources defined in the infra layer. This layer may include specific implementations for local or remote access or integrations with external services. 29 | 30 | ### Presentation 31 | 32 | The presentation layer is responsible for displaying data to the user and handling user interaction. It utilizes SwiftUI views for defining the appearance and interaction of the application. 33 | 34 | - **ViewModel**: A controller that manages the state and presentation logic of the data. 35 | - **UI**: A folder that contains SwiftUI views. 36 | 37 | ### Reference: 38 | 39 | https://medium.com/@maykonmeneghel_55360/clean-architecture-swiftui-9bb39619af70 40 | --------------------------------------------------------------------------------