├── Simple
├── Assets.xcassets
│ ├── Contents.json
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Scenes
│ ├── Home
│ │ ├── HomeWorker.swift
│ │ ├── HomeModels.swift
│ │ ├── HomePresenter.swift
│ │ ├── HomeInteractor.swift
│ │ ├── HomeRouter.swift
│ │ └── HomeViewController.swift
│ └── Welcome
│ │ ├── WelcomeWorker.swift
│ │ ├── WelcomeModels.swift
│ │ ├── WelcomePresenter.swift
│ │ ├── WelcomeInteractor.swift
│ │ ├── WelcomeRouter.swift
│ │ └── WelcomeViewController.swift
├── Shared
│ └── AuthenticationWorker.swift
├── Info.plist
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
└── AppDelegate.swift
├── README.md
├── Simple.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── project.pbxproj
├── SimpleTests
├── Info.plist
└── SimpleTests.swift
├── SimpleUITests
├── Info.plist
└── SimpleUITests.swift
├── LICENSE
└── .gitignore
/Simple/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Simple
2 | A simple login system to demonstrate how the VIP cycle fully encapsulate the `UserDefaults` details from the rest of your app
3 |
--------------------------------------------------------------------------------
/Simple.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Simple.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Simple/Scenes/Home/HomeWorker.swift:
--------------------------------------------------------------------------------
1 | //
2 | // HomeWorker.swift
3 | // Simple
4 | //
5 | // Created by Raymond Law on 6/25/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | class HomeWorker
16 | {
17 | func doSomeWork()
18 | {
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Simple/Scenes/Welcome/WelcomeWorker.swift:
--------------------------------------------------------------------------------
1 | //
2 | // WelcomeWorker.swift
3 | // Simple
4 | //
5 | // Created by Raymond Law on 6/25/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | class WelcomeWorker
16 | {
17 | func doSomeWork()
18 | {
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Simple/Scenes/Home/HomeModels.swift:
--------------------------------------------------------------------------------
1 | //
2 | // HomeModels.swift
3 | // Simple
4 | //
5 | // Created by Raymond Law on 6/25/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | enum Home
16 | {
17 | // MARK: Use cases
18 |
19 | enum ShowGreeting
20 | {
21 | struct Request
22 | {
23 | }
24 | struct Response
25 | {
26 | var userID: String?
27 | }
28 | struct ViewModel
29 | {
30 | var userID: String?
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Simple/Scenes/Welcome/WelcomeModels.swift:
--------------------------------------------------------------------------------
1 | //
2 | // WelcomeModels.swift
3 | // Simple
4 | //
5 | // Created by Raymond Law on 6/25/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | enum Welcome
16 | {
17 | // MARK: Use cases
18 |
19 | enum Login
20 | {
21 | struct Request
22 | {
23 | var userID: String?
24 | var password: String?
25 | }
26 | struct Response
27 | {
28 | var success: Bool
29 | }
30 | struct ViewModel
31 | {
32 | var success: Bool
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Simple/Shared/AuthenticationWorker.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AuthenticationWorker.swift
3 | // Simple
4 | //
5 | // Created by Raymond Law on 6/25/18.
6 | // Copyright © 2018 Clean Swift LLC. All rights reserved.
7 | //
8 |
9 | import Foundation
10 |
11 | class AuthenticationWorker
12 | {
13 | let users = ["ray": "secret"]
14 |
15 | func login(userID: String?, password: String?) -> Bool
16 | {
17 | guard let userID = userID, let password = password else { return false }
18 | return users[userID] == password
19 | }
20 |
21 | func saveUserID(_ userID: String?)
22 | {
23 | UserDefaults.standard.set(userID, forKey: "userID")
24 | }
25 |
26 | func getUserID() -> String?
27 | {
28 | return UserDefaults.standard.string(forKey: "userID")
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/SimpleTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/SimpleUITests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/Simple/Scenes/Welcome/WelcomePresenter.swift:
--------------------------------------------------------------------------------
1 | //
2 | // WelcomePresenter.swift
3 | // Simple
4 | //
5 | // Created by Raymond Law on 6/25/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | protocol WelcomePresentationLogic
16 | {
17 | func presentLogin(response: Welcome.Login.Response)
18 | }
19 |
20 | class WelcomePresenter: WelcomePresentationLogic
21 | {
22 | weak var viewController: WelcomeDisplayLogic?
23 |
24 | // MARK: Login
25 |
26 | func presentLogin(response: Welcome.Login.Response)
27 | {
28 | let viewModel = Welcome.Login.ViewModel(success: response.success)
29 | viewController?.displayLogin(viewModel: viewModel)
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Simple/Scenes/Home/HomePresenter.swift:
--------------------------------------------------------------------------------
1 | //
2 | // HomePresenter.swift
3 | // Simple
4 | //
5 | // Created by Raymond Law on 6/25/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | protocol HomePresentationLogic
16 | {
17 | func presentShowGreeting(response: Home.ShowGreeting.Response)
18 | }
19 |
20 | class HomePresenter: HomePresentationLogic
21 | {
22 | weak var viewController: HomeDisplayLogic?
23 |
24 | // MARK: Show greeting
25 |
26 | func presentShowGreeting(response: Home.ShowGreeting.Response)
27 | {
28 | let viewModel = Home.ShowGreeting.ViewModel(userID: response.userID)
29 | viewController?.displayShowGreeting(viewModel: viewModel)
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Simple/Scenes/Home/HomeInteractor.swift:
--------------------------------------------------------------------------------
1 | //
2 | // HomeInteractor.swift
3 | // Simple
4 | //
5 | // Created by Raymond Law on 6/25/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | protocol HomeBusinessLogic
16 | {
17 | func showGreeting(request: Home.ShowGreeting.Request)
18 | }
19 |
20 | protocol HomeDataStore
21 | {
22 | }
23 |
24 | class HomeInteractor: HomeBusinessLogic, HomeDataStore
25 | {
26 | var presenter: HomePresentationLogic?
27 | var worker: HomeWorker?
28 |
29 | // MARK: Show greeting
30 |
31 | func showGreeting(request: Home.ShowGreeting.Request)
32 | {
33 | let userID = AuthenticationWorker().getUserID()
34 | let response = Home.ShowGreeting.Response(userID: userID)
35 | presenter?.presentShowGreeting(response: response)
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/SimpleTests/SimpleTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SimpleTests.swift
3 | // SimpleTests
4 | //
5 | // Created by Raymond Law on 6/25/18.
6 | // Copyright © 2018 Clean Swift LLC. All rights reserved.
7 | //
8 |
9 | import XCTest
10 | @testable import Simple
11 |
12 | class SimpleTests: XCTestCase {
13 |
14 | override func setUp() {
15 | super.setUp()
16 | // Put setup code here. This method is called before the invocation of each test method in the class.
17 | }
18 |
19 | override func tearDown() {
20 | // Put teardown code here. This method is called after the invocation of each test method in the class.
21 | super.tearDown()
22 | }
23 |
24 | func testExample() {
25 | // This is an example of a functional test case.
26 | // Use XCTAssert and related functions to verify your tests produce the correct results.
27 | }
28 |
29 | func testPerformanceExample() {
30 | // This is an example of a performance test case.
31 | self.measure {
32 | // Put the code you want to measure the time of here.
33 | }
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Clean Swift
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 |
--------------------------------------------------------------------------------
/Simple/Scenes/Welcome/WelcomeInteractor.swift:
--------------------------------------------------------------------------------
1 | //
2 | // WelcomeInteractor.swift
3 | // Simple
4 | //
5 | // Created by Raymond Law on 6/25/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | protocol WelcomeBusinessLogic
16 | {
17 | func login(request: Welcome.Login.Request)
18 | }
19 |
20 | protocol WelcomeDataStore
21 | {
22 | }
23 |
24 | class WelcomeInteractor: WelcomeBusinessLogic, WelcomeDataStore
25 | {
26 | var presenter: WelcomePresentationLogic?
27 | var worker: WelcomeWorker?
28 |
29 | // MARK: Login
30 |
31 | func login(request: Welcome.Login.Request)
32 | {
33 | let userID = request.userID
34 | let password = request.password
35 | let authenticationWorker = AuthenticationWorker()
36 | if authenticationWorker.login(userID: userID, password: password) {
37 | authenticationWorker.saveUserID(request.userID)
38 | let response = Welcome.Login.Response(success: true)
39 | presenter?.presentLogin(response: response)
40 | } else {
41 | let response = Welcome.Login.Response(success: false)
42 | presenter?.presentLogin(response: response)
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/SimpleUITests/SimpleUITests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SimpleUITests.swift
3 | // SimpleUITests
4 | //
5 | // Created by Raymond Law on 6/25/18.
6 | // Copyright © 2018 Clean Swift LLC. All rights reserved.
7 | //
8 |
9 | import XCTest
10 |
11 | class SimpleUITests: XCTestCase {
12 |
13 | override func setUp() {
14 | super.setUp()
15 |
16 | // Put setup code here. This method is called before the invocation of each test method in the class.
17 |
18 | // In UI tests it is usually best to stop immediately when a failure occurs.
19 | continueAfterFailure = false
20 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
21 | XCUIApplication().launch()
22 |
23 | // 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.
24 | }
25 |
26 | override func tearDown() {
27 | // Put teardown code here. This method is called after the invocation of each test method in the class.
28 | super.tearDown()
29 | }
30 |
31 | func testExample() {
32 | // Use recording to get started writing UI tests.
33 | // Use XCTAssert and related functions to verify your tests produce the correct results.
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/Simple/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4 |
5 | ## Build generated
6 | build/
7 | DerivedData/
8 |
9 | ## Various settings
10 | *.pbxuser
11 | !default.pbxuser
12 | *.mode1v3
13 | !default.mode1v3
14 | *.mode2v3
15 | !default.mode2v3
16 | *.perspectivev3
17 | !default.perspectivev3
18 | xcuserdata/
19 |
20 | ## Other
21 | *.moved-aside
22 | *.xccheckout
23 | *.xcscmblueprint
24 |
25 | ## Obj-C/Swift specific
26 | *.hmap
27 | *.ipa
28 | *.dSYM.zip
29 | *.dSYM
30 |
31 | ## Playgrounds
32 | timeline.xctimeline
33 | playground.xcworkspace
34 |
35 | # Swift Package Manager
36 | #
37 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
38 | # Packages/
39 | # Package.pins
40 | # Package.resolved
41 | .build/
42 |
43 | # CocoaPods
44 | #
45 | # We recommend against adding the Pods directory to your .gitignore. However
46 | # you should judge for yourself, the pros and cons are mentioned at:
47 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
48 | #
49 | # Pods/
50 |
51 | # Carthage
52 | #
53 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
54 | # Carthage/Checkouts
55 |
56 | Carthage/Build
57 |
58 | # fastlane
59 | #
60 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
61 | # screenshots whenever they are needed.
62 | # For more information about the recommended setup visit:
63 | # https://docs.fastlane.tools/best-practices/source-control/#source-control
64 |
65 | fastlane/report.xml
66 | fastlane/Preview.html
67 | fastlane/screenshots/**/*.png
68 | fastlane/test_output
69 |
--------------------------------------------------------------------------------
/Simple/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Simple/Scenes/Welcome/WelcomeRouter.swift:
--------------------------------------------------------------------------------
1 | //
2 | // WelcomeRouter.swift
3 | // Simple
4 | //
5 | // Created by Raymond Law on 6/25/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | @objc protocol WelcomeRoutingLogic
16 | {
17 | func routeToHome(segue: UIStoryboardSegue?)
18 | }
19 |
20 | protocol WelcomeDataPassing
21 | {
22 | var dataStore: WelcomeDataStore? { get }
23 | }
24 |
25 | class WelcomeRouter: NSObject, WelcomeRoutingLogic, WelcomeDataPassing
26 | {
27 | weak var viewController: WelcomeViewController?
28 | var dataStore: WelcomeDataStore?
29 |
30 | // MARK: Routing
31 |
32 | func routeToHome(segue: UIStoryboardSegue?)
33 | {
34 | if let segue = segue {
35 | let destinationVC = segue.destination as! HomeViewController
36 | var destinationDS = destinationVC.router!.dataStore!
37 | passDataToHome(source: dataStore!, destination: &destinationDS)
38 | } else {
39 | let storyboard = UIStoryboard(name: "Main", bundle: nil)
40 | let destinationVC = storyboard.instantiateViewController(withIdentifier: "HomeViewController") as! HomeViewController
41 | var destinationDS = destinationVC.router!.dataStore!
42 | passDataToHome(source: dataStore!, destination: &destinationDS)
43 | navigateToHome(source: viewController!, destination: destinationVC)
44 | }
45 | }
46 |
47 | // MARK: Navigation
48 |
49 | func navigateToHome(source: WelcomeViewController, destination: HomeViewController)
50 | {
51 | }
52 |
53 | // MARK: Passing data
54 |
55 | func passDataToHome(source: WelcomeDataStore, destination: inout HomeDataStore)
56 | {
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/Simple/Scenes/Home/HomeRouter.swift:
--------------------------------------------------------------------------------
1 | //
2 | // HomeRouter.swift
3 | // Simple
4 | //
5 | // Created by Raymond Law on 6/25/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | @objc protocol HomeRoutingLogic
16 | {
17 | //func routeToSomewhere(segue: UIStoryboardSegue?)
18 | }
19 |
20 | protocol HomeDataPassing
21 | {
22 | var dataStore: HomeDataStore? { get }
23 | }
24 |
25 | class HomeRouter: NSObject, HomeRoutingLogic, HomeDataPassing
26 | {
27 | weak var viewController: HomeViewController?
28 | var dataStore: HomeDataStore?
29 |
30 | // MARK: Routing
31 |
32 | //func routeToSomewhere(segue: UIStoryboardSegue?)
33 | //{
34 | // if let segue = segue {
35 | // let destinationVC = segue.destination as! SomewhereViewController
36 | // var destinationDS = destinationVC.router!.dataStore!
37 | // passDataToSomewhere(source: dataStore!, destination: &destinationDS)
38 | // } else {
39 | // let storyboard = UIStoryboard(name: "Main", bundle: nil)
40 | // let destinationVC = storyboard.instantiateViewController(withIdentifier: "SomewhereViewController") as! SomewhereViewController
41 | // var destinationDS = destinationVC.router!.dataStore!
42 | // passDataToSomewhere(source: dataStore!, destination: &destinationDS)
43 | // navigateToSomewhere(source: viewController!, destination: destinationVC)
44 | // }
45 | //}
46 |
47 | // MARK: Navigation
48 |
49 | //func navigateToSomewhere(source: HomeViewController, destination: SomewhereViewController)
50 | //{
51 | // source.show(destination, sender: nil)
52 | //}
53 |
54 | // MARK: Passing data
55 |
56 | //func passDataToSomewhere(source: HomeDataStore, destination: inout SomewhereDataStore)
57 | //{
58 | // destination.name = source.name
59 | //}
60 | }
61 |
--------------------------------------------------------------------------------
/Simple/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/Simple/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // Simple
4 | //
5 | // Created by Raymond Law on 6/25/18.
6 | // Copyright © 2018 Clean Swift LLC. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | func applicationWillResignActive(_ application: UIApplication) {
23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
25 | }
26 |
27 | func applicationDidEnterBackground(_ application: UIApplication) {
28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | func applicationWillEnterForeground(_ application: UIApplication) {
33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | func applicationDidBecomeActive(_ application: UIApplication) {
37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38 | }
39 |
40 | func applicationWillTerminate(_ application: UIApplication) {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/Simple/Scenes/Home/HomeViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // HomeViewController.swift
3 | // Simple
4 | //
5 | // Created by Raymond Law on 6/25/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | protocol HomeDisplayLogic: class
16 | {
17 | func displayShowGreeting(viewModel: Home.ShowGreeting.ViewModel)
18 | }
19 |
20 | class HomeViewController: UIViewController, HomeDisplayLogic
21 | {
22 | var interactor: HomeBusinessLogic?
23 | var router: (NSObjectProtocol & HomeRoutingLogic & HomeDataPassing)?
24 |
25 | // MARK: Object lifecycle
26 |
27 | override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?)
28 | {
29 | super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
30 | setup()
31 | }
32 |
33 | required init?(coder aDecoder: NSCoder)
34 | {
35 | super.init(coder: aDecoder)
36 | setup()
37 | }
38 |
39 | // MARK: Setup
40 |
41 | private func setup()
42 | {
43 | let viewController = self
44 | let interactor = HomeInteractor()
45 | let presenter = HomePresenter()
46 | let router = HomeRouter()
47 | viewController.interactor = interactor
48 | viewController.router = router
49 | interactor.presenter = presenter
50 | presenter.viewController = viewController
51 | router.viewController = viewController
52 | router.dataStore = interactor
53 | }
54 |
55 | // MARK: Routing
56 |
57 | override func prepare(for segue: UIStoryboardSegue, sender: Any?)
58 | {
59 | if let scene = segue.identifier {
60 | let selector = NSSelectorFromString("routeTo\(scene)WithSegue:")
61 | if let router = router, router.responds(to: selector) {
62 | router.perform(selector, with: segue)
63 | }
64 | }
65 | }
66 |
67 | // MARK: View lifecycle
68 |
69 | override func viewDidLoad()
70 | {
71 | super.viewDidLoad()
72 | showGreeting()
73 | }
74 |
75 | // MARK: Show greeting
76 |
77 | @IBOutlet weak var greetingLabel: UILabel!
78 |
79 | func showGreeting()
80 | {
81 | let request = Home.ShowGreeting.Request()
82 | interactor?.showGreeting(request: request)
83 | }
84 |
85 | func displayShowGreeting(viewModel: Home.ShowGreeting.ViewModel)
86 | {
87 | if let userID = viewModel.userID {
88 | greetingLabel.text = "Hello, \(userID)"
89 | }
90 | }
91 | }
92 |
--------------------------------------------------------------------------------
/Simple/Scenes/Welcome/WelcomeViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // WelcomeViewController.swift
3 | // Simple
4 | //
5 | // Created by Raymond Law on 6/25/18.
6 | // Copyright (c) 2018 Clean Swift LLC. All rights reserved.
7 | //
8 | // This file was generated by the Clean Swift Xcode Templates so
9 | // you can apply clean architecture to your iOS and Mac projects,
10 | // see http://clean-swift.com
11 | //
12 |
13 | import UIKit
14 |
15 | protocol WelcomeDisplayLogic: class
16 | {
17 | func displayLogin(viewModel: Welcome.Login.ViewModel)
18 | }
19 |
20 | class WelcomeViewController: UIViewController, WelcomeDisplayLogic
21 | {
22 | var interactor: WelcomeBusinessLogic?
23 | var router: (NSObjectProtocol & WelcomeRoutingLogic & WelcomeDataPassing)?
24 |
25 | // MARK: Object lifecycle
26 |
27 | override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?)
28 | {
29 | super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
30 | setup()
31 | }
32 |
33 | required init?(coder aDecoder: NSCoder)
34 | {
35 | super.init(coder: aDecoder)
36 | setup()
37 | }
38 |
39 | // MARK: Setup
40 |
41 | private func setup()
42 | {
43 | let viewController = self
44 | let interactor = WelcomeInteractor()
45 | let presenter = WelcomePresenter()
46 | let router = WelcomeRouter()
47 | viewController.interactor = interactor
48 | viewController.router = router
49 | interactor.presenter = presenter
50 | presenter.viewController = viewController
51 | router.viewController = viewController
52 | router.dataStore = interactor
53 | }
54 |
55 | // MARK: Routing
56 |
57 | override func prepare(for segue: UIStoryboardSegue, sender: Any?)
58 | {
59 | if let scene = segue.identifier {
60 | let selector = NSSelectorFromString("routeTo\(scene)WithSegue:")
61 | if let router = router, router.responds(to: selector) {
62 | router.perform(selector, with: segue)
63 | }
64 | }
65 | }
66 |
67 | // MARK: View lifecycle
68 |
69 | override func viewDidLoad()
70 | {
71 | super.viewDidLoad()
72 | }
73 |
74 | // MARK: Login
75 |
76 | @IBOutlet weak var userIDTextField: UITextField!
77 | @IBOutlet weak var passwordTextField: UITextField!
78 |
79 | @IBAction func loginButtonTapped(_ sender: UIButton)
80 | {
81 | login()
82 | }
83 |
84 | func login()
85 | {
86 | let userID = userIDTextField.text
87 | let password = passwordTextField.text
88 | let request = Welcome.Login.Request(userID: userID, password: password)
89 | interactor?.login(request: request)
90 | }
91 |
92 | func displayLogin(viewModel: Welcome.Login.ViewModel)
93 | {
94 | if viewModel.success {
95 | performSegue(withIdentifier: "Home", sender: nil)
96 | } else {
97 | userIDTextField.text = nil
98 | passwordTextField.text = nil
99 | }
100 | }
101 | }
102 |
--------------------------------------------------------------------------------
/Simple/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
--------------------------------------------------------------------------------
/Simple.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 71CCE12E20E0A36100782DF4 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71CCE12D20E0A36100782DF4 /* AppDelegate.swift */; };
11 | 71CCE13320E0A36100782DF4 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71CCE13120E0A36100782DF4 /* Main.storyboard */; };
12 | 71CCE13520E0A36300782DF4 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 71CCE13420E0A36300782DF4 /* Assets.xcassets */; };
13 | 71CCE13820E0A36300782DF4 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71CCE13620E0A36300782DF4 /* LaunchScreen.storyboard */; };
14 | 71CCE14320E0A36300782DF4 /* SimpleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71CCE14220E0A36300782DF4 /* SimpleTests.swift */; };
15 | 71CCE14E20E0A36300782DF4 /* SimpleUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71CCE14D20E0A36300782DF4 /* SimpleUITests.swift */; };
16 | 71CCE16420E0A3F600782DF4 /* WelcomeInteractor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71CCE15E20E0A3F600782DF4 /* WelcomeInteractor.swift */; };
17 | 71CCE16520E0A3F600782DF4 /* WelcomeModels.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71CCE15F20E0A3F600782DF4 /* WelcomeModels.swift */; };
18 | 71CCE16620E0A3F600782DF4 /* WelcomePresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71CCE16020E0A3F600782DF4 /* WelcomePresenter.swift */; };
19 | 71CCE16720E0A3F600782DF4 /* WelcomeRouter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71CCE16120E0A3F600782DF4 /* WelcomeRouter.swift */; };
20 | 71CCE16820E0A3F600782DF4 /* WelcomeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71CCE16220E0A3F600782DF4 /* WelcomeViewController.swift */; };
21 | 71CCE16920E0A3F600782DF4 /* WelcomeWorker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71CCE16320E0A3F600782DF4 /* WelcomeWorker.swift */; };
22 | 71CCE17020E0A40700782DF4 /* HomeInteractor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71CCE16A20E0A40700782DF4 /* HomeInteractor.swift */; };
23 | 71CCE17120E0A40700782DF4 /* HomeModels.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71CCE16B20E0A40700782DF4 /* HomeModels.swift */; };
24 | 71CCE17220E0A40700782DF4 /* HomePresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71CCE16C20E0A40700782DF4 /* HomePresenter.swift */; };
25 | 71CCE17320E0A40700782DF4 /* HomeRouter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71CCE16D20E0A40700782DF4 /* HomeRouter.swift */; };
26 | 71CCE17420E0A40700782DF4 /* HomeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71CCE16E20E0A40700782DF4 /* HomeViewController.swift */; };
27 | 71CCE17520E0A40700782DF4 /* HomeWorker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71CCE16F20E0A40700782DF4 /* HomeWorker.swift */; };
28 | 71CCE17820E0AF0400782DF4 /* AuthenticationWorker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71CCE17720E0AF0400782DF4 /* AuthenticationWorker.swift */; };
29 | /* End PBXBuildFile section */
30 |
31 | /* Begin PBXContainerItemProxy section */
32 | 71CCE13F20E0A36300782DF4 /* PBXContainerItemProxy */ = {
33 | isa = PBXContainerItemProxy;
34 | containerPortal = 71CCE12220E0A36100782DF4 /* Project object */;
35 | proxyType = 1;
36 | remoteGlobalIDString = 71CCE12920E0A36100782DF4;
37 | remoteInfo = Simple;
38 | };
39 | 71CCE14A20E0A36300782DF4 /* PBXContainerItemProxy */ = {
40 | isa = PBXContainerItemProxy;
41 | containerPortal = 71CCE12220E0A36100782DF4 /* Project object */;
42 | proxyType = 1;
43 | remoteGlobalIDString = 71CCE12920E0A36100782DF4;
44 | remoteInfo = Simple;
45 | };
46 | /* End PBXContainerItemProxy section */
47 |
48 | /* Begin PBXFileReference section */
49 | 71CCE12A20E0A36100782DF4 /* Simple.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Simple.app; sourceTree = BUILT_PRODUCTS_DIR; };
50 | 71CCE12D20E0A36100782DF4 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
51 | 71CCE13220E0A36100782DF4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
52 | 71CCE13420E0A36300782DF4 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
53 | 71CCE13720E0A36300782DF4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
54 | 71CCE13920E0A36300782DF4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
55 | 71CCE13E20E0A36300782DF4 /* SimpleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SimpleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
56 | 71CCE14220E0A36300782DF4 /* SimpleTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SimpleTests.swift; sourceTree = ""; };
57 | 71CCE14420E0A36300782DF4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
58 | 71CCE14920E0A36300782DF4 /* SimpleUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SimpleUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
59 | 71CCE14D20E0A36300782DF4 /* SimpleUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SimpleUITests.swift; sourceTree = ""; };
60 | 71CCE14F20E0A36300782DF4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
61 | 71CCE15E20E0A3F600782DF4 /* WelcomeInteractor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeInteractor.swift; sourceTree = ""; };
62 | 71CCE15F20E0A3F600782DF4 /* WelcomeModels.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeModels.swift; sourceTree = ""; };
63 | 71CCE16020E0A3F600782DF4 /* WelcomePresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomePresenter.swift; sourceTree = ""; };
64 | 71CCE16120E0A3F600782DF4 /* WelcomeRouter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeRouter.swift; sourceTree = ""; };
65 | 71CCE16220E0A3F600782DF4 /* WelcomeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeViewController.swift; sourceTree = ""; };
66 | 71CCE16320E0A3F600782DF4 /* WelcomeWorker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeWorker.swift; sourceTree = ""; };
67 | 71CCE16A20E0A40700782DF4 /* HomeInteractor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeInteractor.swift; sourceTree = ""; };
68 | 71CCE16B20E0A40700782DF4 /* HomeModels.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeModels.swift; sourceTree = ""; };
69 | 71CCE16C20E0A40700782DF4 /* HomePresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomePresenter.swift; sourceTree = ""; };
70 | 71CCE16D20E0A40700782DF4 /* HomeRouter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeRouter.swift; sourceTree = ""; };
71 | 71CCE16E20E0A40700782DF4 /* HomeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeViewController.swift; sourceTree = ""; };
72 | 71CCE16F20E0A40700782DF4 /* HomeWorker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeWorker.swift; sourceTree = ""; };
73 | 71CCE17720E0AF0400782DF4 /* AuthenticationWorker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AuthenticationWorker.swift; sourceTree = ""; };
74 | /* End PBXFileReference section */
75 |
76 | /* Begin PBXFrameworksBuildPhase section */
77 | 71CCE12720E0A36100782DF4 /* Frameworks */ = {
78 | isa = PBXFrameworksBuildPhase;
79 | buildActionMask = 2147483647;
80 | files = (
81 | );
82 | runOnlyForDeploymentPostprocessing = 0;
83 | };
84 | 71CCE13B20E0A36300782DF4 /* Frameworks */ = {
85 | isa = PBXFrameworksBuildPhase;
86 | buildActionMask = 2147483647;
87 | files = (
88 | );
89 | runOnlyForDeploymentPostprocessing = 0;
90 | };
91 | 71CCE14620E0A36300782DF4 /* Frameworks */ = {
92 | isa = PBXFrameworksBuildPhase;
93 | buildActionMask = 2147483647;
94 | files = (
95 | );
96 | runOnlyForDeploymentPostprocessing = 0;
97 | };
98 | /* End PBXFrameworksBuildPhase section */
99 |
100 | /* Begin PBXGroup section */
101 | 71CCE12120E0A36100782DF4 = {
102 | isa = PBXGroup;
103 | children = (
104 | 71CCE12C20E0A36100782DF4 /* Simple */,
105 | 71CCE14120E0A36300782DF4 /* SimpleTests */,
106 | 71CCE14C20E0A36300782DF4 /* SimpleUITests */,
107 | 71CCE12B20E0A36100782DF4 /* Products */,
108 | );
109 | sourceTree = "";
110 | };
111 | 71CCE12B20E0A36100782DF4 /* Products */ = {
112 | isa = PBXGroup;
113 | children = (
114 | 71CCE12A20E0A36100782DF4 /* Simple.app */,
115 | 71CCE13E20E0A36300782DF4 /* SimpleTests.xctest */,
116 | 71CCE14920E0A36300782DF4 /* SimpleUITests.xctest */,
117 | );
118 | name = Products;
119 | sourceTree = "";
120 | };
121 | 71CCE12C20E0A36100782DF4 /* Simple */ = {
122 | isa = PBXGroup;
123 | children = (
124 | 71CCE17620E0AE7E00782DF4 /* Shared */,
125 | 71CCE15B20E0A37600782DF4 /* Scenes */,
126 | 71CCE12D20E0A36100782DF4 /* AppDelegate.swift */,
127 | 71CCE13120E0A36100782DF4 /* Main.storyboard */,
128 | 71CCE13420E0A36300782DF4 /* Assets.xcassets */,
129 | 71CCE13620E0A36300782DF4 /* LaunchScreen.storyboard */,
130 | 71CCE13920E0A36300782DF4 /* Info.plist */,
131 | );
132 | path = Simple;
133 | sourceTree = "";
134 | };
135 | 71CCE14120E0A36300782DF4 /* SimpleTests */ = {
136 | isa = PBXGroup;
137 | children = (
138 | 71CCE14220E0A36300782DF4 /* SimpleTests.swift */,
139 | 71CCE14420E0A36300782DF4 /* Info.plist */,
140 | );
141 | path = SimpleTests;
142 | sourceTree = "";
143 | };
144 | 71CCE14C20E0A36300782DF4 /* SimpleUITests */ = {
145 | isa = PBXGroup;
146 | children = (
147 | 71CCE14D20E0A36300782DF4 /* SimpleUITests.swift */,
148 | 71CCE14F20E0A36300782DF4 /* Info.plist */,
149 | );
150 | path = SimpleUITests;
151 | sourceTree = "";
152 | };
153 | 71CCE15B20E0A37600782DF4 /* Scenes */ = {
154 | isa = PBXGroup;
155 | children = (
156 | 71CCE15C20E0A37900782DF4 /* Welcome */,
157 | 71CCE15D20E0A38A00782DF4 /* Home */,
158 | );
159 | path = Scenes;
160 | sourceTree = "";
161 | };
162 | 71CCE15C20E0A37900782DF4 /* Welcome */ = {
163 | isa = PBXGroup;
164 | children = (
165 | 71CCE15E20E0A3F600782DF4 /* WelcomeInteractor.swift */,
166 | 71CCE15F20E0A3F600782DF4 /* WelcomeModels.swift */,
167 | 71CCE16020E0A3F600782DF4 /* WelcomePresenter.swift */,
168 | 71CCE16120E0A3F600782DF4 /* WelcomeRouter.swift */,
169 | 71CCE16220E0A3F600782DF4 /* WelcomeViewController.swift */,
170 | 71CCE16320E0A3F600782DF4 /* WelcomeWorker.swift */,
171 | );
172 | path = Welcome;
173 | sourceTree = "";
174 | };
175 | 71CCE15D20E0A38A00782DF4 /* Home */ = {
176 | isa = PBXGroup;
177 | children = (
178 | 71CCE16A20E0A40700782DF4 /* HomeInteractor.swift */,
179 | 71CCE16B20E0A40700782DF4 /* HomeModels.swift */,
180 | 71CCE16C20E0A40700782DF4 /* HomePresenter.swift */,
181 | 71CCE16D20E0A40700782DF4 /* HomeRouter.swift */,
182 | 71CCE16E20E0A40700782DF4 /* HomeViewController.swift */,
183 | 71CCE16F20E0A40700782DF4 /* HomeWorker.swift */,
184 | );
185 | path = Home;
186 | sourceTree = "";
187 | };
188 | 71CCE17620E0AE7E00782DF4 /* Shared */ = {
189 | isa = PBXGroup;
190 | children = (
191 | 71CCE17720E0AF0400782DF4 /* AuthenticationWorker.swift */,
192 | );
193 | path = Shared;
194 | sourceTree = "";
195 | };
196 | /* End PBXGroup section */
197 |
198 | /* Begin PBXNativeTarget section */
199 | 71CCE12920E0A36100782DF4 /* Simple */ = {
200 | isa = PBXNativeTarget;
201 | buildConfigurationList = 71CCE15220E0A36300782DF4 /* Build configuration list for PBXNativeTarget "Simple" */;
202 | buildPhases = (
203 | 71CCE12620E0A36100782DF4 /* Sources */,
204 | 71CCE12720E0A36100782DF4 /* Frameworks */,
205 | 71CCE12820E0A36100782DF4 /* Resources */,
206 | );
207 | buildRules = (
208 | );
209 | dependencies = (
210 | );
211 | name = Simple;
212 | productName = Simple;
213 | productReference = 71CCE12A20E0A36100782DF4 /* Simple.app */;
214 | productType = "com.apple.product-type.application";
215 | };
216 | 71CCE13D20E0A36300782DF4 /* SimpleTests */ = {
217 | isa = PBXNativeTarget;
218 | buildConfigurationList = 71CCE15520E0A36300782DF4 /* Build configuration list for PBXNativeTarget "SimpleTests" */;
219 | buildPhases = (
220 | 71CCE13A20E0A36300782DF4 /* Sources */,
221 | 71CCE13B20E0A36300782DF4 /* Frameworks */,
222 | 71CCE13C20E0A36300782DF4 /* Resources */,
223 | );
224 | buildRules = (
225 | );
226 | dependencies = (
227 | 71CCE14020E0A36300782DF4 /* PBXTargetDependency */,
228 | );
229 | name = SimpleTests;
230 | productName = SimpleTests;
231 | productReference = 71CCE13E20E0A36300782DF4 /* SimpleTests.xctest */;
232 | productType = "com.apple.product-type.bundle.unit-test";
233 | };
234 | 71CCE14820E0A36300782DF4 /* SimpleUITests */ = {
235 | isa = PBXNativeTarget;
236 | buildConfigurationList = 71CCE15820E0A36300782DF4 /* Build configuration list for PBXNativeTarget "SimpleUITests" */;
237 | buildPhases = (
238 | 71CCE14520E0A36300782DF4 /* Sources */,
239 | 71CCE14620E0A36300782DF4 /* Frameworks */,
240 | 71CCE14720E0A36300782DF4 /* Resources */,
241 | );
242 | buildRules = (
243 | );
244 | dependencies = (
245 | 71CCE14B20E0A36300782DF4 /* PBXTargetDependency */,
246 | );
247 | name = SimpleUITests;
248 | productName = SimpleUITests;
249 | productReference = 71CCE14920E0A36300782DF4 /* SimpleUITests.xctest */;
250 | productType = "com.apple.product-type.bundle.ui-testing";
251 | };
252 | /* End PBXNativeTarget section */
253 |
254 | /* Begin PBXProject section */
255 | 71CCE12220E0A36100782DF4 /* Project object */ = {
256 | isa = PBXProject;
257 | attributes = {
258 | LastSwiftUpdateCheck = 0940;
259 | LastUpgradeCheck = 0940;
260 | ORGANIZATIONNAME = "Clean Swift LLC";
261 | TargetAttributes = {
262 | 71CCE12920E0A36100782DF4 = {
263 | CreatedOnToolsVersion = 9.4.1;
264 | };
265 | 71CCE13D20E0A36300782DF4 = {
266 | CreatedOnToolsVersion = 9.4.1;
267 | TestTargetID = 71CCE12920E0A36100782DF4;
268 | };
269 | 71CCE14820E0A36300782DF4 = {
270 | CreatedOnToolsVersion = 9.4.1;
271 | TestTargetID = 71CCE12920E0A36100782DF4;
272 | };
273 | };
274 | };
275 | buildConfigurationList = 71CCE12520E0A36100782DF4 /* Build configuration list for PBXProject "Simple" */;
276 | compatibilityVersion = "Xcode 9.3";
277 | developmentRegion = en;
278 | hasScannedForEncodings = 0;
279 | knownRegions = (
280 | en,
281 | Base,
282 | );
283 | mainGroup = 71CCE12120E0A36100782DF4;
284 | productRefGroup = 71CCE12B20E0A36100782DF4 /* Products */;
285 | projectDirPath = "";
286 | projectRoot = "";
287 | targets = (
288 | 71CCE12920E0A36100782DF4 /* Simple */,
289 | 71CCE13D20E0A36300782DF4 /* SimpleTests */,
290 | 71CCE14820E0A36300782DF4 /* SimpleUITests */,
291 | );
292 | };
293 | /* End PBXProject section */
294 |
295 | /* Begin PBXResourcesBuildPhase section */
296 | 71CCE12820E0A36100782DF4 /* Resources */ = {
297 | isa = PBXResourcesBuildPhase;
298 | buildActionMask = 2147483647;
299 | files = (
300 | 71CCE13820E0A36300782DF4 /* LaunchScreen.storyboard in Resources */,
301 | 71CCE13520E0A36300782DF4 /* Assets.xcassets in Resources */,
302 | 71CCE13320E0A36100782DF4 /* Main.storyboard in Resources */,
303 | );
304 | runOnlyForDeploymentPostprocessing = 0;
305 | };
306 | 71CCE13C20E0A36300782DF4 /* Resources */ = {
307 | isa = PBXResourcesBuildPhase;
308 | buildActionMask = 2147483647;
309 | files = (
310 | );
311 | runOnlyForDeploymentPostprocessing = 0;
312 | };
313 | 71CCE14720E0A36300782DF4 /* Resources */ = {
314 | isa = PBXResourcesBuildPhase;
315 | buildActionMask = 2147483647;
316 | files = (
317 | );
318 | runOnlyForDeploymentPostprocessing = 0;
319 | };
320 | /* End PBXResourcesBuildPhase section */
321 |
322 | /* Begin PBXSourcesBuildPhase section */
323 | 71CCE12620E0A36100782DF4 /* Sources */ = {
324 | isa = PBXSourcesBuildPhase;
325 | buildActionMask = 2147483647;
326 | files = (
327 | 71CCE12E20E0A36100782DF4 /* AppDelegate.swift in Sources */,
328 | 71CCE17120E0A40700782DF4 /* HomeModels.swift in Sources */,
329 | 71CCE16620E0A3F600782DF4 /* WelcomePresenter.swift in Sources */,
330 | 71CCE17220E0A40700782DF4 /* HomePresenter.swift in Sources */,
331 | 71CCE16920E0A3F600782DF4 /* WelcomeWorker.swift in Sources */,
332 | 71CCE17020E0A40700782DF4 /* HomeInteractor.swift in Sources */,
333 | 71CCE16420E0A3F600782DF4 /* WelcomeInteractor.swift in Sources */,
334 | 71CCE16820E0A3F600782DF4 /* WelcomeViewController.swift in Sources */,
335 | 71CCE16720E0A3F600782DF4 /* WelcomeRouter.swift in Sources */,
336 | 71CCE17820E0AF0400782DF4 /* AuthenticationWorker.swift in Sources */,
337 | 71CCE17520E0A40700782DF4 /* HomeWorker.swift in Sources */,
338 | 71CCE16520E0A3F600782DF4 /* WelcomeModels.swift in Sources */,
339 | 71CCE17320E0A40700782DF4 /* HomeRouter.swift in Sources */,
340 | 71CCE17420E0A40700782DF4 /* HomeViewController.swift in Sources */,
341 | );
342 | runOnlyForDeploymentPostprocessing = 0;
343 | };
344 | 71CCE13A20E0A36300782DF4 /* Sources */ = {
345 | isa = PBXSourcesBuildPhase;
346 | buildActionMask = 2147483647;
347 | files = (
348 | 71CCE14320E0A36300782DF4 /* SimpleTests.swift in Sources */,
349 | );
350 | runOnlyForDeploymentPostprocessing = 0;
351 | };
352 | 71CCE14520E0A36300782DF4 /* Sources */ = {
353 | isa = PBXSourcesBuildPhase;
354 | buildActionMask = 2147483647;
355 | files = (
356 | 71CCE14E20E0A36300782DF4 /* SimpleUITests.swift in Sources */,
357 | );
358 | runOnlyForDeploymentPostprocessing = 0;
359 | };
360 | /* End PBXSourcesBuildPhase section */
361 |
362 | /* Begin PBXTargetDependency section */
363 | 71CCE14020E0A36300782DF4 /* PBXTargetDependency */ = {
364 | isa = PBXTargetDependency;
365 | target = 71CCE12920E0A36100782DF4 /* Simple */;
366 | targetProxy = 71CCE13F20E0A36300782DF4 /* PBXContainerItemProxy */;
367 | };
368 | 71CCE14B20E0A36300782DF4 /* PBXTargetDependency */ = {
369 | isa = PBXTargetDependency;
370 | target = 71CCE12920E0A36100782DF4 /* Simple */;
371 | targetProxy = 71CCE14A20E0A36300782DF4 /* PBXContainerItemProxy */;
372 | };
373 | /* End PBXTargetDependency section */
374 |
375 | /* Begin PBXVariantGroup section */
376 | 71CCE13120E0A36100782DF4 /* Main.storyboard */ = {
377 | isa = PBXVariantGroup;
378 | children = (
379 | 71CCE13220E0A36100782DF4 /* Base */,
380 | );
381 | name = Main.storyboard;
382 | sourceTree = "";
383 | };
384 | 71CCE13620E0A36300782DF4 /* LaunchScreen.storyboard */ = {
385 | isa = PBXVariantGroup;
386 | children = (
387 | 71CCE13720E0A36300782DF4 /* Base */,
388 | );
389 | name = LaunchScreen.storyboard;
390 | sourceTree = "";
391 | };
392 | /* End PBXVariantGroup section */
393 |
394 | /* Begin XCBuildConfiguration section */
395 | 71CCE15020E0A36300782DF4 /* Debug */ = {
396 | isa = XCBuildConfiguration;
397 | buildSettings = {
398 | ALWAYS_SEARCH_USER_PATHS = NO;
399 | CLANG_ANALYZER_NONNULL = YES;
400 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
401 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
402 | CLANG_CXX_LIBRARY = "libc++";
403 | CLANG_ENABLE_MODULES = YES;
404 | CLANG_ENABLE_OBJC_ARC = YES;
405 | CLANG_ENABLE_OBJC_WEAK = YES;
406 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
407 | CLANG_WARN_BOOL_CONVERSION = YES;
408 | CLANG_WARN_COMMA = YES;
409 | CLANG_WARN_CONSTANT_CONVERSION = YES;
410 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
411 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
412 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
413 | CLANG_WARN_EMPTY_BODY = YES;
414 | CLANG_WARN_ENUM_CONVERSION = YES;
415 | CLANG_WARN_INFINITE_RECURSION = YES;
416 | CLANG_WARN_INT_CONVERSION = YES;
417 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
418 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
419 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
420 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
421 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
422 | CLANG_WARN_STRICT_PROTOTYPES = YES;
423 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
424 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
425 | CLANG_WARN_UNREACHABLE_CODE = YES;
426 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
427 | CODE_SIGN_IDENTITY = "iPhone Developer";
428 | COPY_PHASE_STRIP = NO;
429 | DEBUG_INFORMATION_FORMAT = dwarf;
430 | ENABLE_STRICT_OBJC_MSGSEND = YES;
431 | ENABLE_TESTABILITY = YES;
432 | GCC_C_LANGUAGE_STANDARD = gnu11;
433 | GCC_DYNAMIC_NO_PIC = NO;
434 | GCC_NO_COMMON_BLOCKS = YES;
435 | GCC_OPTIMIZATION_LEVEL = 0;
436 | GCC_PREPROCESSOR_DEFINITIONS = (
437 | "DEBUG=1",
438 | "$(inherited)",
439 | );
440 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
441 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
442 | GCC_WARN_UNDECLARED_SELECTOR = YES;
443 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
444 | GCC_WARN_UNUSED_FUNCTION = YES;
445 | GCC_WARN_UNUSED_VARIABLE = YES;
446 | IPHONEOS_DEPLOYMENT_TARGET = 11.4;
447 | MTL_ENABLE_DEBUG_INFO = YES;
448 | ONLY_ACTIVE_ARCH = YES;
449 | SDKROOT = iphoneos;
450 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
451 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
452 | };
453 | name = Debug;
454 | };
455 | 71CCE15120E0A36300782DF4 /* Release */ = {
456 | isa = XCBuildConfiguration;
457 | buildSettings = {
458 | ALWAYS_SEARCH_USER_PATHS = NO;
459 | CLANG_ANALYZER_NONNULL = YES;
460 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
461 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
462 | CLANG_CXX_LIBRARY = "libc++";
463 | CLANG_ENABLE_MODULES = YES;
464 | CLANG_ENABLE_OBJC_ARC = YES;
465 | CLANG_ENABLE_OBJC_WEAK = YES;
466 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
467 | CLANG_WARN_BOOL_CONVERSION = YES;
468 | CLANG_WARN_COMMA = YES;
469 | CLANG_WARN_CONSTANT_CONVERSION = YES;
470 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
471 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
472 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
473 | CLANG_WARN_EMPTY_BODY = YES;
474 | CLANG_WARN_ENUM_CONVERSION = YES;
475 | CLANG_WARN_INFINITE_RECURSION = YES;
476 | CLANG_WARN_INT_CONVERSION = YES;
477 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
478 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
479 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
480 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
481 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
482 | CLANG_WARN_STRICT_PROTOTYPES = YES;
483 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
484 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
485 | CLANG_WARN_UNREACHABLE_CODE = YES;
486 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
487 | CODE_SIGN_IDENTITY = "iPhone Developer";
488 | COPY_PHASE_STRIP = NO;
489 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
490 | ENABLE_NS_ASSERTIONS = NO;
491 | ENABLE_STRICT_OBJC_MSGSEND = YES;
492 | GCC_C_LANGUAGE_STANDARD = gnu11;
493 | GCC_NO_COMMON_BLOCKS = YES;
494 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
495 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
496 | GCC_WARN_UNDECLARED_SELECTOR = YES;
497 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
498 | GCC_WARN_UNUSED_FUNCTION = YES;
499 | GCC_WARN_UNUSED_VARIABLE = YES;
500 | IPHONEOS_DEPLOYMENT_TARGET = 11.4;
501 | MTL_ENABLE_DEBUG_INFO = NO;
502 | SDKROOT = iphoneos;
503 | SWIFT_COMPILATION_MODE = wholemodule;
504 | SWIFT_OPTIMIZATION_LEVEL = "-O";
505 | VALIDATE_PRODUCT = YES;
506 | };
507 | name = Release;
508 | };
509 | 71CCE15320E0A36300782DF4 /* Debug */ = {
510 | isa = XCBuildConfiguration;
511 | buildSettings = {
512 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
513 | CODE_SIGN_STYLE = Automatic;
514 | DEVELOPMENT_TEAM = 5LBZDN8XB8;
515 | INFOPLIST_FILE = Simple/Info.plist;
516 | LD_RUNPATH_SEARCH_PATHS = (
517 | "$(inherited)",
518 | "@executable_path/Frameworks",
519 | );
520 | PRODUCT_BUNDLE_IDENTIFIER = "com.clean-swift.Simple";
521 | PRODUCT_NAME = "$(TARGET_NAME)";
522 | SWIFT_VERSION = 4.0;
523 | TARGETED_DEVICE_FAMILY = "1,2";
524 | };
525 | name = Debug;
526 | };
527 | 71CCE15420E0A36300782DF4 /* Release */ = {
528 | isa = XCBuildConfiguration;
529 | buildSettings = {
530 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
531 | CODE_SIGN_STYLE = Automatic;
532 | DEVELOPMENT_TEAM = 5LBZDN8XB8;
533 | INFOPLIST_FILE = Simple/Info.plist;
534 | LD_RUNPATH_SEARCH_PATHS = (
535 | "$(inherited)",
536 | "@executable_path/Frameworks",
537 | );
538 | PRODUCT_BUNDLE_IDENTIFIER = "com.clean-swift.Simple";
539 | PRODUCT_NAME = "$(TARGET_NAME)";
540 | SWIFT_VERSION = 4.0;
541 | TARGETED_DEVICE_FAMILY = "1,2";
542 | };
543 | name = Release;
544 | };
545 | 71CCE15620E0A36300782DF4 /* Debug */ = {
546 | isa = XCBuildConfiguration;
547 | buildSettings = {
548 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
549 | BUNDLE_LOADER = "$(TEST_HOST)";
550 | CODE_SIGN_STYLE = Automatic;
551 | DEVELOPMENT_TEAM = 5LBZDN8XB8;
552 | INFOPLIST_FILE = SimpleTests/Info.plist;
553 | LD_RUNPATH_SEARCH_PATHS = (
554 | "$(inherited)",
555 | "@executable_path/Frameworks",
556 | "@loader_path/Frameworks",
557 | );
558 | PRODUCT_BUNDLE_IDENTIFIER = "com.clean-swift.SimpleTests";
559 | PRODUCT_NAME = "$(TARGET_NAME)";
560 | SWIFT_VERSION = 4.0;
561 | TARGETED_DEVICE_FAMILY = "1,2";
562 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Simple.app/Simple";
563 | };
564 | name = Debug;
565 | };
566 | 71CCE15720E0A36300782DF4 /* Release */ = {
567 | isa = XCBuildConfiguration;
568 | buildSettings = {
569 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
570 | BUNDLE_LOADER = "$(TEST_HOST)";
571 | CODE_SIGN_STYLE = Automatic;
572 | DEVELOPMENT_TEAM = 5LBZDN8XB8;
573 | INFOPLIST_FILE = SimpleTests/Info.plist;
574 | LD_RUNPATH_SEARCH_PATHS = (
575 | "$(inherited)",
576 | "@executable_path/Frameworks",
577 | "@loader_path/Frameworks",
578 | );
579 | PRODUCT_BUNDLE_IDENTIFIER = "com.clean-swift.SimpleTests";
580 | PRODUCT_NAME = "$(TARGET_NAME)";
581 | SWIFT_VERSION = 4.0;
582 | TARGETED_DEVICE_FAMILY = "1,2";
583 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Simple.app/Simple";
584 | };
585 | name = Release;
586 | };
587 | 71CCE15920E0A36300782DF4 /* Debug */ = {
588 | isa = XCBuildConfiguration;
589 | buildSettings = {
590 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
591 | CODE_SIGN_STYLE = Automatic;
592 | DEVELOPMENT_TEAM = 5LBZDN8XB8;
593 | INFOPLIST_FILE = SimpleUITests/Info.plist;
594 | LD_RUNPATH_SEARCH_PATHS = (
595 | "$(inherited)",
596 | "@executable_path/Frameworks",
597 | "@loader_path/Frameworks",
598 | );
599 | PRODUCT_BUNDLE_IDENTIFIER = "com.clean-swift.SimpleUITests";
600 | PRODUCT_NAME = "$(TARGET_NAME)";
601 | SWIFT_VERSION = 4.0;
602 | TARGETED_DEVICE_FAMILY = "1,2";
603 | TEST_TARGET_NAME = Simple;
604 | };
605 | name = Debug;
606 | };
607 | 71CCE15A20E0A36300782DF4 /* Release */ = {
608 | isa = XCBuildConfiguration;
609 | buildSettings = {
610 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
611 | CODE_SIGN_STYLE = Automatic;
612 | DEVELOPMENT_TEAM = 5LBZDN8XB8;
613 | INFOPLIST_FILE = SimpleUITests/Info.plist;
614 | LD_RUNPATH_SEARCH_PATHS = (
615 | "$(inherited)",
616 | "@executable_path/Frameworks",
617 | "@loader_path/Frameworks",
618 | );
619 | PRODUCT_BUNDLE_IDENTIFIER = "com.clean-swift.SimpleUITests";
620 | PRODUCT_NAME = "$(TARGET_NAME)";
621 | SWIFT_VERSION = 4.0;
622 | TARGETED_DEVICE_FAMILY = "1,2";
623 | TEST_TARGET_NAME = Simple;
624 | };
625 | name = Release;
626 | };
627 | /* End XCBuildConfiguration section */
628 |
629 | /* Begin XCConfigurationList section */
630 | 71CCE12520E0A36100782DF4 /* Build configuration list for PBXProject "Simple" */ = {
631 | isa = XCConfigurationList;
632 | buildConfigurations = (
633 | 71CCE15020E0A36300782DF4 /* Debug */,
634 | 71CCE15120E0A36300782DF4 /* Release */,
635 | );
636 | defaultConfigurationIsVisible = 0;
637 | defaultConfigurationName = Release;
638 | };
639 | 71CCE15220E0A36300782DF4 /* Build configuration list for PBXNativeTarget "Simple" */ = {
640 | isa = XCConfigurationList;
641 | buildConfigurations = (
642 | 71CCE15320E0A36300782DF4 /* Debug */,
643 | 71CCE15420E0A36300782DF4 /* Release */,
644 | );
645 | defaultConfigurationIsVisible = 0;
646 | defaultConfigurationName = Release;
647 | };
648 | 71CCE15520E0A36300782DF4 /* Build configuration list for PBXNativeTarget "SimpleTests" */ = {
649 | isa = XCConfigurationList;
650 | buildConfigurations = (
651 | 71CCE15620E0A36300782DF4 /* Debug */,
652 | 71CCE15720E0A36300782DF4 /* Release */,
653 | );
654 | defaultConfigurationIsVisible = 0;
655 | defaultConfigurationName = Release;
656 | };
657 | 71CCE15820E0A36300782DF4 /* Build configuration list for PBXNativeTarget "SimpleUITests" */ = {
658 | isa = XCConfigurationList;
659 | buildConfigurations = (
660 | 71CCE15920E0A36300782DF4 /* Debug */,
661 | 71CCE15A20E0A36300782DF4 /* Release */,
662 | );
663 | defaultConfigurationIsVisible = 0;
664 | defaultConfigurationName = Release;
665 | };
666 | /* End XCConfigurationList section */
667 | };
668 | rootObject = 71CCE12220E0A36100782DF4 /* Project object */;
669 | }
670 |
--------------------------------------------------------------------------------