-
Notifications
You must be signed in to change notification settings - Fork 6
/
Project.swift
87 lines (79 loc) · 3.57 KB
/
Project.swift
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
37
38
39
40
41
42
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import ProjectDescription
import ProjectDescriptionHelpers
// MARK: - Project
// Creates our project using a helper function defined in ProjectDescriptionHelpers
let project = Project.app(name: "Pokedex",
platform: .iOS, externalDependencies: ["JGProgressHUD"],
targetDependancies: [],
moduleTargets: [makeHanekeModule(),
makeHomeModule(),
makeBackpackModule(),
makeDetailModule(),
makeCatchModule(),
makeCommonModule(),
makeNetworkModule()
])
func makeHanekeModule() -> Module {
return Module(name: "Haneke",
path: "Haneke",
frameworkDependancies: [],
exampleDependencies: [],
frameworkResources: [],
exampleResources: ["Resources/**"],
testResources: [])
}
func makeHomeModule() -> Module {
return Module(name: "HomeUI",
path: "Home",
frameworkDependancies: [.target(name: "Common")],
exampleDependencies: [.package(product: "JGProgressHUD")],
frameworkResources: ["Sources/**/*.storyboard", "Resources/**"],
exampleResources: ["Resources/**"],
testResources: [])
}
func makeBackpackModule() -> Module {
return Module(name: "BackpackUI",
path: "Backpack",
frameworkDependancies: [.target(name: "Common"), .target(name: "Haneke")],
exampleDependencies: [.target(name: "Detail")],
frameworkResources: ["Resources/**", "Sources/**/*.xib", "Sources/**/*.storyboard"],
exampleResources: ["Resources/**", "Sources/**/*.storyboard"],
testResources: [])
}
func makeDetailModule() -> Module {
return Module(name: "Detail",
path: "Detail",
frameworkDependancies: [.target(name: "Common"), .target(name: "Haneke")],
exampleDependencies: [],
frameworkResources: ["Sources/**/*.storyboard"],
exampleResources: ["Resources/**"],
testResources: [])
}
func makeCatchModule() -> Module {
Module(name: "CatchUI",
path: "Catch",
frameworkDependancies: [.target(name: "Common"), .target(name: "Haneke")],
exampleDependencies: [.package(product: "JGProgressHUD"), .target(name: "NetworkKit")],
frameworkResources: ["Resources/**", "Sources/**/*.storyboard"],
exampleResources: ["Resources/**", "Sources/**/*.storyboard"],
testResources: [])
}
func makeCommonModule() -> Module {
return Module(name: "Common",
path: "Common",
frameworkDependancies: [],
exampleDependencies: [],
frameworkResources: ["Sources/**/*.xib"],
exampleResources: ["Resources/**"],
testResources: [],
targets: [.framework, .unitTests])
}
func makeNetworkModule() -> Module {
return Module(name: "NetworkKit",
path: "Network",
frameworkDependancies: [],
exampleDependencies: [.target(name: "Common")],
frameworkResources: ["Resources/**"],
exampleResources: ["Resources/**"],
testResources: ["**/*.json"])
}