Javier Cicchelli 9172827b8b [Libraries] Core (#7)
This PR contains the work that implements the Core library, which is used to define the architecture of the app.

To give further details on what was done:
- [x] created the `Core` library into the **Libraries** package;
- [x] defined the `Router` protocol;
- [x] defined the `Coordinator` protocol;
- [x] defined the `View` protocol;
- [x] defined the `ViewModel` protocol;
- [x] implemented the `NavigationRouter` router.

Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Reviewed-on: rock-n-code/deep-linking-assignment#7
2023-04-11 13:59:08 +00:00

78 lines
1.6 KiB
Swift

// swift-tools-version: 5.8
import PackageDescription
let package = Package(
name: "Libraries",
platforms: [
.iOS(.v16)
],
products: [
.library(
name: "Libraries",
targets: [
"Core",
"Dependency",
"Locations",
"Persistence"
]
),
],
dependencies: [],
targets: [
.target(
name: "APICore",
dependencies: []
),
.target(
name: "Core",
dependencies: []
),
.target(
name: "Dependency",
dependencies: []
),
.target(
name: "Locations",
dependencies: [
"APICore"
]
),
.target(
name: "Persistence",
dependencies: []
),
.testTarget(
name: "APICoreTests",
dependencies: [
"APICore"
]
),
.testTarget(
name: "CoreTests",
dependencies: [
"Core"
]
),
.testTarget(
name: "DependencyTests",
dependencies: [
"Dependency"
]
),
.testTarget(
name: "LocationsTests",
dependencies: [
"APICore",
"Locations"
]
),
.testTarget(
name: "PersistenceTests",
dependencies: [
"Persistence"
]
),
]
)