[Library] Feed library (#4)
This PR contains the work done to setup the library and also, the necessary protocols, model, structs, and error definitions to implement remote service clients. Reviewed-on: rock-n-code/app-reviews#4 Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
This commit was merged in pull request #4.
This commit is contained in:
+36
-3
@@ -11,22 +11,53 @@ let package = Package(
|
||||
.library(
|
||||
name: .Product.name.kit,
|
||||
targets: [
|
||||
.Target.foundation
|
||||
.Target.feed.kit,
|
||||
.Target.foundation.kit,
|
||||
.Target.iTunes.kit,
|
||||
]
|
||||
),
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
name: .Target.foundation,
|
||||
name: .Target.feed.kit,
|
||||
dependencies: [
|
||||
.byName(name: .Target.foundation.kit),
|
||||
],
|
||||
path: "Feed/Kit"
|
||||
),
|
||||
.target(
|
||||
name: .Target.foundation.kit,
|
||||
path: "Foundation/Kit"
|
||||
),
|
||||
.target(
|
||||
name: .Target.iTunes.kit,
|
||||
dependencies: [
|
||||
.byName(name: .Target.feed.kit),
|
||||
.byName(name: .Target.foundation.kit),
|
||||
],
|
||||
path: "iTunes/Kit"
|
||||
),
|
||||
.testTarget(
|
||||
name: .Target.feed.test,
|
||||
dependencies: [
|
||||
.byName(name: .Target.feed.kit),
|
||||
],
|
||||
path: "Feed/Test"
|
||||
),
|
||||
.testTarget(
|
||||
name: .Target.foundation.test,
|
||||
dependencies: [
|
||||
.byName(name: .Target.foundation)
|
||||
.byName(name: .Target.foundation.kit),
|
||||
],
|
||||
path: "Foundation/Test"
|
||||
),
|
||||
.testTarget(
|
||||
name: .Target.iTunes.test,
|
||||
dependencies: [
|
||||
.byName(name: .Target.iTunes.kit),
|
||||
],
|
||||
path: "iTunes/Test"
|
||||
),
|
||||
]
|
||||
)
|
||||
|
||||
@@ -41,7 +72,9 @@ private extension String {
|
||||
}
|
||||
|
||||
enum Target {
|
||||
static let feed = "\(String.Product.name)Feed"
|
||||
static let foundation = "\(String.Product.name)Foundation"
|
||||
static let iTunes = "\(String.Product.name)iTunes"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user